Michael Brooks's Q&A profile
SQL Server Errors loading a text file into a Sql Server Destination
I am trying to load 14+ million rows from a text file into local Sql Server. I tried using Sql Server destination because it seemed to be faster, but after about 5 million rows it would always fail. See various errors below which I received while trying different variations of FirstRow/LastRow, Timeout, Table lock etc. After spending two days trying to get it to work, I switched to OLE DB Destination and it worked fine. I would like to get the S ...Show All
Visual C# MultiSelect in MonthCalendar
How can I disable the MultiSelect in the MonthCalender ...Show All
Windows Forms Notification when component deleted?
I have a designer for my custom control. How do I get notified when the control instance is deleted from the designer Is there a designer event or method I should be looking at Phil Wright http://www.componentfactory.com Free user interface controls for VS2005 ComponentRemoved event of the IComponentChangeService will help you achieve what you want. HTH. Alan ...Show All
Windows Forms Something about FlexGrid(old thing but i have to use it)
I am trying to show the result on the FlexGrid with fill the cell colour flexible, but i don't like FlexGrid. Is there any alternative to use I try to use the DataGrid failed, spend money to buy 3rd party package is not in my mi ...Show All
Visual Studio 2008 (Pre-release) design question regarding generated proxy classes/DataContracts
Hello all, I have a design question not neccessarily directly related to Indigo: Let's say I have two services dealing with Customers, both will use a (or the same) Customer class as arguments in a servicemethod like == [Serializable] [DataContract] public class Customer{ private int _id; [System.Runtime.Serialization.DataMemberAttribute(Name = "Id")] public int Id { get { return _id; } set { _id = value; } } == Now users of the service ca ...Show All
Visual C# Casting an enumeration that has a defined type..
public enum foo : ushort { foo, bar } ushort test = foo.bar; Cannot convert from 'Test.foo' to 'ushort' Sure, I can make variable of type foo, but I'm encoding the value to a network stream, so I want it as a ushort. The thing is, I specifically told the compiler the enum is of type ushort, so why do I have to typecast it You need to cast it :-) ushort test = (ushort)foo.bar; Oh - you sai ...Show All
Visual Studio Express Editions Open form 2 close form 1
Hi Ive tryed for some time now to work out how to close form1 and open form2 as im moving from vb6 to C# 2005 im finding it rather strange and a bit of a learning curve that i seem to be getting rather well im just not sure how to do what the title says, can some please provied the help/code to do the above. Thanks Hi Dan, Thanks very much for the info its helped a lot!, t ...Show All
Visual C# C# socket programming help
Yeah, I know the subject is vague, so I apologize :-) I'm basically learning c# in my new job during the past month, and I'm feeling fairly comfortable with ASP.net, etc. I was given the task of making a basic socket listener that would basically listen on a specific port for data, and then write that data to a file. Eventually the data will be coming at any particular time, and won't be having any sort of header or footer or anythin ...Show All
SQL Server SQL 2000 to SQL 2005 works for one 2000 server but not the next
I have several SQL 2000 servers I need to setup transactional (non updatable) replication with. The structure is: SQL Server 2000 as Publisher/Distributor SQL Server 2005 Standard as Subscriber The connection is via the Internet with snapshots using FTP. I setup the first set (2 databases at location A). They work wonderfully. I created the publication and then subscribed using MGMT Studio for 2K5. II am setting up the same sc ...Show All
Visual Studio Tools for Office Creating an Outlook Pane similar to Clipboard Viewer/Action Pane
I want to create an addin for outlook that creates a pane on the right similar to the Clipboard Viewer and Action Pane. So far from what I've read, Outlook doesn't have action panes, but I was wondering if someone knew of a way to accomplish something similar to this using a toolbar (possibly with the pane or custom control which I have not been able to find any examples/documentation on). Thanks, Nick [Edit] After looking some more, ...Show All
Windows Forms Refresh Problem?
I have the follow problem: The first time i draw the image I get a blank screen( The image stay only a half second) but the next time the image is good drawn. I have looked for a refresh method but i didn´t find it. Any  ...Show All
Visual Studio Team System TFS and named instance of analysis server
Can TFS access analysis server if it is a named instance if so is there any documentation on this cause I am told that it has to be default instance for analysis server... The reason I ask is we have 2000 and 2005 on a server and we need both versions of analysis server. Thanks much. Refer to http://blogs.msdn.com/buckh/archive/2006/03/29/sql_named_instance.aspx Swamy ...Show All
Windows Forms catch ENTER Key in my textbox
i have two textbox in my form i want change focus between two textbox with Enter Key help me please thx us for your ans. One way of going about it create a custom control inheriting from TextBox control and put up the following method in the class protected override bool ProcessDialogKey( Keys keyData) { if (keyData == Keys .Enter) return base .ProcessDialogKey( Keys .Tab); ...Show All
Visual C# server -->client gets disconnected
hi i developed a class server and also a client everything goes fine i connect the clients and after 4 minutes of inactivity of the clients automaticly disconnects them why every client has a separetly socket in my server.. Why is he disconnecting the clinets is there a option or proprety to be set .. or something.. You can set the KeepAlive flag of your Socket: socket.SetSocketOption( SocketOptionLevel.Tcp, SocketOptionName.KeepA ...Show All
Windows Forms Remote server is running my .exe rather than allowing it to be downloaded!
Hello, I just built my first program in C#, which I'm excited about. I want to offer it for a download on my site. When I click the link to MyApp.exe in Firefox, it downloads just fine, but when I click the link in Internet Explorer,& ...Show All
