Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how we can store the value like that 001,003,023 etc in sql
server 2005

Answer Posted / gopi muluka

Using Character Datatypes
See this
CREATE TABLE NumAsVar (Num VARCHAR(50))
INSERT INTO NumAsVar VALUES ('001')
INSERT INTO NumAsVar VALUES ('002')
INSERT INTO NumAsVar VALUES ('021')

SELECT * FROM NumAsVar

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to control the amount of free space in your index pages? : Sql server database administration

1085


What is cursors? And what are the different types of cursor?

1194


What are the different types of subquery?

1201


What is the native system stored procedure to execute a command against all databases?

1086


What are the new scripting capabilities of ssms? : sql server management studio

1119


If a table does not have a unique index, can a cursor be opened on it?

959


why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration

1134


Explain ranking functions?

1095


How to configure and test odbc dsn settings?

1224


What does executeupdate return?

1033


What is policy management?

1047


what is bit datatype? : Sql server database administration

963


Is it important for a database administrator to understand the operating system and file access?

1041


How to use old values to define new values in update statements in ms sql server?

1330


What is difference between clustered index and non clustered index?

1123