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!

T-SQL and Arrays

Status
Not open for further replies.

RobS23

Programmer
Joined
Jun 4, 2001
Messages
161
Location
GB
How do i go about creating Arrays in T-SQL?

I'm converting a VB routine and there really isn't any way of avoiding including a small array in my code.

Cheers
 
A temp table would probably be the easiest solution.
 
u can use cursors (similar to array).

 
A cursor is really more of a record set than an array. You can use temp tables or in SQL 2000 Table Variables. You may want to consider using delimited strings to simulate arrays. See the following links about parsing strings.


You may need to download the following scripts before viewing them.
Terry L. Broadbent
Programming and Computing Resources
 
Thanks all. I thought I'd end up using a Temp table - but I'll look into Cursors and delimited Strings too.

Cheers Again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top