I have data in the following format:
-1,-1,-1,-1,701,-1,-1,-1,-1,-1,304,390,403,435,438,439,442,455
I need to insert it into the temp table as follows:
CREATE TABLE
So I can use it in comparison with the data in another table.
The data above are separate rows in the "Node" column.
Is there an easy way to insert this data into a single command?
In addition, the data will arrive, as you see, as a string ... so I need to be able to simply concatenate it into an SQL query string. I can obviously change it if necessary.
sql tsql sql-server-2005
Adam haile
source share