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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenate IDENTITY (int, 1, 1) in SELECT ... INTO

Status
Not open for further replies.

snyderj

MIS
Mar 2, 2001
242
US
I have a statement such as SELECT IDENTITY (int, 1, 1) AS RowID INTO ... that works just fine. Now I want to prepend a literal to it.

I thought that SELECT 'XYZ' + IDENTITY (int, 1, 1) AS RowID INTO ... would work but I get a syntax error. I tried using CAST and CONVERT around the IDENTITY statement but that too fails.

Ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top