Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are wait types?

1019


What are Row versions of DataRow?

974


How to throw custom exception in Stored Procedure?

992


What is the difference between clustered index and primary key?

869


Is the log file is a part of file group?

975


Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture

989


How you provide security to cube? : sql server analysis services, ssas

922


What languages bi uses to achieve the goal?

947


Distinguish between nested subquery and correlated subquery?

974


New concepts of sql server 2005 use in your project.

2303


there is a trigger defined for insert operations on a table, in an oltp system. The trigger is written to instantiate a com object and pass the newly inserted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better? : Sql server database administration

856


How to generate create function script on an existing function?

1044


How real and float literal values are rounded?

1095


What is normalization process?

1107


How to configure and test odbc dsn settings?

1097