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 > may 2007 > threads for may 15 - 21, 2007

Filter by week: 1 2 3 4 5

SqlConnection error handling
Posted by Ryan at 5/21/2007 11:32:52 AM
Using VS 2005, I created data adapters using the IDE. I store a connection object in My.Settings (cool feature) collection. What I'd like to do is seemlessly changed my connection on the fly. Say for instance the production server is down due to network or server hang, the applicaiton should ...more >>


Field data type in VB.net
Posted by Vanny at 5/21/2007 9:58:21 AM
How can we find a Field data types from DataReader/Dataset/Datatable in VB.net ??? For example code in VB6 where rstRecName is a recordset and j is a column index: If rstRecName.Fields(j).type = adLongVarChar Then (do something) end if Thanks for your help Vanny ...more >>

TreeView
Posted by Gerhard at 5/21/2007 8:30:00 AM
I have a table that I would like to display in a tree view. The table has parent/child relationships (there is a primary key, and another field that points to the parent's primary key). This table is in an SQL Server database (2005). The table is essentially an organization structure (CEO w...more >>

DBConcurrencyException Not Thrown For INSERT Command
Posted by Simon at 5/21/2007 6:03:53 AM
In ADO.NET 2.0, it seems that when the TableAdapter (or its underlying DataAdapter even) doesn't throw a DBConcurrencyException when the InsertCommand SPROC returns Zero Rows Affected. The MSDN Documentation Says: "The DataAdapter examines the number of rows affected by the execution of eac...more >>

SqlDataAdapter, SqlConnection, SqlCommand - Thread Safety
Posted by rfw68 at 5/21/2007 5:58:00 AM
Hello, I'm using a lot of threads, each one using it's own instance of my TableAdapter, Connection and DataTables. But all of them will access the same table at the same sql server maybe at the same time (optimistic concurrency, etc.) I found the following in the Documentation: Any publ...more >>

SqlCommandBuilder and optimistic concurrency
Posted by KShvats at 5/21/2007 12:00:00 AM
Hey ya, Using .NET 2.0 and SqlCommandBuilder, say I have a customer row, with an address and name fields. I need 2 different clients to be able to change 1 field each and not get ConcurencyExeption on 2nd Update(). Is it possible to do? Thanks...more >>

How do I tell if the Oracle client is installed
Posted by David Thielen at 5/19/2007 4:36:00 PM
Hi; The class OracleConnection is part of .NET and so is always available. However, it does not work if the Oracle client software is not installed on a user's system. How can I test for that being installed so I don't offer Oracle as a choice if it can't be used? -- thanks - dave dav...more >>

AccessDataSource not working
Posted by Scott Starker at 5/19/2007 2:37:18 PM
I am using MS Visual Web Developer 2005 Express Edition, MS Access DB, XP Pro and IIS 5.1 on my local XP Pro. Why does this work: <asp:DropDownList ID="cmbcboFiltLanguageID" Style="z-index: 201; left: 640px; position: absolute; top: 155px" runat="server" Width="377px" Height="20px" BackColo...more >>



"DataSet.Merge()" simple problem
Posted by Mark Chambers at 5/19/2007 10:29:55 AM
Hi there, Can anyone explain the following (very) simple scenario. 1) I make an exact copy of my "DataSet" and delete one record from a given table (in the copy) 2) I invoke "DataSet.GetChanges()" on the above copy and pass the results to "DataSet.Merge()" on the original copy 3) If I no...more >>

Getting next autoincremented id from typed DataTable
Posted by RipT at 5/18/2007 1:41:01 PM
What's the alternative to the following? void m_BindingSource_AddingNew(object sender, AddingNewEventArgs e) { MyTypedDataSet.TypedTableRow newRow = this.m_DataTable.NewTypedTableRow(); this.m_DataTable = new MyTypedDataSet.VendorsDataTable(); DataRow[] existingRows = this.m_DataTable.Select(...more >>

DB Design
Posted by AMDRIT at 5/18/2007 11:46:16 AM
Got a puzzler for anyone wanting to take on a challenge. I have some data, which represents something like an insurance policy. The customer may call up and change the level of coverage at any time. These changes may or may not produce a change in premium but may produce a change in legal ob...more >>

DSN Connection for Microsoft Access in ASP.NET
Posted by Sandeep Gupta at 5/17/2007 9:45:54 PM
Hi, I want to use a DSN connection to connect to MS Access Database. The ODBC DSN has been configured as MIT. I use the following connection string to connect (using VB.NET): Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; DSN=MIT") This throws up an error: Could not fi...more >>

create a data provider
Posted by Klemens at 5/16/2007 5:03:03 PM
I would like to create my own data provider in .NET which is able to deliver data to all apps supporting oledb or odbc. Information about this is very rare in the Web. Are there any code samples around or books from which I could learn how to do this? Important, again, is the part which makes th...more >>

Once more - Pessimistic Locking ADO.NET 2.0 SQL Server 2005
Posted by aaapaul at 5/16/2007 11:55:17 AM
Hello ! I read any articles about locking so far, but I am not able to make a solution for my project. (I really want pessimistic locking - no such optimistic/pessimistic discussion please) This is my idea: (I made some experiencies with a new field "locked" in the orders-table - read comm...more >>

DataView filter bug?
Posted by Jim Rand at 5/16/2007 11:05:00 AM
Simple problem. If the company is null, replace it with last name and first name: /* Replace null companies with last and first names */ DataView dv = new DataView((DataTable)this.Invoice, "Company = ''", "InvoiceID", DataViewRowState.CurrentRows); foreach (DataRowView drv in dv) { drv....more >>

MS Access DB, XP Pro and IIS 5.1...
Posted by Scott Starker at 5/16/2007 10:52:20 AM
I am using MS Visual Web Developer 2005 Express Edition, MS Access DB, XP Pro and IIS 5.1 on my local XP Pro. This is a Newbie question with a very simple answer (I think). When I run the page it loads up just fine (with all of DB fields in the dropdown boxes, etc.). The problem is when I g...more >>

Typed DataSets in MS Access with Stored Procedures
Posted by JJT at 5/16/2007 6:38:01 AM
I am using VS 2005 and a MS Access 2003 DB. In VS I use the server explorer to drag and drop tables and existing queries into the dataset designer window. I am having several problems. 1. In the Server Explorer tables are under the Tables folder but queries are under the Views folder or i...more >>

Problem with Expression in DataColumn
Posted by Carl at 5/16/2007 12:00:00 AM
Hi, I get errors when I try the following expression in my strongly typed dataset: "Sum(Parent.Child(Relation1).Value)" The error I get is: "Syntax error in aggregate argument: Expecting a single column argument with possible 'Child' qualifier." What I want to do is to navigate fr...more >>

How does GetSchema get foreign key constraints?
Posted by uncaged at 5/15/2007 4:46:00 PM
The GetSchema documentation hurts, specifically: "Understanding the Provider-Specific Schema Collections" at http://msdn2.microsoft.com/en-us/library/ms254969(VS.80).aspx I'm trying to create a DataSet that matches an SQL Server database, and I've gotten close. I'm calling SqlConnection's ...more >>

VersionNotFoundException
Posted by rfw68 at 5/15/2007 6:59:00 AM
Hello, I have a DataGridView, bound to a typed DataTable (without any TableAdapter etc.). The values of that DataTable are changed in a second thread using the following code: DataSetOrderManager.DbOrderManagerWlanRow row = dtWlan.FindByHardwareID(HardwareID); if (row != null) row.Las...more >>


DevelopmentNow Blog