Thanks in advance. This stuff can be very overwhelming.
You only need a SQLClient.Connection,
a SQLClient.SQLCommand
and from the last an executenonquery
As pseudo sample
\\\
dim conn as new SQLClient.SQLConnection(ConnectionString)
dim cmd as new SQLClient.SQLCommand("YourSQLTransactInsertString",conn)
cmd.ExecuteNonQuery()
///
Have a look here for the connectionstring
http://www.connectionstrings.com/
I hope this helps,
Cor
"Scott at Cedar Creek" <ScottatC...@discussions.microsoft.com> schreef
in bericht news:F7A911FF-3EE8-4FB3...@microsoft.com...
The following article might help you
http://cyrilgupta.com/contentprog_ado_net.htm
Regards
Cyril Gupta
You can do anything with a little bit of 'magination.
I have been programming so long, that my brain is now soft-ware.
http://www.cyrilgupta.com/blog
cmd.parameters.addwithvalue("", "hello" )
For date extend:
cmd.parameters.addwithvalue("", d.Tooadate() )
Then the INSERT or SELECT should contain ? for the field values like WHERE
ID = ? and so on.
"Cor Ligthert [MVP]" <notmyfi...@planet.nl> schreef in bericht
news:%23cZq7Rd...@TK2MSFTNGP05.phx.gbl...
In SQLClient this is
cmd.parameters.addwithvalue("@ToInsert", "hello" )
For date extend:
cmd.parameters.addwithvalue("@TheWhere", d.Tooadate() )
Then the INSERT or SELECT should contain @ToInsert for the field values like
WHERE
ID = @TheWhere and so on.
Cor
At some point we will start using sqlserver as well.
Is this syntax compatible with OleDB?
Can test that of course :)
Thanks,
"Cor Ligthert [MVP]" <notmyfi...@planet.nl> schreef in bericht
news:uRa%23yZow...@TK2MSFTNGP06.phx.gbl...