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

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 execute set of queres in ssis

Author  Topic 

vasu4us
Posting Yak Master

102 Posts

Posted - 2007-06-20 : 19:58:07
tell me if iam doing it wrong. this is what i have in a txt file

CREATE TABLE #TEMP (COUNTRYCD CHAR(3), TABLEID CHAR(3), NOOFRECORDS INT)
INSERT INTO #TEMP
SELECT C_CD,T_ID,COUNT(REC_COUNT) FROM TABLE1

INSERT INTO TABLE2
SELECT A.CODE,B.TABLEID,GETDATE(),B.NOOFRECORDS F
FROM TABLE3 A INNER JOIN #TEMP ON A.CODE = B.COUNTRYCD

This is working in query window but not when i copy it into a file and call it from an execute sql task.

rakesh830
Starting Member

2 Posts

Posted - 2007-06-21 : 05:38:00
try to use 'GO' after statements
Go to Top of Page
   

- Advertisement -