Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Values
Message
From
11/10/2005 05:21:07
 
 
To
11/10/2005 04:59:57
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01057391
Message ID:
01057885
Views:
17
This message has been marked as the solution to the initial question of the thread.
>Hi Borislav,
>
>I tried to execute the sample that you gave in Query Analyzer and it gave an error message:
>
>Server: Msg 156, Level 15, State 1, Line 1
>Incorrect syntax near the keyword 'DEFAULT'.
>
>any idea?


Mike,
Because you post your question in VFP forum I decide you want the VFP syntax :-)
Here for SQL Server:
ALTER TABLE Customer ADD CONSTRAINT [DF_Customer_Flag] DEFAULT (1) FOR [flag]
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform