When I'm selecting a Stored procedure, the next command is running:
EXEC sp_helptext '<STORED_PRECEDURE_NAME>';
and the immediate result i get is
SQL Error (15009): The object 'STORED_PRECEDURE_NAME' does not exist in database 'DATABASE_NAME' or is invalid for this operation. */
the reason for this is that the SCHEMA_NAME is missing from the query. and actually it should run this command:
EXEC sp_helptext '<SCHEMA_NAME>.<STORED_PRECEDURE_NAME>';
I'm using HeidiSQL 9.1.0.4867 and MSSQL 10.0.6000
thanks