Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > dotnet ado.net > july 2007 > threads for july 1 - 7, 2007

Filter by week: 1 2 3 4 5

More than one Data reader in a single connection
Posted by Ziangi Jones at 7/7/2007 9:42:01 AM
Hi All, Is it possible to have more than one data reader in a single connection (MSDN documentation dated July 2002 says that to have more than one data reader, there should be more than one connection, one for each data reader.) http://msdn2.microsoft.com/en-us/library/ms971481.aspx has ...more >>


Need help with SYNTAX Error
Posted by Terry Olsen at 7/6/2007 10:28:28 PM
I'm getting a SYNTAX error in this statement: INSERT INTO Usenet (MessageID,Subject,ArticleDate,From,Lines) VALUES ( '<131prkkuk51ed5@news.supernews.com>', 'TG FM - The Eternal Candle - "eternalcandle_v.1.1.zip" 22716KB yEnc (08/37)', '4/11/2007', 'None@none.a (Sxerks)', 5082) I believe...more >>

Transaction Scope and DTC Needs?
Posted by lucius at 7/6/2007 3:44:33 PM
I am trying to use a lightweight transaction to encapsulate multiple sqlcommands on a connection (they update different databases in the same named sqlserver instance) so if one update fails they will all roll back. My development system is XP Pro and when I try to test the below code I ge...more >>

Data Table Row (.net 2)
Posted by Dave T at 7/6/2007 9:28:00 AM
If I have a typed data set with columns ColumnA and ColumnB (both strings) in a table, I was thinking that I could do something like this Partial Public Class TheTDS .... Partial Public Class TheDataTableRow Private ReadOnly Property ConcatenatedColumn() As String Get ...more >>

Randomly get timeout on SqlClient hitting localhost
Posted by David Thielen at 7/5/2007 10:38:00 PM
Hi; I get this error randomly on both my home and work computer. I'm hitting Sql Server 2000 dev version on localhost. This happens on both my home and work computer. Here's the exception: System.Data.SqlClient.SqlException occurred Message="Timeout expired. The timeout period elapsed...more >>

Datatables and TableAdapters in separate files
Posted by Joel Lyons at 7/5/2007 4:19:34 PM
I've been using the VS 2005 wizards to generate strongly-typed datasets, datatables, and table adapters for a client/server application. I use the table adapters on the server to connect to the database and retrieve datatables. I then return those datatables to the client. I would really like...more >>

Can you use the OleDb classes for SQL Server?
Posted by Gustaf at 7/5/2007 1:02:33 PM
I'm in a situation where the customer has an Oracle DB, and my developing platform runs a SQL Server DB. Ideally, I'd like to write the code, and then simply change the connection string at deployment time. So my question is: can I use the OleDb classes rather than the native SqlClient classes, to c...more >>

Can't modify DataRow during RowChanged event
Posted by Amir Tohidi at 7/5/2007 5:28:00 AM
Hi I need to trap the insertion of a new row into a DataTable while it is being filled by a data adaptor. I am trapping the RowChanged event and using the following syntax to try and modify the row: e.Row.ItemArray(index) = newValue The line above executes without errors BUT my change i...more >>



Debugging SqlCommand
Posted by Vipper at 7/5/2007 3:08:02 AM
Hi, I'm using a SqlCommand with parametrized sql like "select @field1, @field2, ....". Is possible to see the sql sentence with parameters VALUES, not "@field1, ...." ? It would be great for debugging. Thanks....more >>

Can you close without Close()?
Posted by Gustaf at 7/5/2007 12:00:00 AM
Can a database connection be closed without calling the Close() method, like in this example: using (OleDbConnection c = new OleDbConnection("...")) { try { // Open connection c.Open(); } catch (Exception ex) { // Report error } } Or d...more >>

Anyone notice how much faster DataAdapter.Fill() is than DataTable.Load(DataReader)?
Posted by 0to60 at 7/4/2007 11:32:08 AM
I could have sworn I read MS documentation that said a data reader is the fastest, most lightweight way to read in a table. However, I'm finding that DataAdapter.Fill() is often up to 5x faster. Am I missing something? Also, why isn't there an async DataAdapter.BeginFill() method? Here MS ...more >>

Calculated column
Posted by Gudni G. Sigurdsson at 7/4/2007 4:16:01 AM
Hi. I have a WinForms App and a SQL Server database. On a form, I have a Data Grid View, showing the contents of table A from my datyabase. One of the columns in the Data Grid View is unbound, and I would like to calculate it´s value from one column in table A and a value taken from elsew...more >>

Question to William (Bill) Vaughn
Posted by Jerome at 7/4/2007 12:00:00 AM
Hello, I bought your book "Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)", went trough (almost) all de details for registering but never received a response. Just before completing all necesary details; there was no response anymore. When i try to re-register it says GUID ...more >>

Applying a filter but still keeping the natural row order
Posted by Andrew Backer at 7/3/2007 10:07:23 PM
Hope someone can help me with this, since I am stumped. I need to apply a filter to a dataset so that I can clone those rows, while keeping the resulting rows in the same natural order as the original dataset. My code right now is something like this: // get data, create clone of table stru...more >>

Trouble connecting to Oracle from C#
Posted by at 7/3/2007 8:14:56 PM
Hi, I use the System.Data.OleDb.OleDbConnection class to establish a connection to a Oracle 10G database. The dsn connection string I use look like this: dsn=provider="MSDAORA.1";User ID=test;Data Source="172.30.0.25/ JBOS";Password=test; This works fine in Windows XP and Windows server 20...more >>

Update DataTable (from csv import) data
Posted by Mike D at 7/3/2007 6:56:00 AM
I have finally been able to import a csv file into a DataTable. The data has invalid dates which won't insert into the SQL table I have. So I have been trying to figure out how to DBNull the invalid dates while still in the DataTable but I don't understand C# (or .NET) enough to know what or...more >>

@@identity
Posted by Bill Gower at 7/2/2007 8:12:30 PM
I am using a ExecuteNonQuery() to insert a record into a SQL Server database. How do I retrieve the identity value of the row just inserted? Bill ...more >>

Can you create a SQL Database from Visual Studio?
Posted by Gustaf at 7/2/2007 5:27:50 PM
Can't find a good place for this, but hopefully, this group isn't too far off. I just installed SQL Server Developer Edition, and found a tutorial online to get started. In the tutorial, which is made for Express Edition, they create a database from Visual Studio with the command Add New Item -> SQL...more >>


DevelopmentNow Blog