dbTalk Databases Forums  

Subquery with parameter

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


Discuss Subquery with parameter in the microsoft.public.sqlserver.dts forum.



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

Default Subquery with parameter - 08-04-2004 , 05:03 AM






Hi...
I'm trying to do a Transformation Task, but in my source query I have some
subqueries.
It works fine until I try to set a parameter (?) inside the query. I got the
"Send Error Report" error and the MMC is closed.
Why is it happening? Is it any known bug?
Thanks for helping!
Eduardo



Reply With Quote
  #2  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: Subquery with parameter - 08-05-2004 , 09:05 AM






Transformation Task is not very good with parameters if they are other then
for the where clause for the most outer select statement. What you can do is
pre-configure sql string in ActiveX task, assign it to a global variable,
and then assign that variable back to Transformation Task in Dynamic
Properties task.

Ilya

"Eduardo Greco" <eduardo (AT) persocom (DOT) com.br> wrote

Quote:
Hi...
I'm trying to do a Transformation Task, but in my source query I have some
subqueries.
It works fine until I try to set a parameter (?) inside the query. I got
the
"Send Error Report" error and the MMC is closed.
Why is it happening? Is it any known bug?
Thanks for helping!
Eduardo





Reply With Quote
  #3  
Old   
Darren Green
 
Posts: n/a

Default Re: Subquery with parameter - 08-06-2004 , 02:56 AM



....and an example of this an be found here-

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)


Saying that, the use of parameters no matter how bad should not cause
Enterprise Manager to crash. You normally just get a syntax error.

Try applying SP3 to the client machine, followed by the latest SQL 2000
security fix. The fix patches a problem with the designer introduced by SP3.


--
Darren Green
http://www.sqldts.com

"Ilya Margolin" <ilya_no_spam_ (AT) unapen (DOT) com> wrote

Quote:
Transformation Task is not very good with parameters if they are other
then
for the where clause for the most outer select statement. What you can do
is
pre-configure sql string in ActiveX task, assign it to a global variable,
and then assign that variable back to Transformation Task in Dynamic
Properties task.

Ilya

"Eduardo Greco" <eduardo (AT) persocom (DOT) com.br> wrote in message
news:e75ihsieEHA.692 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hi...
I'm trying to do a Transformation Task, but in my source query I have
some
subqueries.
It works fine until I try to set a parameter (?) inside the query. I got
the
"Send Error Report" error and the MMC is closed.
Why is it happening? Is it any known bug?
Thanks for helping!
Eduardo







Reply With Quote
  #4  
Old   
mtl_jf
 
Posts: n/a

Default Re: Subquery with parameter - 08-09-2004 , 09:01 AM



Don't use subqueries take to much process, try to use join ...

"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
...and an example of this an be found here-

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)


Saying that, the use of parameters no matter how bad should not cause
Enterprise Manager to crash. You normally just get a syntax error.

Try applying SP3 to the client machine, followed by the latest SQL 2000
security fix. The fix patches a problem with the designer introduced by SP3.


--
Darren Green
http://www.sqldts.com

"Ilya Margolin" <ilya_no_spam_ (AT) unapen (DOT) com> wrote in message
news:OcP$zTveEHA.3348 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Transformation Task is not very good with parameters if they are other
then
for the where clause for the most outer select statement. What you can do
is
pre-configure sql string in ActiveX task, assign it to a global variable,
and then assign that variable back to Transformation Task in Dynamic
Properties task.

Ilya

"Eduardo Greco" <eduardo (AT) persocom (DOT) com.br> wrote in message
news:e75ihsieEHA.692 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hi...
I'm trying to do a Transformation Task, but in my source query I have
some
subqueries.
It works fine until I try to set a parameter (?) inside the query. I got
the
"Send Error Report" error and the MMC is closed.
Why is it happening? Is it any known bug?
Thanks for helping!
Eduardo





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.