January 21, 2005 at 10:08 am
declare @iVar int
select @iVar = ?
When using OLEDB, I get a syntax error. When using ODBC, I get "sql statement does not contain any parameters. How are you getting this to work? I would LOVE to be able to do this!!!
[font="Courier New"]ZenDada[/font]
January 21, 2005 at 11:32 am
I don't know.
It just works. I have SQL Server 2000 Server component installed on my machine.
It's SP3. Maybe it makes a difference?
January 23, 2005 at 3:07 pm
Each of the connections hold the Datasource(Server) and Catalog(Database). So the SourceObjName and DestObjName on the datapump task only need to [owner].
You will need to take out the Database name via Disconnected Edit, but once thats done you can change server and database properties on the connections to point to wherever you like.
--------------------
Colt 45 - the original point and click interface
January 23, 2005 at 3:27 pm
Not exactly sure what you are wanting to do here. Are you wanting to return the INTERVAL_ID and store it in a global variable? If so, then you need to assign it to a row value output parameter.
I would just have this as the SQL statement
SELECT INTERVAL_ID FROM INTERVAL
WHERE (METHOD = 'STANDARD' AND EFFECTIVE = ?)
Then assign your date global variable to the two input parameters and assign the output parameter to your gv_INTERVALID global variable.
--------------------
Colt 45 - the original point and click interface
January 24, 2005 at 7:02 am
WHERE (METHOD = 'STANDARD' AND EFFECTIVE <= ? AND EXPIRY >= ?)
Won't it be looking for the second Input Parameter?
I thought it retrieves parameters one by one.
So it would look for the second Input Parameter.
Otherwise let's say you have two Input Parameters.
How then your SQL Task knows which one is which?
I think you can use "?" for the same Input Parameter only once in your SQL statement.
January 24, 2005 at 2:37 pm
In the input parameters dialog, you can specify the same global variable for each of the parameters.
--------------------
Colt 45 - the original point and click interface
Viewing 6 posts - 16 through 20 (of 20 total)
You must be logged in to reply to this topic. Login to reply