dbTalk Databases Forums  

create temp table in DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss create temp table in DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
culam
 
Posts: n/a

Default create temp table in DTS - 02-09-2004 , 12:26 PM






When I tried to create temp table with the script below in
the package, I got an error " invalid object name: #Heloc
Rates."
I have right to create temp table. Please tell what I did
wrong. I am new to DTS.

Your help is greatly appreciated,
Culam


CREATE TABLE [#Heloc Rates](code_ VARCHAR(15), [desc]
VARCHAR(50))
INSERT INTO [#Heloc Rates] VALUES ('H3', 'Prime Rate')
INSERT INTO [#Heloc Rates] VALUES ('H4', 'Prime Rate')
INSERT INTO [#Heloc Rates] VALUES ('Y1', '2 Yr Treasury')
INSERT INTO [#Heloc Rates] VALUES ('Y2', '2 Yr Treasury')

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: create temp table in DTS - 02-09-2004 , 01:54 PM






Is that when you parse the statement ?
Have you tried to run it? Works for me.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"culam" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
When I tried to create temp table with the script below in
the package, I got an error " invalid object name: #Heloc
Rates."
I have right to create temp table. Please tell what I did
wrong. I am new to DTS.

Your help is greatly appreciated,
Culam


CREATE TABLE [#Heloc Rates](code_ VARCHAR(15), [desc]
VARCHAR(50))
INSERT INTO [#Heloc Rates] VALUES ('H3', 'Prime Rate')
INSERT INTO [#Heloc Rates] VALUES ('H4', 'Prime Rate')
INSERT INTO [#Heloc Rates] VALUES ('Y1', '2 Yr Treasury')
INSERT INTO [#Heloc Rates] VALUES ('Y2', '2 Yr Treasury')



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.