Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server to Access SQL Conversion

Status
Not open for further replies.

j252ewv

Programmer
Jul 2, 2008
43
GB
CAn some one tell me how to convert this SQL Server sql

Alter Table table1 ADD LinkDate DateTime Default getdate()

into the equivilent Access sql

Alter Table table1 ADD column LinkDate DateTime ??????
 
This kind of DDL can't be performed in the GUI (Access SQL), but only on an ADO connection (Jet SQL) (or I think, if you somewhere set the ANSI SQL mode to 92, you can probably do it in the GUI, too).

Say you have an ADO connection to the db you're working on, called cn

[tt]cn.execute "Alter Table table1 ADD column LinkDate DateTime Default Now()"[/tt]

More info
Roy-Vidar
 
Thanks took a little modificatiuon but now working fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top