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.
| Author |
Topic |
|
itchocks
Starting Member
44 Posts |
Posted - 2005-10-25 : 05:24:27
|
Hi, I have the TAMCreate.sql file which contains the script to create all tables in the Database TAMaintenance. Its created and used in the SqlServer 2000. But i have only SqlServer 7. From the script i copy and paste each table and created upto 7 tables without any problem, when i create the 8th table i get the following error the code for the tableCREATE TABLE AA_Branch_Master(Branch_Code varchar(15) CONSTRAINT PK_AA_Branch_Master1 PRIMARY KEY,Branch_Name varchar(50) NOT NULL,Branch_Opened datetime NOT NULL,Branch_Location varchar(50) NOT NULL,Branch_Province varchar(25) NOT NULL,Branch_Incharge varchar(50) NOT NULL,Branch_Remark varchar(150),Branch_Status BIT(1))goError:Server: Msg 2716, Level 16, State 1, Line 1Column or parameter #8: Cannot specify a column width on data type bit.In the same way i have get the error or another table, rest of the tables are created successfully.the code for the tableCREATE TABLE AA_Supplier_Master(Supp_Code varchar(15) CONSTRAINT PK_AA_Supplier_Master1 PRIMARY KEY,Supp_Name varchar(100) NOT NULL,Supp_Address varchar(150) NOT NULL,Supp_Contact_Person varchar(50) NOT NULL,Supp_Paymode varchar(25) NOT NULL,Supp_Tel1 varchar(25),Supp_Tel2 varchar(25),Supp_Fax varchar(25),Supp_Postbox varchar(15),Supp_Postal_Code varchar(15),Supp_City varchar(50) NOT NULL,Supp_Country varchar(50) NOT NULL,Supp_Status BIT(1))goError:Server: Msg 2716, Level 16, State 1, Line 1Column or parameter #13: Cannot specify a column width on data type bit.Thankyou,Chock. Chock |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-10-25 : 05:32:01
|
| The error message is obviousYou should not specify column width 1 for bit data typeRun thisCREATE TABLE AA_Branch_Master(Branch_Code varchar(15) CONSTRAINT PK_AA_Branch_Master1 PRIMARY KEY,Branch_Name varchar(50) NOT NULL,Branch_Opened datetime NOT NULL,Branch_Location varchar(50) NOT NULL,Branch_Province varchar(25) NOT NULL,Branch_Incharge varchar(50) NOT NULL,Branch_Remark varchar(150),Branch_Status BIT)goMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|
|
|