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 > october 2003 > threads for thursday october 2

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

DataBinding Problem with Child tables
Posted by Matt Burland at 10/2/2003 8:52:47 PM
Hi, I'm having a problem with data binding to a windows form. I have a form that is bound to a datasource that contains a main table and several subtables that are related to the main table via a key field. I connect to the database and read in each table to a dataset using separate OleDbDataA...more >>

Client Scripts
Posted by Jim Heavey at 10/2/2003 7:20:38 PM
Trying to learn ASP.Net and I have a few simple (or at least I hope they are simple). If you are creating "codebehind" to hold all of your code, would you also place any client scripts here as well or do they still have to go on the .aspx form? If I write my script in VB or C#, will it a...more >>

Problem with expressions in DataColumn and ISupportInitialize
Posted by dahans99 NO[at]SPAM hotmail.com at 10/2/2003 6:33:34 PM
When I use the Form wizard to add a DataSet, DataTable and connect a DataGrid to the DataTable, the expression is never evaluated in the calculated column. Is this a known bug in VS.NET 2003? Is there aworkaround more convenient than the one I give below? Thanks for any answers... Here is ...more >>

ADO.NET, Why Is it so darn different and difficult?
Posted by Mythran at 10/2/2003 4:07:22 PM
Yes, I know how to use it, but darn...I could do what I want to do in ADODB (non-dotnet) with just a few statements, ADO.NET (which is supposed to be better) requires more than 1000 statements to do the same task! There is no easier and quicker way in ADO.NET. I've got 33 tables, all these ta...more >>

Interesting Database Query Question!!
Posted by Jay at 10/2/2003 3:12:40 PM
Hello, I have an interesting design problem, I would like to have your opinion on. I have table DRAWINGS, which has a field DrawingName which contains a list of drawings with thier full path. Eg- c:\winnt\mydrawing\room.dwg I have a table ATTRIBUTES which has a field DrawingName which co...more >>

