When I execute this format of SQL command: SP_HELPTEXT Sproc1
.
The result set will display Could not find stored procedure 'SP_HELPTEXT'
. But if i will replace the SQL command to lower case like sp_helptext Sproc1
, it definitely displays the content of Sproc1.
Im using the Sproc1
in my program and when the program executes Sproc1
it will return a message:
Must declare the variable '@Variable1'.
Although I've already declared that specific variable.
I have a hint that the issue is related to collation, case-sensitive or insensitive settings. Does anybody know how to resolve ?
Another situation where case sensitive variable names appear:
CREATE PROCEDURE Foo @customerID int AS
PRINT @customerId