|
-
Nov 29th, 2002, 05:23 AM
#1
Thread Starter
Lively Member
SQL Server & DataSets ?? Key Column Info ?
i've just started developing using sql server & vb.net
and am slowly learning about ado rather than dao but my question is this
im using vb.net & i have some code using a OleDbDataAdapter, OleDbConnection, OleDbCommand and a DataSet
but when i try n update records on the database i keep getting the error
Dynamic generation of SQL cannot be done . . . .
because no key column information was selected ???
whats key column information its really starting to do my head in
-
Nov 29th, 2002, 07:17 AM
#2
Frenzied Member
How are you updating them ??
With recordset, updatestatement ??
Code:
If Question = Incomplete Then
AnswerNextOne
Else
ReplyIfKnown
End If
cu Swatty
-
Nov 29th, 2002, 07:23 AM
#3
Thread Starter
Lively Member
using the myDataAdapter.update command
and passing in the dataset
-
Nov 29th, 2002, 07:55 AM
#4
Frenzied Member
Does your table have a primary key?
-
Nov 29th, 2002, 07:57 AM
#5
Thread Starter
Lively Member
Primary Key
im using the one column as a Unique ID but its not set as the primary key
ill give it a goe see if it works [ ]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|