MS SQL Stored Procedures , Visual Studio 2005 , "Input values cannot

A few people in the DOT NET world have noticed that when stepping
through SQL stored procedures using Visual Studio 2005, when
debugging, an error can occur.
This bug occurs if you try to call a stored procedure that uses a BIT
type of Parameter.
The error message "Input values cannot be converted" occurs , as you
are debugging .
This can be cured if you change the Parameter type to TINYINT.

ALTER PROCEDURE [dbo].[usp_CashBookBulkProcess]
(
[at] InVRevID INTEGER,
[at] InVIsNewSplit BIT, -- THIS CAUSES ERROR IN VISUAL STUDIO 2005,
CHANGE IT TO A TINYINT)
[at] InVdtSettlement DATETIME,
[at] InVLFID INTEGER,
[at] InVLoanID INTEGER,
[at] InVStatus TINYINT output,
[at] OutVCallReturnMessage VARCHAR(250) output
)

as
....etc

It will work ok in Enterprise manager though, without any trouble.

I have posted this message only for reference by others who may
encounter the problem, as I could not find another posting on the
topic.
Accessed [ Mo, 07 April 2008 05:03 ] [ ID #1937122 ]
Datenbanken » comp.databases.ms-sqlserver » MS SQL Stored Procedures , Visual Studio 2005 , "Input values cannot

Vorheriges Thema: Client side insert update
Nächstes Thema: help,a regular text file how to sql 2000 table code ?