Access and SQL server update

B

Bonzol

Hey there,, I know when updating,, Access can be differnt from SQL
server

this works in access from a vb.net 1.1 prog


SQL = "Update Clients SET UnameID= '" + updatevalue + "' WHERE ID = " +

checkValue + ""


Can anyone just quickly tell me what i have to change for it to work in

SQL server 2005?


Thanx..
 
C

Cor Ligthert [MVP]

Bonzol,

As this is VB it would be nicer to use the concationation character &
instead of the + character, with option strict of the latter can give very
strange results.

Cor
 
R

Rad [Visual C# MVP]

It will work as is, but you are exposing yourself to SQL injection
attacks as well as errors when someone passes a value like o'malley.

Try and use parameterized SQL as much as possible
 
A

aaron.kempf

I call bullshit on your shit

just because you're a retard C# dude it doesn't mean that we all want
to add unnnecessary complexity to all of our apps

go and **** yourself; C# fag

-Aaron
 
A

aaron.kempf

and for the record.. THERE IS NO RAD IN C#

lick a monkey dick bitch

You'll be obsolete also when Microsoft renames VB to VB#


-Aaron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top