adspace


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

How to connect php with different port numbers?

1197


What is standby servers? Explain types of standby servers.

1089


Is it possible to have clustered index on separate drive from original table location?

1049


What is a coalesce function?

1292


What are the properties of the transaction?

1084


List out the different types of locks available in sql server?

1058


How can I check that whether automatic statistic update is enabled or not?

1120


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1223


Disadvantages of the indexes?

1232


explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

1139


How to enter binary string literals in ms sql server?

1256


Why and when do stored procedure recompile?

1077


Explain “row_number()” in sql server with an example?

1086


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

1052


Can we shrink data file in sql server?

1135