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 > august 2003 > threads for monday august 11

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

stored Proc Returning only the Value 7
Posted by Sabby at 8/11/2003 11:12:18 PM
i have written a stored procedure in Oracle with client Oracle 8. This procedure is called by an ASP.NET Application with Code written in C# PROCEDURE Spvalidatemobilenumbernew( pinumOldMobileNumber IN SERIALNUMBERTRACK.N_SERIALNUMBER% TYPE, pinumSimNumber IN SIMMOBILE.N_SIMNUMBER%TYPE, p...more >>


DataAdapter,plz help !
Posted by Ms.net at 8/11/2003 10:53:57 PM
am having problem updating data with dataadapter....in some of my tables. I realize that, Dataadapter doesn't SOMETIME fire event rowupdating even if there are new rows. Because of that,rows are not updating in Databases. I use olecommandbuilder to generate Insert command. Update and ...more >>

OleDbCommand / ADO.Net Recordset
Posted by Sarah at 8/11/2003 5:40:07 PM
I've used the OldDbCommand to retrieve some data (SELECT query) -- I have two questions. 1. How do I find out how many records where retrieved WITHOUT looping through the results and incrementing a counter? Is there a direct way of some sort? 2. How do I initialize an array and add all my P...more >>

unwanted Type of System.DBNull
Posted by Randy at 8/11/2003 5:22:21 PM
I'm trying to get data out of an excel file, but for first column below the Type is System.DBNull. The other 2 columns the Type is System.String. But then after a few more rows, a second column's type becomes System.DBNull so whenever the type is System.DBNull, I can't get the cell value...more >>

nulled out - defaults instead?
Posted by Bernie Yaeger at 8/11/2003 4:44:25 PM
OK, I'm nulled out. I am converting a dbase based enterprise wide system that has almost 100 tables to convert into a vb .net system using ms sql server 2000 (I am posting this both to ado .net newsgroups and sql server newsgroups). I am working with a prototype where many of the columns in m...more >>

DataBound WebForms DataSet goes Empty
Posted by JS at 8/11/2003 4:06:40 PM
Having a little trouble getting at my data after the webform I'm using is submitted. Perhaps this is better posted to web forms, but its my ADO implementation that seems to be the problem. I'm using a DataSet control on a form that I bind the form's controls to. But when I check that DataSet ...more >>

AddNewRow
Posted by szabelin at 8/11/2003 3:55:26 PM
Hi,I am trying to a several rows like this: 1. Get new datarow from typed DataTable object (datatable) 2. Set datarow's values (except the primary key - it's marked as identity and is generated by sql server) 3. Add datarow to my datatable object after adding several rows I call Update on ...more >>

Question: Easiest way to update 1 field in db
Posted by VB Programmer at 8/11/2003 2:38:39 PM
I have a text field with a value. What is the easiest way to update the database with this value? I think a dataset would be overkill. Can't I just run the UPDATE SQL command directly? Can you provide a sample? Thanks. ...more >>



ADO.NET vs. RDS
Posted by Aaron at 8/11/2003 2:33:11 PM
The current version of my company's app uses RDS objects for all of our data access/updates. Our new version of the app will be built in .NET. In playing around with ADO.NET, it seems to me, it seems to me that ADO.NET is a TON slower than RDS was. Can anybody help me set up ADO.NET to ...more >>

I want datagrid not to show all columns of dataset table
Posted by Jan Driesen at 8/11/2003 2:00:44 PM
I created a Datagrid and made a bind with a Dataset Table. I don't want to see all the colums of the table, so a made a TableStyle and two ColumnStyles (at design time). When I run my application all the columns of the table are shown instead of the two I made of my own. I can, of course, cha...more >>

