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
How to connect sql server management studio express to sql server 2005 express?
Tell me what is difference between clustered and non clustered index?
Can we delete data from a view?
Can an automatic recovery be initiated by a user?
Can you force a query to use a specific index?
What is difference between rownum and row_number?
How to get a list of columns using the "sys.columns" view in ms sql server?
Can you tell me some of the common replication dmv's and their use? : sql server replication
What is sql view?
How do I run sql server 2014?
What is collation sensitivity?
What are the different SQL Server Versions you have worked on?
What is the difference between osql and query analyzer?
what is dbcc? : Sql server database administration
What is the difference between dbcc indexdefrag and dbcc reindex?