Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Script Library
 ASP UPDATE SET FIELD = NULL

Author  Topic 

dirko
Starting Member

2 Posts

Posted - 2003-09-04 : 20:31:30
Using an SQL server and writing ASP code trying to set a numeric field to null.
ie ssql = "UPDATE users SET customer_id = null where name = 'Joe'"

Keeps on generating a syntax error

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2003-09-04 : 20:45:10
try

UPDATE [users] SET customer_id = null where [name] = 'Joe'

- Jeff
Go to Top of Page

dirko
Starting Member

2 Posts

Posted - 2003-09-04 : 21:13:11
Sorry, I am the proverbial bone-head/clown.
"look before you leap", "Can't see the forest because of the trees" comes to mind.
My example was OK because I did not want to bore you with the details of my long script.
As I was applying your suggestion I realised I had an unfinished set above the one I was attempting to set to null.
My apologies for wasting your time
Go to Top of Page
   

- Advertisement -