srinika
September 16th, 2005, 04:12 PM
Hi All,
I'm using MS SQL Server 2000
I need to get the results of a select statement after formatting it.
eg :
if the results of the following query is '1234' I need to see the results as AB00001234
if the results of the following query is '567' I need to see the results as AB00000567
Query : Select StundentID from Student
In other words, I need to know whether there is something like Format function in VB, so that the hypothetical Query would be
Select 'AB' + Format(StundentID, "0000000#") from Student
Thanks in advance
Srinika
I'm using MS SQL Server 2000
I need to get the results of a select statement after formatting it.
eg :
if the results of the following query is '1234' I need to see the results as AB00001234
if the results of the following query is '567' I need to see the results as AB00000567
Query : Select StundentID from Student
In other words, I need to know whether there is something like Format function in VB, so that the hypothetical Query would be
Select 'AB' + Format(StundentID, "0000000#") from Student
Thanks in advance
Srinika