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 > december 2005

Filter by week: 1 2 3 4 5

I'd like to programatically move through a table
Posted by barret bonden at 12/31/2005 6:58:53 PM
I'd like to programatically move through a table (call it a recordset in ADO ) and disply fields in a textbox. I've gotten as far as the code below (which just loads a listbox) I assume I need to work with the dataadaptor , but have been unable to find info on the web as to how to do it - th...more >>


History of Data Access
Posted by SwatSoftwareDev at 12/31/2005 11:58:08 AM
Hi, I'm a novice programmer. When reading stuff on ADO.Net I often face terms like OLE DB, ODBC. Is there anyone who knows the web links that can provide me the concepts like these (ODBC,OLE DB and other concepts related to Data Access) that can be understood easily by a novice like me. If any...more >>

SqlCeResultSet, why not in ADO.NET?
Posted by Rick Lederman at 12/31/2005 10:56:06 AM
I just discovered the SqlCeResultSet in the compact framework. It is more like ADO or DAO than anything else that I have seen as far as coding in a VB application goes. It appears to be very fast and efficient too! Is there any plan to place the resultset in ADO.NET? It just seems FAR easi...more >>

Managing "Row ID" for Table Inserts
Posted by Joe Reggae at 12/31/2005 8:16:14 AM
Using c# and Visual Studio 2003, I've begun to wonder whether I'm adding rows to Oracle tables correctly. The tables often have "row ID" columns and, before adding a row, I pull the "max" ID value from a table, add 1 to it, and then use that number as the new "row ID" (the base table then gets...more >>

Creating Schema
Posted by Jack at 12/31/2005 12:30:34 AM
In ADO.Net, can I create "create table ( ... )", "alter table ..." stuff, and execute it to create my schema for MS-SQL2000? Jack ...more >>

SqlExpress & C# problem in an ASP.NET web site
Posted by Lloyd Dupont at 12/30/2005 9:28:37 PM
I'm trying to create a SqlServer express database file on the fly in a web application.. (mhh.... maybe I should try to get something running in a desktop application first?) Anyway I want to connect to a database file and, if it doesn't exist, create the DB on the fly. Actuall I'm tryi...more >>

Generate DataSet in 2.0?
Posted by Mark Olbert at 12/30/2005 9:12:42 PM
I'm beginning to think Microsoft has spent the last few years revising .NET so as to break every single programming construct I've developed. Sheesh! Today, I'm trying to figure out where the Generate Dataset context menu option went in VS2005. I used to build quick and dirty config files -- ...more >>

Philosophical question: how often to submit updates to database
Posted by Earl at 12/30/2005 7:19:05 PM
A concept I've waffled on from time-to-time with ADO.Net: how often to submit updates back to the database. For example, I have some CF apps where it's quite obvious the *when* part of submitting the update -- soon as you come off of the record. For other desktop apps, it's not quite so obviou...more >>



TableAdapter Performance
Posted by Programatix at 12/30/2005 4:41:50 PM
Hi, Have anyone ever benchmark the TableAdapter performance compared to DataTable's Load method? I found out that the DataTable's Load method is about 10x faster than TableAdapter's Fill method. I used the same SELECT query and DataSet (predefined), for both test. For the DataTable's Lo...more >>

Jet vs. Sql Server Express
Posted by kcamhi at 12/30/2005 3:04:02 PM
Greetings - I'm working on a new application and need to select a database for it. I was wondering if anyone had any views on tradeoffs between going with Jet/Access vs. SQL Server 2005 Express. The database is going to sit on a server. I'm planning to implement .net remoting from my c...more >>

how do i connect to a remote database
Posted by Gerlop at 12/30/2005 2:51:02 PM
i have a website that i use to file all my clients information, the go online and they type the information. i'm using an microsoft access database. Now, i want to create a windows application that i can run whenever a want to transfer the new information that is on my website database to my...more >>

About datatables
Posted by Ravindra at 12/30/2005 2:32:33 PM
Hi How to pass the content of one data table to another data table.I simply tried using assignment operator...Example: datatable1=datatable2...But,its not working.. ravindra ...more >>

