Groups | Blog | Home
all groups > sql server dts > december 2003 >

sql server dts : Execute SQL Task


SUNNY
12/23/2003 5:11:34 AM
Hi I created a simple stored procedure

CREATE PROCEDURE testproc (@p1 int,@p2 int,@p3 int)
AS
BEGIN
SET @P1=10+@P1
PRINT @P1
END

Now In my DTS Pkg I have Execute SQL Task which has the
following statment
EXEC testproc ?,?,?
And my parameter1 is assigned to p1 which is a global
variable of value 10

I am getting the following error

The task reported failure on execution
Invalid charater value for cast specification
anonymous NO[at]SPAM discussions.microsoft.com
12/23/2003 5:55:01 AM
All of them are integers

Sunny
[quoted text, click to view]
Allan Mitchell
12/23/2003 1:30:42 PM
What datatype is the Global Variable ?
What are you passing to @p2 and @p3 (default i.e. no value is '' i.e. empty
string)

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



[quoted text, click to view]

Allan Mitchell
12/23/2003 2:05:32 PM
Populated ?
--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



[quoted text, click to view]

AddThis Social Bookmark Button