Navigate through Dataset
Posted by Paolo Taverna at 8/11/2003 1:39:31 PM
Hi all I am changing from VB and ADO 2.7 to C# and ADO.NET . The Recordset Object from ADO 2.7 has a Method "next" . Is there a similar Method when i am using a Dataset perhaps in the Datatables or Datarows ? Is it possible to navigate through a Dataset like Recordset from ADO 2.7 ? Bes...more >>

Binding a Business object to a datagrid with multiple levels
Posted by Liam Ponder at 8/11/2003 12:29:29 PM
I have a arraylist of workorders that I can bind to the datasource of a datagrid. However, each workorder has a building object that has properties as well. How can I access these subproperties of the building object in the datagrid? I can access these single level fields easily Wo...more >>

simple PrimaryKey question
Posted by Stuart Powers at 8/11/2003 11:57:04 AM
background: I have a table in the database, 1 column in the table is a primarykey. 2 columns in the table do not allow nulls (one of those columns being the column that is a primarykey) problem: DataColumn [] dc = myDataSet.Tables["mytable"].PrimaryKey; MessageBox.Show(dc.Length.ToString...more >>

save row's information after dataset clear
Posted by touf at 8/11/2003 11:28:51 AM
Hi, I have a dataset that contain one row, I like to replace this unique row by another one that contain the same information (with a new version number), this is my code Dim myRow As DataRow Dim newVersion As String = getNewVersionNumber() ' a function that return a new version nymber ...more >>

dotNet - syntax for parms in SQL Connection?
Posted by kate at 8/11/2003 11:27:37 AM
I need to pass along parms in an SQLConnection. EG con = (New SqlConnection("Data Source=mySQLserver;user id=UserName; password=UserPassword;Initial Catalog=northwind")) The function is passed the values as parms and needs to pass them along to SQLServer. ie: <WebMethod()> Publi...more >>

Specifying default values for columns using XSD
Posted by Marc Scheuner [MVP ADSI] at 8/11/2003 11:15:05 AM
Folks, I've defined my dataset by means of an XSD, and it works okay - I was wondering if there's a way to specify default values for columns (e.g. true/false for booleans) in the XSD itself? Can't seem to find anything..... but there's *got* to be a way, no? Marc =======================...more >>

Updating Tables Not Working
Posted by Terry Burns at 8/11/2003 10:08:28 AM
I have a datagrid bound to a table called tableEvents. I havesuccessfully managed to manually code the insert, delete, select statewments, but the update is giving me problems. I installed a handler which fires on row changed. Th rowheader gets a little exclaimation mark in a red circle after u...more >>

Is it safe instantiate a strongly typed DataTable directly
Posted by Javier Venero at 8/11/2003 9:39:25 AM
I have generated a strongly typed DataSet class with one DataTable. Supose DataSet class name is DSCustomers and embedded DataTable class generated by VS is CustomersDataTable. I am not sure if it's safe to do and use this: DSCustomers.CustomersDataTable table = new DSCustomers.CustomersDataTabl...more >>

Calling a procedure
Posted by Jon Cosby at 8/11/2003 9:04:03 AM
How do you call an existing procedure? My database has a procedure called "StudentSchedule" with one parameter, @StudentID. I'm trying to fill the results in a datagrid with a StoredProcedure command. The grid is not even showing on the page. SqlCommand cmdSchedule = new SqlCommand(, this....more >>

DataGrid Update/Delete not working
Posted by WebDevHokie at 8/11/2003 8:56:34 AM
I have a very simple example that I am trying to get the update and delete (through DataAdapter) working. I have the insert working just fine, but the update/delete do not work. This is a win app if that matters. I get a concurrency update (or delete) error saying that no rows are updated (or ...more >>

Question: Try Catch Finally
Posted by VB Programmer at 8/11/2003 7:20:14 AM
I usually put my declarations for db connections, datasets, datareaders, etc... above the Try portion. Inside the Try is where I open my connection, executereader, etc... In the Catch portion I usually "clean it up", with closing the datareaders, connections, etc... Is this the best way to do ...more >>


DevelopmentNow Blog