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.
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 fileCREATE TABLE #TEMP (COUNTRYCD CHAR(3), TABLEID CHAR(3), NOOFRECORDS INT)INSERT INTO #TEMPSELECT C_CD,T_ID,COUNT(REC_COUNT) FROM TABLE1INSERT INTO TABLE2SELECT A.CODE,B.TABLEID,GETDATE(),B.NOOFRECORDS FFROM TABLE3 A INNER JOIN #TEMP ON A.CODE = B.COUNTRYCDThis 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 |
 |
|
|
|
|