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 > february 2004

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

OleDb and .NET
Posted by Peter at 2/29/2004 10:47:52 PM
Are OleDb libraries installed with runtime .NET or do you have to install ADO.NET separately? -- Thanks ------------------- czupet@wsinc.com ...more >>


Tools Disabled in Compact Framework
Posted by David Bacon at 2/29/2004 6:26:58 PM
Can anyone tell me why some tools are shut off in the Compact Framework area of the Visual studios 2003. The XML tools are very usefull in the Windows Application Area, but are UNAVAILABLE in the Smart Device Area of the Editor. Is there a Fix for this ?? Thanks for your time. Dave ...more >>

How to get the dataset size (in bytes)?
Posted by Ballet at 2/29/2004 5:16:08 PM
In Data Adapter Preview window, you can preview the size of the dataset. But how to get this value progammtaically? i tried to find proper property in dataset and data adapter but cannot find. any idea? Here is the screenshot: http://www.ezballet.com/scrdump/datasetsize.gi ...more >>

Is this possible?
Posted by Me at 2/29/2004 4:16:08 PM
Is it possible to run 2 commands within a try-catch statment with a datareader i. Tr Cn.Open( Dim reader1 As SqlDataReade Dim reader2 As SqlDataReade reader1 = cmd1.ExecuteReader( reader2 = cmd2.Execut...more >>

Foreign key in a datagrid
Posted by danielbordeleau NO[at]SPAM hotmail.com at 2/29/2004 10:06:56 AM
Hi, I have a Dataset with 2 tables : TBL_CUSTOMER ---------------- Cust_ID CustName CustAddress CustPhoneNo Type_ID TBL_CUSTOMER_TYPE ------------------- Type_ID TypeName I also have a data relation parent/child linking the 2 tables. I want to display the following infor...more >>

Relations Not Created in Typed Dataset
Posted by TJO at 2/29/2004 7:41:17 AM
Can anyone tell me why my datarelations are not showing up at run time when I instantiate a Typed dataset that I created in the Visual Studio 2003 visual designer? I have dragged two table on to the designere and created a relation between the two tables and generated a typed dataset. At run t...more >>

how to transfer dataset to access table in ado.net?
Posted by Wim at 2/29/2004 1:25:31 AM
Hi, I can't find how to transfer a datatable in one time to an empty access table... Is this possible? Thanks for your help! Wim ...more >>

Add new records to Access
Posted by Peter at 2/28/2004 11:00:54 PM
I am trying to Add and Update data to Access database, the update part works just fine, but when I try to add data I get the following error, what am I doing wrong? --------------------------- --------------------------- System.Data.Odbc.OdbcException: ERROR [42000] [Microsoft][ODBC Microsoft...more >>



Nested Transactions with .NET
Posted by Travis Foote at 2/28/2004 9:36:36 PM
Are Nested Transactions possible with ADO.NET? Ive read where Ole DB supports nested transactions, but when I try to implement them I receive the following error: OleDbConnection does not support parallel transactions Here is an example of the code: public class DAC { public DAC() ...more >>

Question On Using Strongly-Typed Datasets
Posted by C Newby at 2/28/2004 6:13:00 PM
When using a strongly-typed dataset, it seems to me that a logical extension would be to associate the dataset with a logical system and treat the associated strongly-typed tables and rows as system-wide collections and objects respectively. In this sense, the strongly-typed dataset and its asso...more >>

Remote support
Posted by John at 2/28/2004 2:55:01 PM
Hi We have a sbs2000 server with xp & win2k clients. Question is, how can such a set-up be remotely supported at individual machine basis? I presume I can use remote desktop for xp? What can I do about win2k pcs? Thanks Regards ...more >>

Passing parameters from an array
Posted by Bhavna at 2/28/2004 1:21:06 PM
Hi I am trying to run a query that will return a date. I wanted to pass the contents of an arraylist as a parameter to the query. The query will need to be run many times for each value in the arraylist so i have placed the code in a loop. What i am confused on is how i actullay use the values of ...more >>

Found Serious Bug!
Posted by Trey at 2/28/2004 11:28:46 AM
If you have a datatable connected to a dataview. And In that dataview you have a "Sort" property set to a value; And You try to modify the "Sort" column in row in such a fashion that it gets moved in the DataView IT CAN Corrupt your database. A quick fix is to set the "Sort" propert...more >>

ExecuteNonQuery opens a new connection
Posted by alomgirsk NO[at]SPAM hotmail.com at 2/28/2004 8:39:10 AM
Hi, I created a new command object passing the connection and the transaction of the existing transaction. Then I call ExecuteNonQuery. Instead of using the same connection it opens up a new connection causing a deadlock as both are trying to use the same resource. Is this a correct behaviour...more >>

How does CONSTRAINT statement know which field sb PRIMARY KEY?
Posted by polynomial5d at 2/28/2004 7:11:14 AM
I don't see how the following code snippet from page 100 in ADO.NET core reference creates the primary key out of the ID field CREATE TABLE NewTable (NewTableID int NOT NUL CONSTRAINT PK_NewTable PRIMARY KEY OtherField varchar(32) Its not clear to ...more >>

OracleClient DNE
Posted by Stephen Cerniglia at 2/27/2004 11:49:50 PM
I'm getting an OracleClient does not exist error, however I see the System.Data.OracleClient in the Assembly Cache. Is there something else I have to do for the namespace to be imported? Thanks! --Steve ...more >>

OdbcConnection
Posted by Stephen Cerniglia at 2/27/2004 10:11:58 PM
What namespace do I need to import to get the object OdbcConnection? And where would i find out such information? Thanks! --Steve ...more >>

Where to define sql connect string?
Posted by bill at 2/27/2004 4:52:10 PM
Where's the best place to setup an application wide SQL connect string for a C/S style application? We want to read the value from the registry. Also I'm thinking about using the DataAccess block. -Bill ...more >>

Q) Another q re dataAccess Block
Posted by bill at 2/27/2004 4:51:19 PM
In the DataAccess block example, they create a database connection in GetConnection method of the sample form (Form1) which is called at the beginning of each of their examples. But in their SQLHelper Class they also create connections in many of the methods such as ExecuteDataset. What's goi...more >>

Question about efficiency
Posted by Simon Harvey at 2/27/2004 3:12:21 PM
Hi, I'm, wondering about what the best way to approach the following problem is: I have a an application that has a list of users whose data needs updated in a database (SQL Server). Now, the only way I currerntly know how to do this update is to either repeatedly execute an SQL string or r...more >>

Database Modification Date
Posted by WIlliam Barnes at 2/27/2004 2:41:19 PM
Using Excel 2000 under Win 2K Pro with MS ActiveX Data Objects 2.5 Library: I would like to be able to determine if a database has been modified since my last read. I create my database connection thus: Dim db as ADODB.Connection Set db = New ADODB.Connection With db ...more >>

Nested SQL statements
Posted by mikezcg NO[at]SPAM yahoo-dot-com.no-spam.invalid at 2/27/2004 2:36:19 PM
im not great at sql and need to nest these statements ( for speed) but cant get it i would appreciate any help thanks" SELECT qryExistingPersons.Person, qryExistingPersons.SumOfInvoiceAmount, qryExistingPersons.CheckNum, qryExistingPersons.Deal, qryExistingPersons.Reference FROM qryExistingPe...more >>

DataTable.Clear doesn't get rid of indices?
Posted by TB at 2/27/2004 2:11:09 PM
I am trying to dynamically change a DataTable by clearing the table, columns, rows, and PrimaryKey -- recreating the column collection, recreating the PrimaryKey, and finally adding the new rows However, after invoking DataTable.Clear() along with clearing all the other information, the table stil...more >>

A simple binding question
Posted by Doug Lowe at 2/27/2004 2:01:10 PM
Hi all, this might be a simple question, but then again maybe not. I'm binding a text box in a Windows form to a column that does not allow nulls. The problem is, if I do AddNew, the user leaves the field blank, and I call EndCurrentEdit, I get a "null not allowed" exception. What I want is to pu...more >>

aspnet_wp.exe (PID: 2756) stopped unexpectedly.
Posted by GensaRob at 2/27/2004 1:51:05 PM
Trying to use the System.Data.OracleClient provider. I can create the connection but when I try to open it the browser craps out and I get a page that says "Server Application Unavailable - The web application you are attempting to access on this web server is currently unavailable. Please hit the...more >>

OleDbDataAdapter.Update and DBase IV
Posted by mfeferman NO[at]SPAM houston.rr.com at 2/27/2004 1:34:16 PM
I have written my own DataAdapter for my DBase IV file(s). The Insert, Update and Delete calls all report success when I call Update(...) on the DataAdapter. Unfortunately, when I recall the data, only the Inserts and Deletes actually worked. For some reason, the UpdateCommand is returning th...more >>

Classic ADO Pia
Posted by Julian Hershel at 2/27/2004 1:22:46 PM
Hi. Who is the responsible for the installation of the classic ADO pia (adodb.dll)? Is it installed by the .NET Framework package or by the MDAC package? Thank you. Julian ...more >>

Question on the replace function for Inserting into SQL
Posted by Nancy. at 2/27/2004 1:11:45 PM
Hello: I have a dataset field: Description='STRUCTURES. SWALE INLET TYPE D-3(36" DIA.) (<10' DEEP)' I want to save several fields including the description into a SQL table. The replace("'","''") should pass the string as : 'STRUCTURES. SWALE INLET TYPE D-3(36" DIA.)(<10'' DEEP)' Bu...more >>

Performing Aggreates functions and Grouping on Dataset or Table
Posted by julio delgado at 2/27/2004 12:59:36 PM
Hi: Is there any way to perform aggreate functions and grouping on a Dataset or Table. The reason is that I have all the detail information on a dataset and I need to provided summary information too. So I was wondering if there is anything on the ADO.NET to allow me to do this without going...more >>

Terminal Server Problem
Posted by Mark at 2/27/2004 12:19:03 PM
Hi, We are running a W2K3SBS with W2K3 STD as a member server. We then purchased 5 TS CAL's (per user), installed TS Licensing and the TS Server on the member server. When I go to TS Licensing I can see the 5 CAL's are available and 0 issued. However when users who are members of the mobile...more >>

Connection Pooling Maxed Out
Posted by msnew.microsoft.com at 2/27/2004 11:57:06 AM
Hi We migrated our web server from a single processor, 1 GB RAM to a dual-processor blade server with 2 GB RAM and we hit this problem. We did not make any changes to the pool size i.e. using the default settings. We had encountered this problem occasionally (1-2 times a month) much earlier i...more >>

Bound Dataset not reflecting changes
Posted by Shane Brodie at 2/27/2004 11:40:59 AM
I'm new to .Net, but have 8+ years using VB. I'm having a problem using data binding in a windows Forms project. The scenario: I have a simple form with a series of text boxes and associated labels for containing input which all goes into the same table. In addition there is a ComboBox co...more >>

Joins across two databases
Posted by Greg Smith at 2/27/2004 11:23:48 AM
I am using SQL Server 2000 as the backend for an application in C#. Is there a way to do a join on tables in different databases or do you have to do some in memory slight of hand to accomplish it? Any help is greatly appreciated. ...more >>

OracleClient.dll
Posted by Blood... at 2/27/2004 11:06:21 AM
why download free... :( ...more >>

MySQL and .NET
Posted by Tim Mulholland at 2/27/2004 10:37:47 AM
My company is considering scaling up a database application that previously used Microsoft Access. The database has about 25-30 tables in it. The amount of daily transactions to the database is fairly small for that number of tables, but is growing. The web application that uses this database ...more >>

data bound listbox + data table select command
Posted by Brian Henry at 2/27/2004 10:22:42 AM
I have a data set full of data, and a list box, I want to be able to filter that set of data to a specific clase then put the returned filtred data into the list box... how would i do this? I already tried a few ways but haven't found one that doesn't cause an exception yet... thanks! ...more >>

System.Data.OracleClient
Posted by GensaRob at 2/27/2004 10:01:07 AM
Please forgive the newbie-ness of this question, but I was perusing the MSDN site and found reference to the System.Data.OracleClient namespace within ADO.NET. So I went into my project and typed "using System.Data.OracleClient" and...it doesn't appear to exist. Same thing on my laptop. Same thin...more >>

Detect each column's data type of SalDataReader, DataSet, DataTable
Posted by Hardy Wang at 2/27/2004 9:39:50 AM
Hi all, I am just wandering, is it possible to programmatically detect each column's data type of SalDataReader, DataSet.Tables[i], DataTable? Thanks for any suggestion! -- WWW: http://hardywang.1accesshost.com ICQ: 3359839 yours Hardy ...more >>

Cast DBNULL problems
Posted by Joel at 2/27/2004 9:01:07 AM
Hi! I have a problems with DBNULLs I have a date field and couple of other fields, when I save my data, if it was a null when I got the data I want to keep that data intact even if it was a DBNULL Little example function savedata(DateFinish as date,Room as string...etc. savedata(cdate(DatePicke...more >>

Calling all ADO.Net Guru's
Posted by Rob Panosh at 2/27/2004 8:26:41 AM
Hello, The code listed below will insert a Microsoft Word or XLS file into my sql table when the column is defined as an "Image" type. But if I change the column to a "Text" type the provider will throw "Operand type clash: Image is incompatible with text" error. Any ideas why I can't save m...more >>

create dataset from xml
Posted by KPH at 2/27/2004 7:56:05 AM
Hi, Is there someone know how to create dataset from XML format on .NET. Thanks, KPH...more >>

SQL syntax problem with oledb provider for Visual FoxPro
Posted by google NO[at]SPAM vandevuurst.com at 2/27/2004 2:12:56 AM
Hi, I've downloaded the Microsoft Visual FoxPro OLE DB Provider. I use it to connect to a FoxPro database using the Free Table method (there is no .dbc). Now I'm having some problems with the sql syntax. I'm trying to use a CASE statement inside my SELECT statement and I get the error: "Co...more >>

How to prohibit inserting existing row in datatable
Posted by ardin at 2/27/2004 1:11:28 AM
suppose i have a dataset populated using dataadapter. i bind the dataset to a windows datagrid. i accepts new record through textboxes not through the datagrid. how can i detect if the data entered is already existing to the dataset before the update command of the dataset is executed so that th...more >>

System.Data.OracleClient problem: Not closing open connection
Posted by ajaykrishna at 2/26/2004 11:26:51 PM
Hi Could any one tell me what is the latest version of System.Data.OracleClient? Currently I'm using version 1.0.1012.0 in my project which is giving problem of not closing connection eventough I'm issuing connection Close() statement.I am trying to connect Oracle 8i from ASP.NET framwork 1.1 in m...more >>

DataGridBoolColumn Checkbox
Posted by subT at 2/26/2004 10:41:06 PM
I dont have a problem with the required 2 clicks to change a checkbox value, however, on the second click, the value change is not immediately visible. I can see the change only after I select a different cell. Please advise why this visibility problem is happening. thanks ...more >>

Editing Parent Table does not update Child Table... inconsistent behaviour.
Posted by dafunk2001 NO[at]SPAM yahoo.com at 2/26/2004 9:14:50 PM
[If someone has already addressed this issue, please let me know in detail as I have actually searched all of microsft.public.dotnet.* for an answer and couldnt find it anywhere] Hello again... I have the following problem: Lets say I have a Parent DataTable (ID, col1) and a child DataT...more >>

Please see statement encloded about postal and lottery laws
Posted by Linda Rowe at 2/26/2004 7:01:52 PM
A chain letter is a "get rich quick" scheme that promises that your mail box will soon be stuffed full of cash if you decide to participate. You're told you can make thousands of dollars every month if you follow the detailed instructions in the letter. A typical chain letter includes names an...more >>

q) re MS Data Access Block
Posted by bill at 2/26/2004 5:54:43 PM
It seems kind of inefficient to have to pass the connection string in each time you use one of the SqlHelper methods. Does it make more sense to have it stored at the SqlHelper class or at least have that class get it from somewhere else as opposed to having to continually pass it from everypla...more >>

Q) re where to put SqlConnection on a C/S type app
Posted by bill at 2/26/2004 5:22:10 PM
I'm not sure where the most effcient place to put my main SqlConnection object should be. The app's a typical windows form based client/server app. Do I put the SqlConnection in my main application's class? Do I put one on each form? The forms are modal but at somepoint that might change wh...more >>

Null values and XML
Posted by Naveed Anwar Kharadi at 2/26/2004 5:04:19 PM
Hi, Is there any way by which null values of a dataset's table can be represented in its XML. Regards. ...more >>


DevelopmentNow Blog