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
 General SQL Server Forums
 New to SQL Server Programming
 I need the script for creating table below

Author  Topic 

Rajat16
Starting Member

2 Posts

Posted - 2010-07-30 : 07:32:53
table name with sms

first field will be SMS_id (auto increment, not null, integer)
second field will be sms_number ( not null, varchar(13))
third field will be sms_text (not null, varchar (200))
fourth field will be creation_date (not null, system date)
fifth field will be status( varchar)

guys i need it urgently, I stuck in some other work

thanks

chris_cs
Posting Yak Master

223 Posts

Posted - 2010-07-30 : 07:36:36
You should look up the CREATE TABLE command. This will take you about 2 minutes tops.

CREATE TABLE tableName(
field1...,
field2 etc
)
Go to Top of Page

Rajat16
Starting Member

2 Posts

Posted - 2010-07-30 : 07:41:58
cris I am getting stucked for fourth column

kindly help
Go to Top of Page

kashyap_sql
Posting Yak Master

174 Posts

Posted - 2010-07-30 : 08:07:07
do you want just date or time to if both then just go for this
 creation_date datetime default getdate() 

may be preferable

With Regards
Kashyap M
Go to Top of Page
   

- Advertisement -