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 > december 2003 > threads for tuesday december 30

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

here's a weird one: web server and adodb.dll
Posted by Tom Wilson at 12/30/2003 10:48:38 PM
I'm in a pickle. Maybe you guys can shed some light. I am setting up a web site that uses a ADO and SQL server. My first site went well, and works wonderfully. So I use the same classes and modules I developed to build a second site. I'm developing and testing on a Windows XP machine, then ...more >>


A little question about handling nulls from database
Posted by Simon Harvey at 12/30/2003 8:40:48 PM
Hi everyone, I'm wondering if there is some easy way to deal with null values being returned in a DataRow. When I get data from a database (Access) most of it is string based. However, I don't always know if a particular row will contain any information in any given column. Sometimes there...more >>

pooled connections
Posted by dave at 12/30/2003 5:36:58 PM
I am getting an error about my # pooled connections exceeded or timeout exceeded. I am searching my code for any open data readers. I have read that i can use perfmon to watch the number of pooled connections using .net clr data and counter "sqlclient:current #pooled and nonpooled". M...more >>

Dataset problem-- while using complexTypes
Posted by tabrez at 12/30/2003 5:09:33 PM
Hi, I am facing a problem while trying to use complexType in an element. I want to nest an element "somechildren" into an element "some". This can be done by creating a nested relationship between "some" and "somechildren". However, the problem is that the fields in the child table "so...more >>

Problem reading text file..
Posted by Simon Verona at 12/30/2003 4:46:23 PM
I'm trying to populate a dataset with the contents of a csv text = file.... This is one of a number of attempts I've made to read in this = file (I don't actually want to display the information, but read through = it line by line in code..). My code at the moment looks like : Dim TextC...more >>

Should I be using .Dispose()?
Posted by Michael at 12/30/2003 4:33:37 PM
Should I make calls to .Dispose() for ado.net objects when I'm done with them, or is it best to let .net's garbage collector handle these objects after I'm done with them? Thanks ...more >>

DataRow
Posted by Jim Heavey at 12/30/2003 4:29:36 PM
The documentation indicates the DataTable has a property called "Rows" and it states that "Gets the collection of rows that belong to this table." When I go to use this property (show up in intellisence) all is well, but when I attempt to compile, the compiler tells me there is no such proper...more >>

DataRow
Posted by Jim Heavey at 12/30/2003 3:12:41 PM
If I am using c# and I have a DataRow and I know that I want the value for a column named "Fred" - how can I access this column if I do not know it's index? Must I loop through the columns collection to find the right index? Thanks in advance for your assitance!!!!...more >>



Access Database question
Posted by Eddie at 12/30/2003 2:57:19 PM
Hi, I working with vb.net and a Microsoft Access Database. I am tring to input a single quote ' into a table (query below). However, I am recieving an error. How would I go about performing such a task? INSERT INTO list (name, value) VALUES ('Sam', 'Sam's Car') Thanks in advance. E...more >>

DefaultValue
Posted by Jim Heavey at 12/30/2003 2:49:32 PM
If I am setting up a DataTable and a particular column is defined as a GUID and in SQL Server it has a default value of newid() does this mean that I should define the "DefaultValue" for the column as new Guid()? How do I handle setting the DefaultValue for the column in the datatable?...more >>

Refreshing dataset problem?
Posted by grawsha2000 NO[at]SPAM yahoo.com at 12/30/2003 2:34:17 PM
Hi, I noticed that since I have created lookup table in combobox, there has been a performace degradation in refreshing dataset (clear and fill)? 'code for creating lookup table in combobox da.Fill(ds, "employees") cboreportsto.DataSource = ds.Tables("employees")...more >>

Editing data within a datatable
Posted by AC at 12/30/2003 2:04:42 PM
I have a datatable that contains data I'm inserting programatically (not = from a datasource... using between postbacks to persist data). I need = to be able to update the elements within the table, but I also need to = sort the elements using a DataView. Here's my code as it stands: Dim dv As...more >>

ADO Exceptions
Posted by John Bollwerk at 12/30/2003 12:45:16 PM
Does anyone know the name of the exception that is thrown when an attempt is made to add a duplicate entry (key value) to an Access data base? The int value appears to be -2147467259. Any one know where I can find a list of exceptions and their corresponding integer value? Thanks...more >>

Complex SQL Statement
Posted by George Addison at 12/30/2003 12:30:55 PM
I thought I might post this to see if there is a pro that can help me. Here's what I want to do: - I have two tables ('tblPositions', 'tblTrades') - A relationship exists at tblPositions.ID = tblTrades.PositionID - I need to pull only one record from each relation set (the one with the ...more >>

SQL Server does not exist or access denied
Posted by kamran at 12/30/2003 11:41:48 AM
Hi all, I am getting the following error message in my asp.net page while connecting to SQL server "SQL Server does not exist or access denied" I am using the following code constr = "User ID=designers; Password=designers; database=DesignManagement; server=dserv" ; SqlConnection objco...more >>

ANN: Free DataAdapters generator
Posted by Miha Markic at 12/30/2003 11:24:56 AM
Hi there ADO.NET users. I have a new year present for you :) I've put together a template that generates update/insert/delete commands, an adapter that holds them together plus code for doing updates. It works for Sql server or Access for now. Template is run with CodeSmith (free template bas...more >>

