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

Please differentiate between a local and a global temporary table?

560


explain how to create a new schema in a database? : Sql server database administration

576


What is difference between inner join and join?

536


What is primary key, unique key, and foreign key?

534


What are extended events in sql server?

500






Write a SQL queries on Self Join and Inner Join.

615


What are magic tables in sql server?

619


What is outer join in sql server joins?

591


What is sqlservr.exe - process - sql server (sqlex?press)?

594


When a primary key constraint is included in a table, what other constraints does this imply?

593


What is 2nf example?

543


What are 3 ways to get a count of the number of records in a table?

605


What is normalization of database? What are its benefits?

513


What Is Rdbms?

669


What is a unique key constraint?

525