I am using SQL Server 2008 R2, and I have created a schema Test and in that schema, I created a stored procedure.
I wanted to run it in the text mode by issuing this query:
EXEC SP_HELPTEXT SCHEMA.SPROC
But while running the above query I get this error:
Incorrect syntax near ‘.’.
Can someone please help me here to resolve this issue.
Try this