How do I Update a Disconnected DataSet?
Posted by Bill Szerdy at 12/30/2003 10:59:15 AM
Here is the code I have and it does not work. Any Suggestions? public bool saveRackTypes(DataSet saveSet) { SqlDataAdapter myDataAdapter = new SqlDataAdapter(); try { myDataAdapter.SelectCommand = new SqlCommand ("SELECT * FROM RackType", _myConnection); myDataAdapter.Update(s...more >>

Newbe question about Oracle
Posted by Daniel Bello Urizarri at 12/30/2003 10:56:06 AM
Hi: Is there any way to get connected with an Oracle server without installing the 200MB Oracle Client. Some kind of driver? Oledb, Odbc, *db*? I'm using the 8i version. Is it possible under the 9i version? Thanks ...more >>

transactions with dataadapter update?
Posted by Mathew Michuta at 12/30/2003 9:44:30 AM
I have a dataset that i read into a datagrid, and I need to find a way to update that table using transactions in case some records update and some don't. I would rather use the data adapter update so I dont have to use all those update statements. Thanks!...more >>

DataTable allowing duplicate Entries!?
Posted by TJO at 12/30/2003 9:42:31 AM
I have a typed DataTable with two only fields that, together, I have set as the key. Why then is the DataTable allowing duplicate entries? ...more >>

Databindins?
Posted by grawsha2000 NO[at]SPAM yahoo.com at 12/30/2003 9:11:39 AM
Hi, Will be very thankfull if somone can exaplain the difference between; txtbox.databinding.add(New binding(("property of contorl",ds,"property of" _ & "datasource") AND txtbox.databinding.add(("property of contorl",ds,"property of datasource")...more >>

Cannot update: Read-only
Posted by John Spiegel at 12/30/2003 7:42:42 AM
Hi, This is probably simple, but I've got a very simple C# function that connects to a VFP database and takes a SQL command as a parameter. When I attempt to send that command to the database (ExecuteNonQuery), it throws an exception indicating "Cannot update the cursor <TableName>, since it ...more >>

Where should I declare & instansiate Connection Obj?
Posted by grawsha2000 NO[at]SPAM yahoo.com at 12/30/2003 7:33:31 AM
Greetings All, Where should I declare & instansiate Connection object? That is, should I do it in class or main module. I'm really confused, if connction obj. is decl. and insta. before connection string gets servername and database from registry this will causes an error? Any doc or codes ...more >>

vb.net query
Posted by sanjitsil NO[at]SPAM yahoo-dot-com.no-spam.invalid at 12/30/2003 5:38:54 AM
I am learning VB.NET, trying to insert record in Access Database using oledbCommand. I am getting an error Which is typed below during compiling the programe. I am sending the source code .Please rectify the error and send me. ERROR MESSAGE: An unhandled exception of type 'System.Data.OleD...more >>

Intercept UPDATEs and change to INSERTs
Posted by Fred Morrison at 12/30/2003 5:25:36 AM
What's the best strategy for intercepting updated rows in a DataSet (let's assume only one DataTable) and turning them into INSERT's (I'll tweak a Date/Time stamp to insure they are new rows that don't violate any constraints)? I don't need code examples, just advice from those with exper...more >>

Stored Proc problem
Posted by J Jones at 12/30/2003 4:53:12 AM
I have 400 rows in the TRAIT_NOTES tabel but my sp. returns just 87 records any idea why that may be? ALTER PROCEDURE dbo.GetTraits AS SELECT 1 AS TAG ,NULL AS PARENT ,NULL AS 'TRAITNOTE!1!' ,NULL AS 'Result!2!CONDITION' ,NULL AS 'Result!2!NOTE' UNION SELECT 2 ,1 ,NUL...more >>

setting a row
Posted by reiks at 12/30/2003 4:41:23 AM
I want to set a row i.e. upon calling my fucntion SetRow(int val), the cursor should be present in that particualr row. I dont want to use Edit button for my web daatgrid How to acheive it?...more >>

Sybase Database
Posted by S.Rajesh at 12/30/2003 1:53:25 AM
we are using the sybase 12.5 database in the unix server. using the oledbdataadpator, how can i connect to the database. That is what should be my string in the ConnectionString Thanks...more >>

Data Proviers for Dot.Net
Posted by jovin NO[at]SPAM yahoo-dot-com.no-spam.invalid at 12/30/2003 1:06:24 AM
Pls send me the Providers available for Dot.Net to Oracle 9i....... With advantages and disadvantages.... With thanks.... Jovin ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgrou...more >>

Connect to Excel spreadsheet ??? - PART 2
Posted by <-> at 12/30/2003 1:04:05 AM
Hi, Thanks to Paul Clement & William Ryan, I've connected to my Excel spreadsheet by using the "Jet 4.0 OLEDB" provider and by setting "Extended Properties" to "Excel 8.0". Although the connection is prefixed with "ACCESS" rather then "EXCEL", I can successfully use the VS.NET Server Explorer...more >>

Staic Methods in a data layer object good or Bad?
Posted by Nick P. at 12/30/2003 12:53:18 AM
We have a faily large Asp.net application and we removed all of our dat access calls to an object that just contains the actual static calls we use against datatables and calls that execute directly against command objects (non query calls) We wrap all of our calls with a Mutex to avoid collisio...more >>


DevelopmentNow Blog