Groups | Blog | Home
all groups > vb.net > november 2006 >

vb.net : Access and SQL server update


Bonzol
11/30/2006 8:24:42 PM
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..
Cor Ligthert [MVP]
12/1/2006 5:43:31 AM
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

"Bonzol" <Bonzol@hotmail.com> schreef in bericht
news:1164947082.853450.293220@79g2000cws.googlegroups.com...
[quoted text, click to view]

aaron.kempf NO[at]SPAM gmail.com
12/1/2006 4:16:04 PM
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 fuck yourself; C# fag

-Aaron




[quoted text, click to view]
aaron.kempf NO[at]SPAM gmail.com
12/1/2006 4:16:52 PM
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


[quoted text, click to view]
Stephany Young
12/1/2006 5:31:59 PM
Nothing, but you don't need the + "" at the end for either.


[quoted text, click to view]

Rad [Visual C# MVP]
12/1/2006 10:55:08 PM
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

[quoted text, click to view]
--

Bits.Bytes.
AddThis Social Bookmark Button