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 2000 Forums
 SQL Server Development (2000)
 Query

Author  Topic 

believe
Starting Member

3 Posts

Posted - 2011-11-16 : 03:56:33
I`ve got error Server: Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword OR

my writing in query - alter table dbo.memb_info add purse nvarchar (50) not null default 1 OR PRINT "Van`t add Purse" column<BR> ;

What i shold do?

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-11-16 : 04:38:35
What do you want to do with default definition? You can't use OR option there

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

believe
Starting Member

3 Posts

Posted - 2011-11-16 : 04:44:58
quote:
Originally posted by madhivanan

What do you want to do with default definition? You can't use OR option there

Madhivanan

Failing to plan is Planning to fail


I needed to manualy set website skript in mssql query analayzer because the install won`t work propriet, so what i need to use ther?
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-11-16 : 04:55:11
Do you want to update the column with that specific value? Use UPDATE statement

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-16 : 05:02:50
sorry your statement doesnt make sense. You want it to take value as 1 and print message also?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

believe
Starting Member

3 Posts

Posted - 2011-11-16 : 05:12:44
quote:
Originally posted by visakh16

sorry your statement doesnt make sense. You want it to take value as 1 and print message also?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/




I finished it, but the problem wherent in steatment i needed some extra tables where it go`s to. Thx you anyway..
Go to Top of Page
   

- Advertisement -