Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sqldba2k6
Posting Yak Master
176 Posts |
Posted - 2007-07-11 : 11:20:47
|
| can i store a value with 01 for bigint type.when i m inserting it is truncating the leading zero'slike storing 1.With varch we can store 01 but is there a way where we can store the value with 01 for bigint.TableTID bigintTID--12Required outputTableTID bigintTID---0102 |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
Posted - 2007-07-11 : 11:24:34
|
| You are confusing how they are stored with how they are displayed.Formatting with the leading zeros should normally be done in your front-end application.CODO ERGO SUM |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-07-12 : 00:48:16
|
| Where do you want to show data?If you use VB, then make use of Format functionFormat(Rs("col"),"00")will do what you wantMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|