Hello,
I'm trying to pass a parameter into the above referenced method. But the switching between VBA and T-SQL syntax is vexing me.
CREATE PROCEDURE spRun_DTS (@PackageName char(10))
AS
DECLARE @object int, @hr int
DECLARE @src varchar(255), @desc varchar(255)
EXEC @hr = sp_OAMethod @object, 'LoadFromSQLServer("OWS78002878791", "", "", 256, , , , & @PackageName & )'
If I hard code a value instead of @PackageName, then it works just fine. Any ideas?
Thanks
I'm trying to pass a parameter into the above referenced method. But the switching between VBA and T-SQL syntax is vexing me.
CREATE PROCEDURE spRun_DTS (@PackageName char(10))
AS
DECLARE @object int, @hr int
DECLARE @src varchar(255), @desc varchar(255)
EXEC @hr = sp_OAMethod @object, 'LoadFromSQLServer("OWS78002878791", "", "", 256, , , , & @PackageName & )'
If I hard code a value instead of @PackageName, then it works just fine. Any ideas?
Thanks