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 > june 2007

Filter by week: 1 2 3 4 5

How can I make Console::ReadLine accepts int? In other words.
Posted by Allen Maki at 6/29/2007 9:31:39 PM
Hi everybody, I need your help. I am using Visual C++ .NET How can I make Console::ReadLine accepts int? In other words. I know I can do this: string* i = Console::ReadLine(); Can anybody tell me how can I do this: int i = Console::Readline(); ...more >>


insert doen"t work: version 2
Posted by Ben at 6/29/2007 9:05:15 PM
Hi, This is version 2 of my story (in a previous post): the first time, the record is inserted into the table of excel, but then all following records are not inserted (and no error message ..) What could that mean? Where to look for? This is the first version of the previuos post: i...more >>

How to auto add record creation date/time
Posted by VB Programmer at 6/29/2007 5:12:34 PM
In my ASPNETDB.MDF database I have a custom table, with a field called "InsertionDate", which tells the user when the record was created. How do I auto-populate this field whenever a record is created? Is this field necessary for this type of info? Thanks ...more >>

Connection String Help
Posted by Charles A. Lackman at 6/29/2007 10:25:34 AM
Hello I am trying to connect to a liked table. When I run this query a window pops up that wants a User Name and Password: No User Name and Password is Required - If I click ok (without credentials) the query runs fine. The problem is that I am trying to send the credentials in my connecti...more >>

ADOnet and Sybase
Posted by Niraj at 6/29/2007 12:00:00 AM
I am using ADO to access data on a Sybase server. Everything works fine until I quit my application where I try to close Ado connection and my application hangs. I found that Connection.Close() method does not returns. Any idea why? Is it a bug with Sybase Ole db provider? Thanks. ...more >>

Convert Access -> SQL Server 2005
Posted by Tony at 6/28/2007 10:53:52 PM
I have Management studio 2005 express. I can't find how to convert access database to sql server 2005 express. Please help. ...more >>

