How would I pass an array of values into a table? The array comes from a ASP page.
I know how to select multiple Items from one table and insert them into another, but I don't know how to do this with straight values. Is this a programming thing, or can TSQL do this?
The only thing I can think of is to create a temp table, individually insert each item of the array into the temp table and then create a batch insert statement to insert the rows from the temp table to the actaul table. But this seems like excess work.
Any ideas, or can it only be done individually?
Jason Meckley
Database Analyst
WITF
I know how to select multiple Items from one table and insert them into another, but I don't know how to do this with straight values. Is this a programming thing, or can TSQL do this?
The only thing I can think of is to create a temp table, individually insert each item of the array into the temp table and then create a batch insert statement to insert the rows from the temp table to the actaul table. But this seems like excess work.
Any ideas, or can it only be done individually?
Jason Meckley
Database Analyst
WITF