Answer Questions
Mikedavid00 Creating DSN to SQL Server in the code.
Hi. Can somebody tell me how to create a system DSN for SQL Server programmatically in vb .net The following code always fails to create the DSN. What am i missing Private Sub Build_SystemDSN_SQL() Dim ret%, Driver$, Attributes$ Driver = "SQL Server" & Chr(0) Attributes = "DSN=" & mstrDSNName & Chr(0) Attributes = Attributes & "Server=" & mstrServerName & Chr(0) Attri ...Show All
mygetbiz Recursive relation -> Root-recursiviness-leaf relation?
Hi to all! I have a recursive relationship in a table [IDTable, IDParent]. Because of gui issues I would like to split up the table in three tables: root_table, knots_table, and leafs_table. That went fine, but does anyone know how to define the relationships between these tables I tried to do it this way: new DataRelation ( "Relation_Roots" , ds.Tables[ "root_table" ].Columns[ "IDTable" ], ds.Tables[ "knots_table" ].Columns[ ...Show All
TyroneH Data Adapter Updates not happening
I have an Infragistics grid bound to a BindingSource, that in turn is bound to a strongly typed dataset. I want to add a row to the grid, then when the user click the OK button, save the new row back to the SQL Express database I am using. In the OK button, I have this code: this .productFeatureBrowserDataSet.Versions.AcceptChanges(); this .versionsTableAdapter.Update( this .productFeatureBrowserDataS ...Show All
MikeM-SF Problems with Network Stream and Threading - please help.
Hi folks, i have threads that are used to retrieve any data from a client after a client connects to the listener. When i try to get the server to close all connections, i do that but after it finishes closing all, it then crashes on a StreamReader.ReadLine() call. how do i make it so that when the TcpClient is closed, then thread stop correctly The StartListening method kicks it all off. Note: I've left out some private properties to ...Show All
serimc ilasm FW 2.0 backward compiling?!?!
Hello, I just want to know if there's some parameter to compile file into FW 1.1 instead of 2.0, thanks a lot Paolo Thanks a lot! Sory Paolo, the compilers that ship with the v2.0 CLR will only create assemblies that the v2.0 CLR will understand. If you need an assembly that can be read by both v1.1 and v2.0, you'll need to install the v1.1 framework and use that ve ...Show All
Ed Graham "Cannot allocate a new command id" exception when creating ContextMenu with lots of MenuItems
I am writing a c# windows application that displays lots of information to the user via a ContextMenu. I have encountered a problem where the ContextMenu doesn't display after a large amount of MenuItems have been displayed. To better understand what I am saying, here is a simple example that will reproduce the problem. Create a c# windows application with a button and an event handler for the button click. In the handler ...Show All
Pat Kaeowichien TextBlocks to Streams
Alright, yet another problem, how can i save the content of RichTextBox to a variable, so i can put it in my own object. Cant find anything about it on the web, only how to save it to a file and how to store it in a SQL database ah, thats enough, thanks You can get/set the contents of a RichTextBox control via its Rtf property like this: string rtfContents = myRichTextBox. ...Show All
MarkTheNuke Can MS release SSCLI under a BSD License ?
Why don't you folks release SSCLI under a BSD license Making it available on FreeBSD under anything but a BSD license is a sure way to make the code rot into oblivion. Besides, by now the commercial .NET version should be so much ahead of the SSCLI that releasing the SSCLI with a BSD license shouldn't be that much of a threat to MS. Release SSCLI under a BSDL and the BSD types may also jump on the .NET bandwagon in addition to the Mono/Lin ...Show All
NHJ VERY slow binary serialization of strings coming from SQL
Please help! This is probably the weirdest issue I've ever encountered. I'm trying, in C#, to binary serialize an array of strings that come from a SQL Server 2000 database. Problem is, this takes orders of magnitude longer than if the strings don't come from the database. The EXACT same 35000-length array of strings takes 0.1 seconds to serialize if the strings don't come from the database, and 40(!) seconds to serialize if they do. So ...Show All
edvo Stored Procedure parameters
Hello friends. I am a software engineer working for a software company. Recently I have developed a software for vb.net and sql server which reads database metadata, stored procedures, foreign keys, stored procedure parmeters and generates full featured data access code for vb.net and sql server. It generates full, bug free and highly optimized code for playing with database tables, stored procedures, etc. Now I am extending this softwa ...Show All
elpaw Adding a reference to a .NET 1.1 assembly in a VS 2005 (.NET 2.0) project
I am trying to use the Microsoft POS (Point-of-Service) for .NET SDK in a VS 2005 project. There is only a version for .NET 1.1 that's been released so far for the POS SDK. I have created some samples in VS 2003 that are working w/o problems. It's just a simple console application that prints "Hello World!" on the receipt printer. If I take that very simple piece of code and put it into a VS 2005 C# stand-alone console application p ...Show All
iicDotnet Bug in ADO.NET 2.0 using SQL Server 7?
We were using .NET 1.1 against SQL Server 7 just fine. When we switched to .NET 2.0 we found that the connection pooling against SQL Server 7 no longer works. As a side note we would like to upgrade from SQL Server 7, but we currently have a number of integrated third party packages that make this a very large task. I traced the connection pooling issue to the connection setting Connection Reset with a value of true. It you set Connection Res ...Show All
Vamsi16314 No symbols are loaded for any call stack frame. The source code cannot be displayed.
Hello. I installed VisualStudio.NET 2005 a few days ago. ( not beta ) While I'm debugging, I'm faced with strange message box. -- MessageBox -- No symbols are loaded for any call stack frame. The source code cannot be displayed. -- Debug Detail Window -- FatalExecutionEngineError was detected Message: The runtime has encountered a fatal error. The address of the error was at 0x7a2b5aec, on thread 0x358. The error code is 0xc0000005. This ...Show All
xinz Problem in reading BLOB from Ms. Access using ADO.NET DataReader
Hi All, I am encrypting a document, converting it into byte array and storing this BLOB to Aceess database using OLEDB data provider of ADO.NET, Till writing I have no problems.. I am getting an array index out of bound exception on the lines where I am trying to read the BLOB form the table column using ADO.NET, DataReader.Getbytes method,. The code for reading BLOB is as follows: /********** Extracting ...Show All
BobTheCorkDwarf Warning when trying to run the application
That I always try to run my application appears me this acknowledgment Help Please. That error is telling you don't have your connection string formatted properly....See www.connectionstrings.com for help with connection strings. Also if this an asp project make sure you are pointing to the complete path not just the relative path. HTH Thanks for the help, but now when i try run the app this is t ...Show All
