Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

Flowing Fount of Yak Knowledge

1433 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?

Flowing Fount of Yak Knowledge

United Kingdom
3385 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

Flowing Fount of Yak Knowledge

1433 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  
 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.02 seconds. Powered By: Snitz Forums 2000