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
 Data Types For Coloumn

Author  Topic 

samhrishi
Starting Member

13 Posts

Posted - 2010-11-27 : 02:55:38
Plz Reply I want to create table which contain coloumn name licenceNumber it should hold character as well as integer value so wht data Type should i Used char,int or which one.

Thanks

sam

samhrishi
Starting Member

13 Posts

Posted - 2010-11-27 : 03:03:32
Can i used nText

sam
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-11-27 : 03:23:07
you can use char or varchar based on whether you want variable or fixed length. No need of ntext as long as you're storing only english characters

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

ahmeds08
Aged Yak Warrior

737 Posts

Posted - 2010-11-27 : 04:05:36
you cango with varchar
Go to Top of Page

TechNess
Starting Member

11 Posts

Posted - 2010-11-29 : 02:11:42
I have used varchar for the licenceplate column.

**TechNess**
Go to Top of Page
   

- Advertisement -