Multiple bulk inserts with one SqlBulkCopy object
Posted by Thomas W. Brown at 6/28/2007 3:54:01 PM
I have an app that generates a lot of data for multiple tables (on one database). This seems perfect for the SqlBulkCopy object which, according to the docs, can be used to handle this case as long as the properties on the object are changed prior to each call to WriteToServer (DestinationTab...more >>

Ado.net DataSet Refresh
Posted by Manjree Garg at 6/28/2007 8:30:01 AM
Hi Is there any way to refresh a DataSet after inserting few records in a table (containing foreignKey column) using adapters' InsertCommand and ExecuteNonQuery(). I tried adapter's Fill(dataSet) but it does not add the new records inserted to the dataset's table. I am doing something like:...more >>



excel error
Posted by AVL at 6/28/2007 8:06:05 AM
hi, i'm using the .net OleDBprovider to read the data from excel file... but sometimes the data from the few of the cells of excel gets truncated... i'm not getting the whole data..if the data length is greater than 255 characters... how can i solve this problem? ...more >>

refresh ???
Posted by Marty at 6/27/2007 4:50:42 PM
Form1 has controls that are bound to columns in a table. "New" button on Form1 opens up Form2, which queries user for new record. After Form2 closes, how do you refresh the data displayed in the controls of Form1 to reflect the additional record? Thanks, Marty ...more >>

DataSet.Merge problem
Posted by J055 at 6/27/2007 1:51:12 PM
Hi This code does not update the copyTbl rows. I.e. when the copyTbl object is merged into the dataset actions on the rows of this table are not reflected in the copyTbl. I want the copyTbl to reflect changes made to the ds.Tables["Sets"].Rows. private void PopulateCopyTableFro...more >>

Binding to a ComboBox
Posted by Bill Gower at 6/26/2007 7:41:17 PM
I have a combo box in which I want to display the distinct values in a field in a table. Depending on the table name and the field name entered by the user, I build an sql statement _Sql = "Select distinct " + _fieldName + " from " + _tableName and fill a dataset with the results How d...more >>

Cancelling addition of new row
Posted by scott at 6/26/2007 5:28:12 PM
I have a simple Windows form bound to one SQL Server table using the BindingSource control. I would like to use the BindingNavigator control to navigate through records. One text box holds a required field. When I click the AddNew button on the BindingNavigator, a new record is added to the Data...more >>

Invoking Stored procedure from ADO.NET is slow
Posted by Oldman at 6/26/2007 1:31:01 PM
I have this stored procedure on a SQL 2005 database that when invoked from query analyzer or SQL Server Management studio runs in 2 seconds. However, the following code times out on the executeScalar call: DbCommand cmd = cnn.CreateCommand(); cmd.CommandText = "spc_search_item...more >>

Import csv files into SQL server with date validation
Posted by Mike D at 6/26/2007 12:49:01 PM
I am very new to C# with little experience with stored procedures (former Coldfusion developer). My problem is that I have two csv files (output from SAP) that I need to import into two tables (after deleting current data) on a reoccuring basis (about every 30 minutes). I have already figure...more >>

Convert ColumnMapping in SubClass?
Posted by lucius at 6/26/2007 12:02:41 PM
I would like to make a subclass of System.Data.DataTable with this method pseudocode: " for each DataColumn, change the ColumnMapping to MappingType.Attribute " However, I am not sure where I should put this kind of logic so it is only executed once. The DataTable may be populated...more >>

Thoughts on Datasets and TableAdapters?
Posted by Dave at 6/26/2007 5:43:01 AM
In VS 2003, used to be able to drag a stored proc (that had multiple selects) onto the designer and it would create a datatable for each select. In VS 2005 it only creates a datatable for the first select. I sometimes do multiple selects to save round trips to the db. Also, after going th...more >>

Find the differences between two datatables
Posted by thecolour at 6/25/2007 12:53:26 AM
Dear all, I have to perform a programatic reconciliation of two sets of data which are based on the same schema. I thought a brilliant way to do this would be to use the dataset.getchanges() method, and then write the changes out as a diffgram using the dataset.writexml() method. The way I ...more >>

<newbie> DOL?
Posted by Jeff at 6/25/2007 12:00:00 AM
..NET 2.0 I've heard rumors that .NET 2.0 contains a functionality which automatically can convert a database table into a .NET class. This functionality is being used as part of the Data Access Layer... Is this true? what is it's name? I think the name is something like DOL - Data Object L...more >>

creating Data Access Layer, how?
Posted by Jeff at 6/24/2007 11:58:08 PM
..NET 2.0 I wonder how a Data Access Layer should be created using best practice! So if you have a link to an article about this subject then please post it here I've heard Microsoft has a special pattern for this, but I have forgotten it's name, I think the name is something like Data ...more >>

dataset and concurrency
Posted by abcd at 6/23/2007 6:24:52 PM
I am trying to understand datasets. It says its disconnected blah blah..... Can some one explain me what happens exactly when... Say I have asp.net page in which Page_load is opening a dataset. So for every request will a separate dataset be opened...say 100 users are requesting so will the...more >>

Visual Studio Typed Table Adapter
Posted by Neil at 6/23/2007 12:20:00 PM
Hi, Enviornment : Visual Studio .NET 2005 and SQL Server /Access I've spent 2 days searching for an answer to this problem which I am convinced is simple - if you know how. I can't get VS to create the TableAdapter classes for me to use in my .NET application. I run the TableAdapter Con...more >>

Binding to TreeView
Posted by Jonathan Wood at 6/23/2007 9:58:12 AM
I want to develop a non-ASP C# application. My program will include a TreeView control that the user can add and remove items from, and I'm considering the possibility of using ADO to store my tree data. Can anyone tell me if it makes sense to use data binding between ADO and a TreeView ...more >>

Data extraction question on SQL using ADO.NET
Posted by Neville Lang at 6/23/2007 12:00:00 AM
Hi all, Though this question is probably more focussed on SQL, I thought I would post it on this forum in case someone here can help me with an answer. I have a single SQL table that has many columns and rows. What I want to do is to take one column in a table, (one that contains short str...more >>

Using Typed Datasets with Infragistics WebGrid not updating
Posted by Scott Lyon at 6/22/2007 6:10:00 AM
I've discovered something odd (it seems) with using Typed Datasets to bind to an Infragistics WebGrid I have on my ASP.NET (2.0) webform. Essentially, if I set up a Typed Dataset (using Stored Procedures for all data access, including select, update, insert, and delete), and then create t...more >>

ApplicationException: Error in the application in SqlConnection.Open()
Posted by Jan Obrestad at 6/21/2007 3:40:55 PM
Hello. I'm developing an application where suddenly I get this rather generic error, it is an ApplicationException with the message: "Error in the application". The problem is that it originates deep inside the .NET Framework. Here is (part of) the stack trace: System.ApplicationException:...more >>

Type is invalid error
Posted by william at 6/21/2007 1:05:01 PM
Hi, I have a tableadapter which is used to access Oracle database using OLEDB for Oracle. I have a query on this adapter which consumes a procedure, this procedure has output parameter as Char(1) or Int. From my business layer, I call the adapter query by passing parameter of out string. It...more >>

Error while connecting remote SQL server
Posted by at 6/21/2007 4:52:55 AM
hi all, I trying to connect remote sql server from my machine. but it giving me some errors Here are few errors listed, =EF=82=A7An error has occurred while establishing a connection to the serve= r=2E When connecting to SQL Server 2005, this failure may be caused by the fact that under the...more >>

Error in DSN
Posted by Simi at 6/21/2007 2:17:02 AM
I have Error:Could Not Install ISAM.When i use System DSN. my code is in app.config <add key="dsn1" value="Provider=Microsoft.Jet.OLEDB. 4.0;DSN=EduLiteDSN"/> and i create system DSN =EduLiteDSN and database is Ms-Access 2000 ...more >>

how to save a piocture n a table
Posted by Mero at 6/20/2007 11:09:47 PM
hi to all; i want to save a picture in column image in a database for example,in the table "users" i want to save the user image as when i want to select the user data from the database to show it in my site, the image selected from the table "users" thanks you ...more >>

How To Save A Picture In a table
Posted by Mero at 6/20/2007 4:40:23 PM
hi to all; i want to save a picture in column image in a database for example,in the table "users" i want to save the user image as when i want to select the user data from the database to show it in my site, the image selected from the table "users" thanks you ...more >>

commit transaction closes connection ?
Posted by John Grandy at 6/20/2007 4:30:55 PM
Does committing a transaction close it's underlying connection ? Or must you explicitly close the connection ? Also, is there any reason to dispose a connection ? My goal is to force the underlying connection to return to the connection pool. Thanks. ...more >>

SqlConnection.Open() Which ErrorCodes
Posted by Henrik Skak Pedersen at 6/20/2007 4:03:36 PM
Hi, I am trying to discover which SQLException.ErrorCode SqlConnection.Open() can throw. I have until now discovered these: // 53 : {"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under...more >>

Concurrency violation problem.
Posted by pachuts at 6/20/2007 2:18:36 PM
Hi, Using ADO.NET Table adapter in C# , am updating a record using VS2005 generated update command by passing dataset and the assocaited table like; this.CustomerDataSet.CustomerTable. while updating am getting "Concurrency violation: the UpdateCommand affected 0 of the expected 1 records...more >>

DAO/VB6 Outperforms ADO.NET in VB 2005
Posted by Paul Engel at 6/20/2007 1:24:04 PM
I have an application that reads through a delimited file, breaks the values into an array and then checks to see if the record already exists in the database. If it does, the record is updated. If not, the record is added. Both of these actions are based on the values of the associated array ...more >>

Error with report viewer and Oracle database access
Posted by Rusty Owens at 6/20/2007 11:41:50 AM
I am trying to connect dot net report viewer control to an Oracle database. When I try to run it, I get the following error message: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater. I have installed Oracle Client 9.2 on that server and have tried the fix a...more >>

Behavior of close application during dataGrid modification
Posted by schaf NO[at]SPAM 2wire.ch at 6/20/2007 11:10:43 AM
Hi NG! I have recognized a strange behavior of the DataGrid control. If I'm editing the value of a cell in the DataGrid and press the close button (of the ControlBox of the application 'X') then the application closes but the DataGrid does not loose the Focus. I would like to save the changes d...more >>

SQL Server 2005 installation
Posted by Steve Bugden at 6/20/2007 9:56:01 AM
Hi, Could someone please tell me what I would need to install if anything on a client machine to access an SQL Server 2005 database from a .Net component? Is it sufficient just to have the database files (.mdf and .ldf) and access them via ADO.NET? I only have a development machine and ...more >>

Working With Tables, Please Help!
Posted by Nando_uy at 6/19/2007 4:19:01 AM
I'm a Vb.net 2005 newbie, but an Older VB6 programmer. With a ADO I work very comfortably (many years!), with ADO Is possible to work DIRECTLY with all the records in a Table WITHOUT the need to write ANY sql command. I try to make the same with ADO.NET (.Net 2.0) using sqlserver express, but ...more >>

need a reply of this question
Posted by Mero at 6/19/2007 12:27:34 AM
i use visual studio 2003 amd c#.net to make my web application my site is about e-learning in my site i want to set some setting in "create new lesson page" such as name, description , startdate, end date,... i used textboxes,dropdownlist, radiobutton in the design of this page the probl...more >>

ObjectDataSource with list of others object in an object
Posted by Ghistos at 6/18/2007 11:05:00 AM
i all, I have a class with properties returning int, string, date... and generic Lists of other classes. private static string zipcode; private static string city; private static double? x; private static double? y; private static List<Proprio> pro...more >>

Contecting transactions between two stored procs
Posted by Jerry J at 6/18/2007 8:55:02 AM
I have two sql server stored procedures that use transactions. Both stored procedures have there own begin transaction , commit and rollback. Currently I have C# .Net code that executes both of these stored procedures consecutively. Everything works fine unless the second stored procedure ...more >>

SQL Server 2005/.NET 2.0 - Application performance deteriorates!
Posted by Steve Barker at 6/18/2007 8:46:00 AM
Hi guys, I’m getting a really weird problem when accessing a SQL Server 2005 database from .NET 2.0 code. I was wondering if anyone could make any suggestions as to what is going wrong?! Here is the problem (names and real world equivalents have been altered!): I have a database that ...more >>

Need help with this Error
Posted by news.microsoft.com at 6/16/2007 12:27:49 PM
I have a SQL Server database. I am using a OleDB Provider. I am getting the following error An unhandled exception of type 'System.InvalidOperationException' occurred in System.Data.dll Additional information: Command parameter[2] '' is invalid. Command parameter[3] '' is invalid. He...more >>

Delete the data from tabel in the database
Posted by Husam at 6/16/2007 4:48:00 AM
Hi EveryBody: I made project by using Asp.Net 2.0 and the code behind is written by vb.net I want to delete the old password from the database tabel and insert the new password insted ? My queruy for retriveing information from the data base is : Dim cmd As SqlCommand Dim ...more >>

ADO.Net
Posted by Steve at 6/15/2007 3:49:27 PM
Does any body have sample code to create a dbf from ado.net recordset in C# From http://www.developmentnow.com/g/7_2004_3_0_1_0/dotnet-framework-adonet.htm Posted via DevelopmentNow.com Groups http://www.developmentnow.com...more >>

Updating a P.SQL DataSet
Posted by mitzoe NO[at]SPAM yahoo.com at 6/15/2007 1:55:04 PM
I apologize for any inappropriate cross-posting, but wasn't sure where whether this is a Pervasive or ADO.NET issue. I'm trying to migrate data from a propietary system that's based on btrieve into Pervasive SQL 9.5 using a .NET application written in C#. The main problem is that the existing...more >>

Oracle DB, Remoting and .NET
Posted by ashehu NO[at]SPAM gmail.com at 6/15/2007 4:40:24 AM
Hi all, I am workibng on an application that will interact with an Oracle database and this is the first time I am doin sthg with oracle. From what I read in other posts, I will have to install the oracle Client before I can use any of the providers (MS or Oracle) to interact with the database....more >>

Updating DataTable best practice question
Posted by Jon Pope at 6/14/2007 2:34:30 PM
Currently, I'm investigating various architecture designs which involve maintaining a DataTable object within a background thread. I have various grids which will feed from that DataTable via DataView objects. Thus the layout is: DataTable object (worker thread) -> DataView object (main t...more >>

error: an exception of type: {System.InvalidOperationException} occurred
Posted by Elmo Watson at 6/14/2007 12:13:09 PM
I have a class - I Dim a SQLconnection, then, in Sub New, I instantiate it, so that it's available to me whenever I reference the class (correct?): Conn = New SqlConnection(msConn) Then, in my Subs/Functions, this section (inherited from previous author): If Conn.State = ConnectionState.Close...more >>


DevelopmentNow Blog