Posted by: U?Me June 6, 2008
Login in to Rate this Post:
0
?
Ok,
It works now!! YAY
alter function NextCustomerNumber (@id int)
returns char(5)
as
begin
return 'C' + right('0000' + convert(varchar(10), @id), 4)
end
Then,
select
...
dbo.NextCustomerNumber(dbID) as CustomerID,
...
Thanks to all of you!! YOU GUYS ROCK
It works now!! YAY
alter function NextCustomerNumber (@id int)
returns char(5)
as
begin
return 'C' + right('0000' + convert(varchar(10), @id), 4)
end
Then,
select
...
dbo.NextCustomerNumber(dbID) as CustomerID,
...
Thanks to all of you!! YOU GUYS ROCK