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 > november 2004 > threads for wednesday november 17

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

Concurrency violation: The DeleteCommand affected 0 recordss
Posted by TheNortonZ at 11/17/2004 10:14:25 PM
I am having a concurrency problem with a child table that I can't seem to figure out. I have a parent table 'ProposedCost'. Its primary key is a guid. I have a child table 'TermsAndConditions', it has a primary key that is a guid and a foreign key to the ProposedCost table. I have a grandch...more >>


DataAdapter crazy Updates child rows
Posted by VR at 11/17/2004 9:58:04 PM
Hi, I developed a simple app that has a parent-child table relation (parent's PK is an Identity col). I insert a new parente record and a few child ones. When I call the parent table's DataAdapter Update method it gets the new Identity value from SQL Server and update the child rows in memory ...more >>

should I use a datarow for this?
Posted by djc at 11/17/2004 4:46:57 PM
I am retrieving fields from a database using a stored procedure that I know will always only return 1 row. I would like to arrange my text boxes, dropdown listboxes, etc... and bind the appropriate fields from this stored procedure to these controls. Can I return this one row of data directly ...more >>

Couple of ADO.NET 2.0 Questions
Posted by J. Ambrose Little [MVP] at 11/17/2004 4:46:03 PM
I've got a couple of ADO.NET 2.0 questions that I thought I'd post here to see what you all think. Question One (regarding new SqlTypes): I ran across the new types, but the current docs online at msdn2 and in the 2005 BOL do not provide any details. The types I'm unfamiliar with are: SqlByt...more >>

SqlDataAdapter.Fill throws me an IndexOutOfRangeException
Posted by Uri Dor at 11/17/2004 4:15:24 PM
for some reason, a specific database state gives me an IndexOutOfRangeException when I call SqlDataAdapter.Fill (in several cases the same code doesn't throw the exception) the SELECT is: SELECT Bank_sec_code, Dt, Par_val, Rate, Rate_nis FROM dbo.Common_rates WHERE (Dt = @dt) I supply a...more >>

Does the order of the update matter?
Posted by TheNortonZ at 11/17/2004 3:01:24 PM
I have a dataset with several tables in it. Some of the tables are related, such as like where I would have an 'Order' parent table and an 'Order Details' child table. The 'Order Details' also has a child table to it named 'Order Years' table. 'Order Details' has a foreign key of the primary k...more >>

Decimal Conversion failed Oracle dataset
Posted by Chuck P at 11/17/2004 2:08:11 PM
Using System.Data.OleDb Dim ds As New DataSet da.Fill(ds) When I run this against Oracle 9.1 I get: "Conversion failed because the Decimal data value overflowed the type specified for the Decimal value part in the consumer's buffer." Sounds like OleDB doesn't know how to handle big nu...more >>

Typed DataSet and group by
Posted by Donal McWeeney at 11/17/2004 1:44:28 PM
Hi, I have a typed DataSet with 3 DataTables containing master-detail detail. I need to perform variable levels of group by on this data - and pointers to example code greatly appreciated. I something in my MSDN library ages ago that grouping on datatables but cant find it any more! I a...more >>



Make a Select command from two tables
Posted by Paul Oliveira at 11/17/2004 12:44:06 PM
Can i do this is ADO.NET using C# and a SQL server. Select * from table1 where Client= ( //What i want is (Client=CodCli) select CodCli, Vend from Table2 Where Vend ='Variable'; From i read i cant make a dataset from diferent tables, so how would you solve this problem. ...more >>

Additional information: Object reference not set to an instance of
Posted by Brad at 11/17/2004 11:45:03 AM
Receive the following error when stepping into the FILL (see last line). Being a newbie I cannot see anything obvious. Error message: An unhandled exception of type 'System.NullReferenceException' occurred in system.data.dll Additional information: Object reference not set to an instance...more >>

Connecting to Oracle gives error
Posted by Bauer at 11/17/2004 10:39:00 AM
I am trying to connect to Oracle database from ASP.NEt usng VB.NET. I added a reference to the MSOracleClient and tried connecting to oracle using the MS .NET Framework data provider for Oracle. I have Orace9i client installed on my machine and I keep getting the following the following er...more >>

Currencymanager.addnew or Dataset.Tables("Name").NewRow
Posted by Debi at 11/17/2004 9:49:07 AM
Hi, I'm sure many of you would have done this before. I'm databinding textboxes, and adding a newrow using, Dataset.Tables("Name").NewRow and setting the position of the currencymanager, but this doesn't clear the textboxes, even when I explicitly clear them. If I use Currenc...more >>

Advice on creating a DataTable to place into Blank MS Access DB file
Posted by JuLiE Dxer at 11/17/2004 9:14:47 AM
I'm wondering what's the appropriate way to do the following: My app programmatically creates a DataTable and its schema (shema varies), places it into an empty DataSet. Then, it reads from file, does some work, then populates the DataTable with many rows. Then, it copies a blank Access DB...more >>

Very strange problem!
Posted by yonggangwang at 11/17/2004 8:36:05 AM
Hi:my friends I meet a very very strange problem; I use untyped dataset, after I changed the value of one row in the datatable,I see the rowstate is modified,but after I call the update method of datadapter,nothing hanppend.Here is my code: daMasterRemote.Update(dsRemote.order_master); dsL...more >>

Linked MSDE tables in Access
Posted by Ed Staffin at 11/17/2004 8:29:03 AM
Ok, I have an mdb with a couple of linked tables from an MSDE db. When I linked em I saved the password. I have a query in Access that refers to one of the tables in MSDE. It works great. However, when I try to run that same query from and Aspx page, I get an error telling me that ODBC can...more >>

XmlDataDocument Serialization
Posted by Patrick at 11/17/2004 3:58:03 AM
Hi Ng, I have an XmlDataDocument which I want to serialize, so that I can store it in my Sql server via ADO.NET. It should be possible to read it out again and create a similar XmlDataDocument instance, so that I can work with it. Unfortunatly, the XmlDataDocument isn't serializable from na...more >>

Update and re-Select when not using a stored procedure
Posted by Earl at 11/17/2004 2:12:03 AM
For my desktop apps, I create stored procedures for all of my update/insert/delete commands. I refresh the data with a "re-Select" as part of the stored procedure. However, with the Compact Framework and SQLCE, you cannot use stored procedures. Thus my question is, how best to implement the ...more >>

How to fill a datatable from xml without a dataset
Posted by uwaibel NO[at]SPAM t-online.de at 11/17/2004 1:58:03 AM
Hello, how can I fill a programatically created datatable with data from an xml file without having an dataset. The xml data have to be validated against a schema. Is there a ado.net builtin functionality, or do I have to code the functionality by myself. Any help is apreciated kind r...more >>

CharIndex SQL
Posted by pierre hourdille via .NET 247 at 11/17/2004 1:11:10 AM
Hi alls I have a problem with a stored procedure : I use a CHARINDEX to filter a query and if I execute the query from sqlServer the charindex works fine but if I execute the query from my ASPNET application the charindex always return 0 (to test it I quit it from the Where to put it as a colu...more >>

Sharing an OLE DB connection between MDI Parent and Children
Posted by Peter Hawkins via .NET 247 at 11/17/2004 1:10:58 AM
G'day all, Being a fairly inexperienced programmer, I've never worked with= MDI Forms before=2E What I'm trying to do is open a Jet OLE DB= connection on my MDI Parent form (which is used to log in and= out with user name and password), and access this same= connection from the MDI Child ...more >>

C# SQL SERVER LAST INSERT ID EXAMPLES
Posted by Sheraz Khan via .NET 247 at 11/17/2004 1:09:16 AM
does anyone have sample code of data being inserted to a table, then the last insert id is retrived and inserted into another table. The Code is c# and the database is SQL SERVER, NO Access examples or vb... Thanks for this... i just cant find a simple example on this identity problem, people...more >>

insert multiple rows using loop
Posted by vrush desh via .NET 247 at 11/17/2004 1:07:13 AM
(Type your message here) Hi, I am trying to insert multiple rows using 'for' loop. It inserts first row but while inserting second row it gives error like "The variable name @name already declared. Variable names must be unique within a query batch or stored procedure" Please help me...my em...more >>

Problem creating foreign key constraint in strongly typed dataset
Posted by Ryan Ehrenreich via .NET 247 at 11/17/2004 1:06:21 AM
I have a question about how to define certain types of= constraints in strongly typed datasets=2E I will start from a= relational database example and show my problem when I move to= XML datasets=2E Lets say I have a relational database with 4 tables named= "Region", "Segment", "Product",...more >>

ExecuteReader requires an open and available Connection. The connection's current state is Closed.
Posted by renu renu via .NET 247 at 11/17/2004 1:02:24 AM
(Type your message here) -------------------------------- From: renu Friends, when I am trying to create a login page and connecting to the sqlserver database I am getting the following error ExecuteReader requires an open and available Connection. The connection's current state is ...more >>

Fire query on DataSet
Posted by Arun Gupta via .NET 247 at 11/17/2004 12:59:26 AM
DataSet is supposed to be an in-memory database=2E So is it= possible to fire a query on it=2E I want to fire a "Select" query= (with alises in it) and also a "Transform" (Crosstab) query=2E In= the current scenario I am putting things in an Access table but= for performance reasons want to ...more >>

Can't get record to insert into Access
Posted by Drew Burlingame via .NET 247 at 11/17/2004 12:59:13 AM
I have a windows service that will insert records into an Access= database=2E Or at least that's the idea=2E The insert isn't= happening, but the code runs without raising any errors=2E When I= run the generated sql statement from a query window in Access,= the record inserts just fine=2E...more >>


DevelopmentNow Blog