Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alphanumeric values 2

Status
Not open for further replies.

nice95gle

Programmer
Nov 25, 2003
359
US
Is there a way in SQL to increase an alphanumeric value.

e.g. If a field has a value of A change it to B or B to C etc...
 
Also one more question. We don't support xp_cmdshell at work. Is there another way to run win commands from SQL?
 
Ascii convert letters to their ascii equivalent (which is an integer). You can add 1 to this integer, and then convert it ascii number back to a character.

Select Char(1 + Ascii('A'))



-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top