dbTalk Databases Forums  

SQLDTS.com Question

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


Discuss SQLDTS.com Question in the microsoft.public.sqlserver.dts forum.



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

Default SQLDTS.com Question - 07-16-2004 , 09:17 AM






This link http://www.sqldts.com/?234 references a method of tricking DTS
into accepting both an input and output parameter using this code:

SELECT id AS OutputTest FROM sysobjects where id = ?

That line of code only works for 1 input and 1 output parameter. Anyone know
a way to increase the number of input and output parameters that can be
passed in and out? Thanks very much.



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

Default Re: SQLDTS.com Question - 07-16-2004 , 10:51 AM






In article <2lq6dtFfgnqcU1 (AT) uni-berlin (DOT) de>, Ghetty wrote:
Quote:
This link http://www.sqldts.com/?234 references a method of tricking DTS
into accepting both an input and output parameter using this code:

SELECT id AS OutputTest FROM sysobjects where id = ?

That line of code only works for 1 input and 1 output parameter. Anyone know
a way to increase the number of input and output parameters that can be
passed in and out? Thanks very much.

I don't know that we would call it a trick but have you should be able to
carry on the method to include numerous params

SELECT ...... FROM TABLE WHERE col1 = ? AND col2 = ?




Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
www.konesans.com - for all your consultancy needs





Reply With Quote
  #3  
Old   
Ghetty
 
Posts: n/a

Default Re: SQLDTS.com Question - 07-16-2004 , 02:13 PM



Quote:
I don't know that we would call it a trick but have you should be able to
carry on the method to include numerous params

SELECT ...... FROM TABLE WHERE col1 = ? AND col2 = ?

Allan,

Maybe I'm being dense, but I don't understand...
I'm not referring to passing multiple input parameters and no output
parameters or vice versa. I'm referring to passing in multiple input
parameters AND passing out multiple output parameters within the same
Execute SQL Task. Thanks!




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

Default Re: SQLDTS.com Question - 07-16-2004 , 05:06 PM



In article <2lqnnpFdnaddU1 (AT) uni-berlin (DOT) de>, Ghetty wrote:
Quote:
I don't know that we would call it a trick but have you should be able to
carry on the method to include numerous params

SELECT ...... FROM TABLE WHERE col1 = ? AND col2 = ?

Allan,

Maybe I'm being dense, but I don't understand...
I'm not referring to passing multiple input parameters and no output
parameters or vice versa. I'm referring to passing in multiple input
parameters AND passing out multiple output parameters within the same
Execute SQL Task. Thanks!

Have you tried

So say I want to do this

SELECT au_id, au_lname from Authors where au_fname = ? And state = ?

For my Input paramaters I get prompted for 2
For my output paramaters (Row Value) I also see 2

Is this not what you mean?


--
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
www.konesans.com - for all your consultancy needs





Reply With Quote
  #5  
Old   
Ghetty
 
Posts: n/a

Default Re: SQLDTS.com Question - 07-16-2004 , 09:42 PM



Quote:
Have you tried

So say I want to do this

SELECT au_id, au_lname from Authors where au_fname = ? And state = ?

For my Input paramaters I get prompted for 2
For my output paramaters (Row Value) I also see 2

Is this not what you mean?
Yes. Why is your example not working for me? As described in the
aforementioned
article, an error pops up if I try to use anything but the work around code
of

SELECT id AS OutputTest FROM sysobjects where id = ?

I'm using SQL Server 2000...
How does one go about checking for updates to SQL Server? Perhaps that's the
issue...

Thanks!




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

Default Re: SQLDTS.com Question - 07-17-2004 , 04:36 AM



In article <2lri1iFfnrhkU1 (AT) uni-berlin (DOT) de>, Ghetty wrote:
Quote:
Have you tried

So say I want to do this

SELECT au_id, au_lname from Authors where au_fname = ? And state = ?

For my Input paramaters I get prompted for 2
For my output paramaters (Row Value) I also see 2

Is this not what you mean?

Yes. Why is your example not working for me? As described in the
aforementioned
article, an error pops up if I try to use anything but the work around code
of

SELECT id AS OutputTest FROM sysobjects where id = ?

I'm using SQL Server 2000...
How does one go about checking for updates to SQL Server? Perhaps that's the
issue...

Thanks!

In Query Analyser you can do this

SELECT @@version

What does that tell you?

There is no auto-update feature for SQL Server but the SPs are available on
the MS Site.




Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
www.konesans.com - for all your consultancy needs





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.