December 8, 2009 at 2:52 pm
You do know that query analyser has the capability to do a syntax check for you, without running the code?
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '('.
Msg 102, Level 15, State 1, Line 5
Incorrect syntax near 'MODIFY'.
You're not going to learn by trial and error. Look at the books online entry. There's even an example right there in the page that I gave you the link to that alters a table and adds a column with a default value!
Example F.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 8, 2009 at 2:55 pm
sure man this time i will come with correct code
December 8, 2009 at 3:02 pm
One thing, looking at the other thread you posted, is this a SQL Server 2000 database server? Or are you working with a different database engine, like Oracle?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 8, 2009 at 3:21 pm
GilaMonster (12/8/2009)
One thing, looking at the other thread you posted, is this a SQL Server 2000 database server? Or are you working with a different database engine, like Oracle?
Gail, looks like you scared the OP away. 😉
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
Viewing 4 posts - 16 through 19 (of 19 total)
You must be logged in to reply to this topic. Login to reply