Viewing 8 posts - 1 through 8 (of 8 total)
Eugene Elutin (3/2/2012)
DECLARE @sql VARCHAR(8000)
DECLARE @IdNbr VARCHAR(50)
SET @IdNbr...
March 2, 2012 at 8:58 am
thanks everyone for the responses and help!
I ended up going the route of a permanent table (instead of the global temp table), and adding columns for the date,...
March 2, 2012 at 8:25 am
bitbucket-25253 (3/2/2012)
--Creating the command string
DECLARE @IdNbr VARCHAR(50)
SET @IdNbr = '312012145014'
set...
March 2, 2012 at 8:20 am
Eugene Elutin (3/2/2012)
Use permanent table instead of ##table, tag each row with UserId and, if you have any, session token.
Still have some fine tuning to the process to do -...
March 2, 2012 at 7:45 am
Eugene Elutin (3/2/2012)
Use permanent table instead of ##table, tag each row with UserId and, if you have any, session token.
Interesting... thanks for the suggestion! will test with this,...
March 2, 2012 at 6:40 am
anthony.green (3/2/2012)
do you have to use a ## table, could you not just use a # table?
So far, I've not been able to get that to work. Heres the...
March 2, 2012 at 6:26 am
bitbucket-25253 (3/1/2012)
Openrowset() (or any ad-hoc function) does not accept variable parameter.
They only take literal string.
Afterall, these are pass-through...
March 2, 2012 at 6:14 am
Dave Brooking (3/1/2012)
CoryI think this may have been the subject of a QOTD question (http://www.sqlservercentral.com/questions/T-SQL/88163/) from a couple of weeks ago.
What happens if you change
exec @sql
to
exec (@sql)
Dave
Thanks...
March 2, 2012 at 6:05 am
Viewing 8 posts - 1 through 8 (of 8 total)