India Forums .Info

Discuss Cars, Bikes, Jobs, Romance, Marriage, Jobs, Real Estate, Programming and more..
It is currently Thu Jan 08, 2009 10:36 pm

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: select from a file and update in SQL server 2000
PostPosted: Fri Apr 25, 2008 2:09 pm 
Offline
Newbie

Joined: Wed Apr 16, 2008 8:55 pm
Posts: 2
DECLARE @newname varchar(50)
SELECT ID
FROM NAMES
WHERE ID = 5;
If @newname IS NOT NULL
SET name=@newname
END IF;
UPDATE NAMES

I'm getting this error - can anyone help please !!!

Server: Msg 170, Level 15, State 1, Line 6
Line 6: Incorrect syntax near '='


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO