|
-
May 13th, 2008, 07:00 AM
#5
Re: UpdateCommand vs. InsertCommand
 Originally Posted by cokelite
For cjard's information:
The DataSet is generated from SqlServer and is written to SolidServer.
For JonnyPoet:
The resulting CommandText seems to be valid.
"INSERT INTO TableX(Field1, Field2, Field3 ) VALUES ( ? , ? , ?)"
(connConnection, trans); // whats this ? That was a typo in my post, sorry.
Trerrornummber 7007 says that the number of fields is incorrect so have you added all parameters correctly ? or are there fields missing which needs to get data ( must be written ) and you havn't inserted their data? I would look for nummber of fileds needed to insert and if all the data in the params are available
 Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
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
|