Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What in TSQL is comparable to padl() function in VFP?
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00518637
Message ID:
00518645
Views:
10
Hi Terry,

I asked a similar question about a week ago (g) only I wanted the PADR() function.

According to Mike Levy, there's no intrinsic function in TSQL that matches the padding functions in VFP. His suggestion was to write UDFs for them (and a good suggestion -- I'm doing those -- thanx Mike).

Bob Archer suggested to use the CAST function to accomplish this (and it worked for the particular case I asked about -- thanx Bob).

Thread # 514206, message # 514255 if you'd like further info.

HTH.

>I have a varchar field that needs padding to allow proper ordering and checking for duplicates.
>
>Is there a command to pad zeroes onto a string?
>
>TIA
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Reply
Map
View

Click here to load this message in the networking platform