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

Answer Posted / mohammad saddam

CREATE TABLE NumAsVar (Num nvarchar(50))
INSERT INTO NumAsVar VALUES ('001')
INSERT INTO NumAsVar VALUES ('002')
INSERT INTO NumAsVar VALUES ('021')

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the properties of primary key?

715


What is the temp table?

701


Explain different types of locks in sql server.

775


How to rename an existing column with the "sp_rename" stored procedure in ms sql server?

780


Is sql server difficult to learn?

689






Can group functions be used in the order by clause in ms sql server?

759


Define master database?

736


What is report server project?

122


What is the distinction amongst delete and truncate?

740


What are types of subqueries?

749


What is the order in which the sql query is executed?

701


What is a unique index?

674


What is meant by indexing?

665


List the types of recovery model available in sql server?

669


Can you get second highest salary from the table?

724