Link to home
Start Free TrialLog in
Avatar of CochiseCounty
CochiseCountyFlag for United States of America

asked on

Error Converting Varchar to uniqueidentifier

I am trying to call a stored procedure from Crystal Reports and I'm passing a parameter. I need the parameter to be a uniqueidentifier datatype, but it is being treated as a varchar. Is there a way to convert the varchar to uniqueidentifer before passing it as a parameter? is there maybe another solution to this problem?

Please help
ASKER CERTIFIED SOLUTION
Avatar of Kevin Hill
Kevin Hill
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CochiseCounty

ASKER

I'm not getting any error from in the stored procedure. My problem is that I am calling the stored procedure from Crystal Reports and passing a varchar as a parameter to a uniqueidentifier. I guess I can pass it to a varchar and then do the conversion, but I am in a situation where I need to use the stored procedures that have been in use for quite some time by other applications, in other words, I can't make any changes to the stored procedure, and they don't want me to create any new ones either.

Please help.
Can you profile the actual call to the procedure to verify how it is being passed?  
Thank you for your help. I was able to convince the powers that be to let me create a new stored procedure.

By the way, I'm pretty sure the parameter is being passed as a string.