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

What is the data tier application?

153


How to list all field names in the result set using mssql_field_name()?

614


Explain filestream storage of sql server 2008?

598


Explain following error properties?

636


what protocol both networks use? : Sql server database administration

629






What is data source object?

646


What are a scheduled jobs?

625


If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?

757


What are orphan records?

622


Can primary key be null?

602


What are the advantages of user defined function?

558


How to link tables in sql server?

566


what is a traditional network library for sql servers? : Sql server database administration

549


What is a file group?

710


How to populate a table in sql server?

592