exception on : ra = myCommand.ExecuteNonQuery()
Posted by barret bonden at 12/30/2005 1:32:36 PM
(VB Exoress 20005) I get an exception on this line : ra = myCommand.ExecuteNonQuery() {"ExecuteNonQuery requires an open and available Connection. The connection's current state is closed."} in this code: Dim myConnection As OleDbConnection Dim myCommand As OleDbCommand Dim ra A...more >>

Conectar BD
Posted by EWAT at 12/30/2005 12:10:39 PM
Hola a todos y Feliz año 2006: Tengo que crear una aplicación que accede a una Base de datos, y los datos cambian constantemente en las tablas de la Base de datos, esos cambio son nuevos registros. Hasta el dia de hoy estado utilizando el componente DOA para Oracle, y estoy permanentemen...more >>

Books on ADO.NET 2.0?
Posted by johnb41 at 12/30/2005 9:48:32 AM
I would like to get a good book on ADO.NET 2.0. I searched Amazon and found 2 books that are rated well: - Pro ADO.NET 2.0 (Expert's Voice) - Programming Microsoft ADO.NET 2.0 Applications: Advanced Topics However, I am looking to learn about the "new" way of working w/ data... TableAdapte...more >>

dataset columns with system.dbnull
Posted by Buho at 12/30/2005 8:42:41 AM
Hi everyone(happy new year!!), Well, here we go... I have a problem with datsets, ado.net as i understand ..I have a sp that in query analizer retrieve 13 columns and the last 3 like the others have data, but when i see the dataset which gets the data the last columns are system.dbnull, an...more >>

How to connect a DataView to an access database?
Posted by Brad Rogers at 12/30/2005 3:11:51 AM
Im trying to understand DataView, to make a couple of lists of sorted data. The 3 textbooks I have on .net dont have dataview in the index even. Ive started by doing a database wizard. it finds the .mdb file and formats the schema and genetated a program, I put a simple grid view in the form...more >>

OracleClient in VS2005 ???
Posted by Dino Buljubasic at 12/29/2005 9:57:26 PM
Hi, I am using VisualStudio 2005 (C#) and have to write a code to access Oracle Database. I know that in .NET Framework 1.1, I could download OracleClient namespace (System.Data.OracleClient.dll) and add referenct to it in my project. Can I do the same in VisualStudio 2005? When I look fo...more >>

newbie in search of ADO.NET code samples
Posted by barret bonden at 12/29/2005 9:31:20 PM
Can anyone point me to step by step walk-throughs of ADO.NET code - I'd like to get to the point of being able to programmatically work with assigning field data to text boxes and then write back changes to the tables. As an aside; I started playing with Visual Studio 2003, and now...more >>

How to bind an object to a table
Posted by bumperman_jc NO[at]SPAM hotmail.com at 12/29/2005 7:36:44 PM
Hi, I am new to .net. I think .NET provides what I need, but I don't know how to implement it. What I need is simply associating an object with a database table. I would like to load "objects" from table, and I would like to modify or delete objects, without dealing with datab...more >>

.NET 1.1 "System.Data.VersionNotFoundException" - I need a workaro
Posted by David W. Rogers at 12/29/2005 5:33:04 PM
I have three related tables, and I am getting an exception when : **************** Dim dataRows As DataRow() = ds.Tables(MappingName).Select_("", "",DataViewRowState.Added) dataAdapter.Update(dataRows) ****************** The exception is: {System.Data.VersionNotFoundException} [System...more >>

Whatever happened to ...
Posted by Martin Robins at 12/29/2005 2:48:03 PM
I seem to recall, back in the early promise days of Whidbey, that there was talk (and even an early version) of a set of classes for mapping data between objects and a database being a part of the release; alas I cannot remember its name. I know there are various ORM tools out there, and I ...more >>

SQL Querry
Posted by Charles A. Lackman at 12/29/2005 11:11:56 AM
Hello, I trying to produce a querry that will accomplish the following and am not sure how to write the statement. I am currently using Jet 4.0 but will be using SQL Server soon. Example Records ID CustID Data Date Balance 1 1234 bla8 092705 ...more >>

Unexpected Timeout
Posted by Scott S. at 12/29/2005 9:35:01 AM
I have an application that connects to sql server. Two installs of the application are frequently experiencing the following error: "System.InvalidOperationException: Timeout expired." We've checked and confirmed that all connections are closed and disposed. The two sites that are having ...more >>

Oracle Ref Cursor Issue in ADO.NET
Posted by Ram at 12/29/2005 8:22:53 AM
Hello, I ran into a performance issue with Oracle Ref Cursor in ADO.NET (with VS 2003). The SQL itself runs in less than 5 seconds in SQL*Plus. (Oracle 9i). When the same is called from ADO.NET using the microsoft provider for oracle (system.data.oracleclient.dll version 1.1.4322.2032), the f...more >>

Quirky response to Update command using datagrid
Posted by Earl at 12/29/2005 8:15:16 AM
Using VS2003 and SQL2k. I've noticed that if I have an expression column (or relation column) added to the main table, I cannot do an Update without setting the UpdatedRowSource to either OutputParameters or None. This works fine ... so long as we do not execute two Updates in the same row,...more >>

ado.net deleting record sql server
Posted by karunam at 12/29/2005 6:54:09 AM
hello all, Created procedure in sqlserver accepting id as parameter to delet record. initialized statements Dim DeleteCommand As New SqlCommand("DeleteProc", conn) DeleteCommand.CommandType = CommandType.StoredProcedure dataAdapter.DeleteCommand = DeleteCommand AddParams(dataAdapter...more >>

TableAdapter Fill Code
Posted by AaronMoore at 12/28/2005 7:08:03 PM
Hello, I just purchased Visual Studios 2005. I noticed that when I drag a control from the DataSources toolbar, or set the datasource property of a datagridview, that code is automatically generated in the forms load event to fill the dataset. How can I disable this feature? I normally fill...more >>

dataset.merge not working correctly
Posted by Chris at 12/28/2005 5:56:02 PM
Hi, I am trying to merge two datasets into one, each dataset has one table when I merge the two datasets I get a dataset with two tables? I need the merged dataset to only contain one table with the merged data. Does anyone know how to avoid this? ...more >>

Dataset to table
Posted by John at 12/28/2005 4:40:09 PM
Hi I have a sub method that has been passed a dataset as parameter. I need to insert this dataset into a table. What is the code that I need to do this? The dataset does not have any conflicting keys so it is a very easy scenario from conflict resolution point of view. Thanks Regards ...more >>

Combining fields from different tables into 1 dataset
Posted by jonefer at 12/28/2005 1:09:02 PM
So far the dataset just shows Type, Benefit, Change I want it to show Type, Benefit, Change, Description This should be a pretty elementary question - and I've spent 2 days on it already. I just want to add one field from another table into my dataset, should be easy, but maybe it's the...more >>

.Net 2.0 DataTable have a lot of lacks?
Posted by mtczx232 NO[at]SPAM yahoo.com at 12/28/2005 1:02:26 PM
it seem that data table and Expression field have a lot of Laks, it is true? the DataTable is powerfull of Memory relation data that bind to controls. so i can load data from remote service and manipulate it and after i send update to remote service. But, when i need to make standart oper...more >>

datarow duplication and unique key conflicts
Posted by claudio.benghi NO[at]SPAM gmail.com at 12/28/2005 11:24:03 AM
Hi all, I need a quick way to create a new datarow based on an existing one change a few values and update them to the database (the duplication should be made in the same db table). I've seen previous posts suggesting to use the ImportRow method for the datatable... i've tried it.. i...more >>

sql local database files, need install SQL server on target machine?
Posted by mtczx232 NO[at]SPAM yahoo.com at 12/28/2005 8:10:34 AM
New feature come in VS 2005, ability to ADD local database files (.mdf) into project. When i install my EXE on client PC, I need install SQL server? ...more >>

Query on SqlConnection of ADO.NET
Posted by Suhas Vengilat at 12/27/2005 10:16:02 PM
Hi, I have an sql server on seperate system and my application runs on another dedicated server - both the machines works on Windows 2003 server OS. From last 2-3 days one of the .net application which has been working fine for the last 1 year suddently start giving timeout error when query...more >>

How to generate a dataset from stored procedure which have many resultsets?
Posted by abc my vclass at 12/27/2005 8:52:40 PM
How to generate a dataset from stored procedure which have many resultsets? I try Dataset designer from VS2005, it only generate first table from stored procedure on server explorer. Another table cannot to generate. How should I do? ...more >>

Inserting a dataset
Posted by John at 12/27/2005 8:39:14 PM
Hi How can I insert a dataset into an sql table? Thanks Regards ...more >>

dataprovider
Posted by Kim(Kman) at 12/27/2005 7:14:04 PM
If I only have ASP.Net 1.1 installed on a server what would I replace this with? <dataProvider name="SqlClient" connectionType="System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> Thanks ...more >>

Set connection string at run time for typed DataSet (Framework 2.0
Posted by Thomas Taylor at 12/27/2005 6:25:02 PM
I have typed DataSets in a data access tier and want to pass a connection string from the client at run time (for use by the TableAdapters created using VS2005). However, at design time, VS2005 sets the connection string as a property (i.e., serialized to app.config). This is ok for design...more >>

quick question: how datareader stores data
Posted by Vadim at 12/27/2005 4:01:12 PM
Hi, Where does the datareader store it's data in this scenario: Create sqlconnection, Create sqlCommand - query specified here could return 1000 rows SqlCommand.ExecuteDataReader, returns datareader use DataReader.read to iterate through the rows. As far as I understand all the 1000 rows i...more >>

ADO.NET paremeters
Posted by WXMCDBA at 12/27/2005 1:04:43 PM
Hi everyone. I have a small problem that I can not seem to resolve. I am executing a stored procedure using the ExecuteReader method. However it is failing. Here is my code in short. I debugged it using Sql profiler it appears that my currentdatetime parameter is going to the next line and I a...more >>

Framework 2.0 Changes ADONET 1.1 SqlCommandBuilder Commands
Posted by PaulJB PHD at 12/27/2005 8:24:59 AM
I'm using the SqlCommandBuilder to help construct the update commands to a SQL Server 2000 database. I have the SqlCommandBuilder generate the initial command text and then modify the CommandText to use primary keys to specify the row to be updated. With the 1.1 Framework on a machine (that...more >>

loading parent row after child row
Posted by Bart at 12/27/2005 6:29:01 AM
Hi, when you load a child row when the parent row doesn't exist in a relational dataset an execption is thrown. Is there an event to capture this occurence before the exeption is thrown? Thanks Bart...more >>

..
Posted by Gary Miller at 12/26/2005 3:48:39 PM
... ...more >>

paramaterized Union query?
Posted by jonefer at 12/26/2005 1:34:01 PM
This is a union query from an Access Database But I will also be using SQL server For the meantime in Access, I want parameters MRN, [GROUP] and SGR For the following UNION query - (how should I go about this using ADO.NET?) SELECT 'Inpatient' AS Type, [IN-BNFT] AS Benefit, [IN-BFC...more >>

Application settings
Posted by Dirk Schelfaut at 12/26/2005 12:39:01 AM
Hello I use the data source window to connect to a database. Because the location of the database might vary, I want to change the connectionstring at runtime via my.settings.... but this is an application setting which can't be changed at runtime. I know how to accomplish a connectionstring ...more >>

Equivelsnt to old recordset & movenext
Posted by Ant at 12/25/2005 10:27:02 PM
Hi, Is there an equivelant to the old ado recordset which you could use the movenext/moveprevious methdods with? If not, what do you use to do this in ADO.NET? What would be the steps invloved in creating the equivelant object & how do you iterate through the 'record set'? (I'm using c#) ...more >>

Need some guidance on .NET connection pooling
Posted by JL at 12/24/2005 9:31:01 PM
Hi all, Merry Christmas! I have an application that reads records off an Excel spreadsheet and imports them into an Oracle database. What I have in my application is a subroutine that opens a database connection, sets up the command and parameters, and executes a stored procedure in t...more >>

how to update the database using SqlcommandBuilder
Posted by mohanaranga NO[at]SPAM gmail.com at 12/24/2005 1:42:51 AM
Hi All, I want to update the values into database.And i get these values from a xml file.I have done the coding for that but its not getting updated.Plz tell me whats wrong in my program.if possible provide me some code for this...... DataSet XMLDataSet = new DataSet(); DataSet Sq...more >>

Multiple database support
Posted by Me at 12/23/2005 9:12:32 PM
How do most people support multiple database types such as SQLServer, Oracle, Access, etc.? Mainly I am wanting to just support MS (SQLServer and Access) but may need others in the future. I am currently looking at creating a simple class that has a few methods for creating and accessing an...more >>


DevelopmentNow Blog