Read Comitted vs. Update/Exclusive locks?
Posted by bnaray NO[at]SPAM rediffmail.com at 10/2/2003 3:11:41 PM
I was trying to update a record from a transaction and simultaneously trying to read the record. Both the transactions were set to the default ReadComitted Isolation level. Now I found that the Read blocked, even after the other transaction had finished its update operation(of course, not commit...more >>

How to solve timeout problem?
Posted by BVM at 10/2/2003 2:04:54 PM
Hi, All: I have this error. It seems execution time is too long. Actually the = execution time is about 30 seconds(I tested in Query analyzer). How do I = solve this problem? System.Web.Services.Protocols.SoapException: = System.Web.Services.Protocols.SoapException: Server was unable to = ...more >>

finding a row index
Posted by Bernie Yaeger at 10/2/2003 1:45:32 PM
I know how to use various .find methods to identify a row index, but I want to do the same for 'bookmark' type purposes in a simple datatable loop. For example, Dim dainvdtmcrd As New SqlDataAdapter("select imcacct from invdtmcr order by imcacct", oconn) Dim dsinvdtmcrd As New DataSet("invdt...more >>



open connections using ado.net
Posted by Pat Capozzi at 10/2/2003 1:32:51 PM
We have built a web app which we subjected to a stress test after which we checked sql server Management - Current Activity - Process Info and found quite a few open connection that were taggedd "sleeping" and "awaiting command". Does this mean these are "orphaned connections"? We h...more >>

Passing Decimal to SQL Server with Data Adapter
Posted by Mark at 10/2/2003 1:28:54 PM
I'm using the following code to update my DataSet and then update the datasource, a SQL Server 2000 database. The code runs without throwing the error. However, when I look at my SQL DB Table all of the decimals that I attempted to pass into it have been stored as a 0. The strings are...more >>

SQLException: retrieve the SQL command string associated with a syntax error?
Posted by K. Shier at 10/2/2003 12:49:28 PM
VB.Net i catch an SQLException having message: "Line 1: Incorrect syntax near 'ContractNum'." while trying to update a datasource via a data adapter. is there any way to retrieve the SQL command string that caused the error directly from the Exception object? I can, of course, get the strin...more >>

The Best Known Way - Windows App to Web DB
Posted by tcarternyc NO[at]SPAM hotmail.com at 10/2/2003 12:40:20 PM
Can anyone suggest the best known way to connect a windows app (vc#) to a database (msaccess) stored on the web? I'd like to make inserts from my windows app.. Thanks in advance, Tommie C-...more >>

Dataset that return null
Posted by tcarternyc NO[at]SPAM hotmail.com at 10/2/2003 12:32:23 PM
General Question: Can you create a dataset which you know will return no rows and then use the typed dataset to then post inserts back to the database? Tommie C-...more >>

IDisposable and SqlDataReader
Posted by Doug Holland at 10/2/2003 11:29:10 AM
The Dispose() method of SqlConnection will automatically close the connection if it is open, but the Dispose() method of SqlDataReader doesn't appear to close the reader, is this by design? using(SqlConnection _connection = new SqlConnection()) { } // SqlConnection closed by SqlConnection...more >>

what is the benefits of using web services when accessing
Posted by serkan ulucan at 10/2/2003 11:28:52 AM
we have been develooping a database application in .net c#. I want to learn what is the benefits of using web services when accessing data instead of accessing data without web services? ...more >>

Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
Posted by googlenews NO[at]SPAM hotmail.com at 10/2/2003 11:09:24 AM
I know about "sqlwish". Is there an ADO.NET-Wish mailbox at Microsoft? I've been building a complex data calculation engine that makes liberal use of ADO.NET typed DataSets, among other things. In the development process, I inevitably screw things up now and again and get the infamous System...more >>

Update several records in a datatable
Posted by APich at 10/2/2003 9:53:14 AM
Hi friends! Is it possible update or delete a several records in a DataTable/DatSet object using a simple SQL Update/Delete statement? I try to see in the documentation but that I understand is that only record by record making a loop it is possible, not using a SQL Statement. If I do in ...more >>

Too many DataAdapters on a Form???
Posted by Anton Kerschbaummayr at 10/2/2003 9:47:04 AM
Hi there! We are writing an application with a form wich has a master table and 7 detail tables on it. Each table has its own DataAdapter, but it dures 0,3 seconds to load one of them, in sum it dures 2,1 seconds. So, each time we navigate to the next datarow it dures 2,1 seconds!! What a...more >>

Remote Scripting
Posted by Karen at 10/2/2003 9:34:06 AM
I am still looking for a solution of passing an ADODB Recordset back from a remote script call - any help or direction would be appreciated. Karen...more >>

Typed Datasets - Safe to modify?
Posted by W.G. Rowland at 10/2/2003 7:47:35 AM
Having struggled in vain with the idea of making custom business objects, I'm now wondering how safe it is to just modify a Typed Dataset. It would be simple enough to add validation logic to the property code. My fear is that once I've modified the dataset code, Visual Studio is going to go ...more >>

Databindings on checkboxes - Currencymanager.AddNew
Posted by Raymond at 10/2/2003 7:45:02 AM
I have a form with some textboxes, combos and checkboxes. I use a dataset witch I bind to a Currencymanager. Everyting is perfect until a run CurrencyManager.AddNew. Now I want all the textboxes to clear so I can enter new values. When I have one or more checkboxes bounded this will stop w...more >>

Check this important pack that came from the MS Corporation
Posted by RH Kitoki at 10/2/2003 6:08:17 AM
MS Partner this is the latest version of security update, the "October 2003, Cumulative Patch" update which eliminates all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express. Install now to continue keeping your computer secure from these vulnera...more >>

DataAdapter Update Behaviour
Posted by Theo at 10/2/2003 3:21:57 AM
Dear friends, a summary of my problem: Update method adds new row in the database (as expected) but then raises an exception as if it failed to update. I have a form with binded controls. Most of them bind to a main table and some of them bind to a secondary table. These tables are rel...more >>

Update Joined field in dataset (SELECT FirstName & ' ' & LastName AS Name ...)
Posted by Raymond at 10/2/2003 1:59:06 AM
I have a dataset with one table with two fields (LastName and Firstname). With SQL I "create" one more field: SELECT FirstName & ' ' & LastName AS Name FROM Names; Now i have 3 fields in my datatable. The problem is when I update the dataset, the field Name doesn't update. How I can updat...more >>

can't add new rows with default values in access
Posted by dennist at 10/2/2003 12:50:48 AM
In ADO I had no trouble doing the following: My Access tables would usually have autonumbering ID fields as the key. Other values were required. Some had default values. Using the dataforms, or grids or code, when I added a row I wouldn't put in a value for those fields with default va...more >>

Resend (No answer) - What date format when queriing on data table
Posted by hvj NO[at]SPAM paralax.nl at 10/2/2003 12:36:19 AM
Nobody reacted on the question below yet, maybe it is a stupid question, but can somebody then please explain why it is stupid :-) When queriing on a date on a DataTable a thought I should use the Date.ToShortDateString() format, for instance like this: DataRow[] resultRows = dataTable.Sel...more >>


DevelopmentNow Blog