Groups | Blog | Home


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 > march 2008 > threads for march 15 - 21, 2008

Filter by week: 1 2 3 4 5

Connection timeout
Posted by Ant at 3/21/2008 2:25:03 AM
Hi, I am trying to run a SP that takes about 90 seconds to complete. If i run it from SQL Server, it completes ok but if I run it from my .NET application, I get a timeout error after about 40 seconds. I set the Connection timeout in the connection string builder to 180 but it still time out...more >>

Dynamically created data source for GridView
Posted by John at 3/20/2008 3:25:33 PM
Hi I have a SQL string on the lines; "SELECT a,b, c FROM MyTable WHERE MyTable.d = '" & Me.MyField.text & "'" The value of Me.MyField is provided at runtime by user. I need to assign the resultset of this SQL to an UltraGrid for view only i.e. no editing just display. My questions are; ...more >>

Asynchronous SQL comand execution ?
Posted by Murali at 3/20/2008 2:16:43 AM
Hi all, How I can use the ADO.net 2.0 , asyn sql command execution ? Murali...more >>

size of a varchar field in SQLserver table
Posted by ton at 3/19/2008 9:41:21 PM
Hi, In ADO I could read the property .DefinedSize of a field of a recordset to determine the max size of the field. This is very usefull to set the maxlength property of a textbox. How can this value be determined in the ADONET- Dataset or datatable. thanks for a reply Ton ...more >>

TableAdapter to create new SQL stored proc with different owner
Posted by Nick at 3/19/2008 7:38:01 PM
Hi Gang, I'm curious if this is a bug in Studio or not. Here's the background: Our system has SQL Server installed and our DBA's all create our databases. We are not DBOs in any of those databases. We do have rights to create stored procs, they all show up as our name in the owner field. ...more >>

odd timeout problem
Posted by guy at 3/19/2008 3:40:00 AM
c#2008 / sql server 2005 I have a stored proc that takes 2 parameters if run it through management studio either with pramaeters x,y or a,b it correctly returns the same set of data (about 100 rows) in about 1 (one) second if i run it through my c# test harness (using a dataadapter fill) ...more >>

TIMESTAMP parameter: SqlDbType.Timestamp or SqlDbType.VarBinary?
Posted by TR at 3/18/2008 12:37:03 PM
When using VB.Net, what type do you choose for a TIMESTAMP parameter? SqlDbType.Timestamp OR SqlDbType.VarBinary And what size do you enter? 8? Regards TR...more >>

ll_exists_after_“Using_Block”
Posted by JeffDotNet at 3/18/2008 11:57:03 AM
I was testing a method that updates several stronglytyped tables with a sqltransaction and noticed that the number of connections never returned to zero until I exited my application. (It ended with 1 connection) My code had made use of the "using" statement so that the connection would b...more >>



Datasource from string
Posted by John at 3/18/2008 1:59:26 AM
Hi Is it possible to create a datasource for dataview control for an sql string? Thanks Regards ...more >>

Storing data in a local database
Posted by Debbie.Croft@nospamforme.com at 3/17/2008 6:09:56 PM
I'm writing an application that needs to store data locally (in C#). This will be deployed on end-user machines (XP, Vista and 2003 Server). I want to store the data in a database. The volume of data is not huge (about 1 to 5 megs). My question is what database to I use? I can only assume t...more >>

SqlException after Adapter.Update: how to determine the source column and parameter involved?
Posted by TR at 3/17/2008 3:16:36 PM
I am at this point (<<<) in my Insert logic against a SQL2000 back-end: Try .... MyDataset.Tables(0).DefaultView.RowStateFilter = DataViewRowState.Added If MyDataset.Tables(0).DefaultView.Count > 0 Then Adapter.Update(MyDataset.Tables(0)) End If Catch ex as Exception RaiseEve...more >>

sqlcommand question
Posted by param@community.nospam at 3/17/2008 1:26:12 PM
Hi all, I have a SQLCommand object that has been set with a Stored Proc & the required parameters. I would like to somehow retrieve the sql text that is sent to sql server as a result of execution of this command object. Is that possible? So basically I want to extrapolate the text that ult...more >>

exception GetType
Posted by John at 3/15/2008 9:02:03 PM
Hi What is the purpose of exception.GetType and what are the possible values returned by it? Can it for example tell me if the exception is of type DBConcurrencyException? Thanks Regards ...more >>

BindingSource.Current is null on position change.
Posted by Gerard at 3/15/2008 3:25:30 PM
Hi I am trying to do a 1 to many relationship using dynamic textboxes, binding navigator and a filter. It works on form_load but when i change to the next row on the bindingNavigator I get. "Object reference not set to an instance of an object." Here is the code: DataRowView...more >>

Cloning A DataRow
Posted by Scott M. at 3/15/2008 1:11:35 PM
I need to copy an entire row of a typed DataSet so that I can place it into a different instance of the same type of typed DataSet. I don't see a clone or copy method on the DataRow. Do I have to create and populate the row manually? -Scott ...more >>

Trapping data update exceptions
Posted by John at 3/15/2008 2:28:49 AM
Hi I am updating a datatable in a dataset as below; daMyAdpater.Update(MyDataSet.MyTable) How can I trap various different exceptions that may occur during this update process? Thanks Regards ...more >>

Datarow to string
Posted by John at 3/15/2008 2:07:07 AM
Hi How can I save all values in a system.data.datarow to a string? I need this for error logging purposes. Thanks Regards ...more >>


DevelopmentNow Blog