Microsoft
Software
Hardware
Network
Question : SSIS/TSQL Three Part Naming for Temp Table
Hi guys -
I have a SSIS package that gathers data from 2 different servers.
In one of my sql tasks I create a temp table (data put together by both server a and server b). I select the connection to be [connection1] (i have 4 in this package). Then I go and drop a data flow task after the execute sql task. Connection is [connection1], sql command text is "SELECT * FROM ##TempTable"
Well I keep getting this error:
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E14 Description: "Invalid object name '##TempTable.".
I'm thinking that it's because it may be creating it on the wrong server - but I'm not entirely sure how to test it.
All connections are set to RetainSameConnection = True
Can I do 3 part naming for a temp table (global temp ##)? Would that fix it?
Thanks!
Answer : SSIS/TSQL Three Part Naming for Temp Table
There are a few different ways. I've always used ADO. See
http://www.codeproject.com
/KB/vbscri
pt/simple_
sp_vb6.asp
x
L
Random Solutions
imac osx 10.5 - Does not boot; cannot find harddrive. Getting a folder icon wid a question mark flashin at startup
GridView control scroll bars are not visible on page reload
How can I convert a custom control that calls User32 and Shell32 to work on Mono?
SBS 2003 / Error: too many hops (delivery attempts: 0)
wordpress causing infinite tabs opening?
Setting up my first database driven web site
How to avoid zero(s) in front of number(s) disappears in array
How do I modify this php script to send a confirmation?
FAX configuration in windows 2003 server with Gmail.
AMD vs Intel? on dell's website - which has greater VM performance?