SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 want "01" insted of "1" in column of type bigint
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ravigupta
Starting Member

2 Posts

Posted - 08/27/2010 :  00:45:41  Show Profile  Reply with Quote
want "01" insted of "1" in column of type bigint

pk_bohra
Flowing Fount of Yak Knowledge

India
1182 Posts

Posted - 08/27/2010 :  00:57:40  Show Profile  Reply with Quote
Then u need to convert it to varchar or char type and append "0" on left side.
Go to Top of Page

ravigupta
Starting Member

2 Posts

Posted - 08/27/2010 :  01:04:31  Show Profile  Reply with Quote
quote:
Originally posted by pk_bohra

Then u need to convert it to varchar or char type.


is it not possible by bigint datatype
Go to Top of Page

GilaMonster
Flowing Fount of Yak Knowledge

South Africa
4507 Posts

Posted - 08/27/2010 :  02:53:31  Show Profile  Visit GilaMonster's Homepage  Reply with Quote
That's a formatting issue, not a storage issue. Do it in the query that returns the data or in the front end app.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

landuan
Starting Member

Albania
3 Posts

Posted - 08/30/2010 :  05:43:08  Show Profile  Visit landuan's Homepage  Reply with Quote
<spam removed>
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000