April 25, 2008 at 1:39 am
Hi all,
I am pretty new to sql server and still learning lot of new things. Recently I am facing an strange issue. In DTS transform data tasks I have seen persons using temp tables as destination. When I am trying to use the global temp tables in DTS destination, I am not able to see temp table present in database in destination tables under drop down box. Could anyone letme know how to make the temp table appear in drop down? Also is it possible to use temp tables as source in DTS transform tasks??......
April 25, 2008 at 3:01 am
You can use Global Temporary tables as a transformation destination. There is an advisory article on msdn about the considerations of using temporary tables in DTS:
http://msdn2.microsoft.com/en-us/library/aa215269(SQL.80).aspx
HTH
April 25, 2008 at 7:16 am
Instead of using # temp tables or ## temp tables, why not create a table in tempdb, insert the data, process from it and then drop the table at the end of the DTS package?
Jez
May 5, 2008 at 2:36 am
Well you said it correect for using tempdb database but I am not having access to create table even in tempdb Database (DBA access issue 🙁 )so only I was thinking of using # temp table. Also I have seen some Approaches to populate temp tables which work very efficiently for my work so only wanted to use that. Could you tell me how to use temp table as DTS destination
May 15, 2008 at 3:10 am
No replies 🙁
Is there anyone aware of the solution to the problem???
August 13, 2008 at 3:46 pm
Temp tables are not visible to the user but to sistem only (as far as i know). Therefore you will never see the temp table in a drop down list or in enterprise manager or the like. You really have two options: 1. do as you have already been suggested 2: create a table and drop it as soon as you are done with it.
The temp table you say you have seen others use is most probably not a #temp table (virtual) but a permanent table (on disc) that is then dropped. Some people refer to temp tables as #temp tables because they erase them immediately but, technically speaking, they are permanent (on disc) tables that do not permanently (time wise) reside on the disc. Either way, they use the term loosely.
One more thing, #temp tables can not be used across SQL tasks in a dts. Again, you currently have two options that you can use.
August 14, 2008 at 7:01 am
If you want to use temp table try using ## instead of #.
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
October 10, 2008 at 1:10 am
Thanks to all for helping. I am done with the issue. 🙂
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply