Problem with the Update command used with a sqldataadapter
Posted on
16th Feb 2014 07:03 pm by
admin
I'm connected to a database on an SQL Server and I'm using a sqldataadapter, sqlconnection, sqldataset generated at DESIGNTIME.
I want to call the update command asociated with a sqldataadapter but I don't want to use all the parametres in the command becose I don't need to.
An sqlUpdateCommand created at DESIGNTIME look like this
Did you know?Explore Trending and Topic pages for more stories like this.
this.sqlUpdateCommand1.CommandText = @"UPDATE masini SET producatoriID = @producatoriID, tip = @tip, combustibil = @combustibil, pret = @pret, [data achizitiei] = @Param2 WHERE (masiniID = @Original_masiniID) AND (combustibil = @Original_combustibil) AND ([data achizitiei] = @Original_data_achizitiei) AND (pret = @Original_pret) AND (producatoriID = @Original_producatoriID OR @Original_producatoriID IS NULL AND producatoriID IS NULL) AND (tip = @Original_tip); SELECT masiniID, producatoriID, tip, combustibil, pret, [data achizitiei] FROM masini WHERE (masiniID = @masiniID)";
Pls get me out of this mess.
And another thing. If you have some documentation on Crystal Reports (for SQL Server databases) please send me an e-mail with an attach file.
No comments posted yet
Your Answer:
Login to answer
134
53
Other forums
GIS appliction help
I found some tutorials in the internet to develop a map application I don't want to use google maps
media recovery
Hi,
i startup the database i got the error
SQL> startup
ORACLE instance started.
How could I do this?
Ive got a simple lottery game, and am using an sql database to keep track of the numbers bought. But
Parse Error Help
Hello, I got the parse error "Parse error: syntax error, unexpected ',' in register.php on line
utl_file open error
i have file in the unix path
Path /popdev01/pop/popdevb/tfi/
File name
type check while uploading
Hi Everyone,
How can I check the exact type of a file while uploading on my site?
Here
Need PHP help... have all the elements... just need help putting them together :
Hey Guys,
I was wondering if someone could help me. I am doing a website for a client which
Mysql error message
help me find out what this error message means:
"Duplicate entry '0' for key 'PRIMARY'&q
help countdown timers
hello every one,
I'd like to know how to insert many countdowns in the same page.
The dura
Issues: PHP Forms -Clearing
I've tried looking online before actually asking for help, but I've been looking for about the past