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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a default value using T-SQL

Status
Not open for further replies.

kshea

Technical User
May 31, 2002
60
CA
Hi everyone:

I know how to set a default value in table design view. But is it possible to set a default using T-SQL?
Thanks.
 
sql= "insert into mytable (fname,lname,status) values('& request.form("fname") &"','" & request.form("lname") & "',0)"

where status is set to 0 as default

request.form is ASP type VBscript code

hth Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top