dbTalk Databases Forums  

why do i get rowset from execute sql task only when there is no where clause, when both with/out clausegives exact same result

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


Discuss why do i get rowset from execute sql task only when there is no where clause, when both with/out clausegives exact same result in the microsoft.public.sqlserver.dts forum.



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

Default why do i get rowset from execute sql task only when there is no where clause, when both with/out clausegives exact same result - 07-20-2006 , 11:02 AM







have execute sqltask that quieres table and gets name of DTS, outputs to
parameter as rowset, then in activex script i go thru it to process.

sql task has output pararmeter rowset of gvDTSPackagesToRun

query:
select dts_package_name from Rerun_DTS_Package

result
----
XXX

get a rowset via
dim RS
set RS = CreateObject("ADODB.Recordset")
set RS = DTSGlobalVariables("gvDTSPackagesToRun").Value

however if i change query to

select dts_package_name from Rerun_DTS_Package
where Date_of_request > (SELECT LastStartTime FROM
dbo.NBT_LogBatch WHERE (ProcessName = 'DTS: NBT_OnDemand_ReRun_DTS') )

result
---
XXX

but rowset in activex script is empty


both queires give exact same result yet 2nd gives no output rowset

also tried
ISNULL(dts_package_name, 'ZZZZZ' ) dts_package_name
and get same results

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: why do i get rowset from execute sql task only when there is no where clause, when both with/out clausegives exact same result - 07-20-2006 , 02:26 PM






In article <44bfa8b4$0$446$bb4e3ad8 (AT) newscene (DOT) com>, mistonl (AT) mail (DOT) com (Mistton) wrote:
Quote:
have execute sqltask that quieres table and gets name of DTS, outputs to
parameter as rowset, then in activex script i go thru it to process.

sql task has output pararmeter rowset of gvDTSPackagesToRun

query:
select dts_package_name from Rerun_DTS_Package

doscoverd error of my ways. i save the laststarttime as a getdate(). when it
is compared to the date_request it will never match since getdate() is stored
as a binary not as a datetime. once i do a conversion to datetime then it
works


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.