SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 temp table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

arkiboys
Flowing Fount of Yak Knowledge

1398 Posts

Posted - 07/07/2011 :  04:09:32  Show Profile  Reply with Quote
in control flow, using execute sql task, I have created a global table with delay validation set to thrue and connection set to retainsameconnection.
In the oledbsource inside dataflow, I would like to access this global table but when I choose the sqlcommand inside the oledbsource and place the query such as select * from ##tbl1 then it gives an error: invalid object name ##tbl1
Do you know the issue here please?
Thanks

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3355 Posts

Posted - 07/07/2011 :  04:40:08  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
Think it's because it needs to get a design time structure.
Try creating the table while you develop the package but delete it to run.
Might be easier to cretae the table then call another package to access it.

Any reason why you can't have a permanent table which you truncate?

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

arkiboys
Flowing Fount of Yak Knowledge

1398 Posts

Posted - 07/07/2011 :  05:06:55  Show Profile  Reply with Quote
solved. thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000