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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 query problem

Author  Topic 

rajasekhar857
Constraint Violating Yak Guru

396 Posts

Posted - 2009-04-15 : 01:23:47
HI,
when i have given my query like this

ALTER TABLE RxFavorites ADD FREQUENCY VARCHAR(10)
GO
UPDATE RXFAVORITES SET FREQUENCY = 'D'
G0

with update i am getting exception like

Msg 102, Level 15, State 1, Line 2
Incorrect syntax near 'G0'.
why?

nishita_s
Yak Posting Veteran

61 Posts

Posted - 2009-04-15 : 01:36:39
I think last GO is not GO its Gzero:):)
Isnt it?
Go to Top of Page

rajasekhar857
Constraint Violating Yak Guru

396 Posts

Posted - 2009-04-15 : 01:53:37
YES YOU ARE I FEEL ASHAMED OF DOING SO
Go to Top of Page

mithun.gite
Starting Member

3 Posts

Posted - 2009-04-15 : 01:54:20
YEAH ITS G0 SO BETTER WRITE GO .....

Thanks & Regards,
Mithun Gite
Go to Top of Page

nishita_s
Yak Posting Veteran

61 Posts

Posted - 2009-04-15 : 02:45:19
Dont feel ashamed.it happens.
Go to Top of Page
   

- Advertisement -