Because I'm using dynamic variables to read linkedservers (excel files) I need to put my SQL statements into an executable string.
I've simplified my statements and included a SQL table, but get the same error on my @records Can anyone see what I'm doing wrong?
-- Returns this error: Conversion failed when converting the varchar value 'SELECT ' to data type int.
asked Jul 13, 2010 at 08:05 AM in Default
Tim 3 1