SELECT m.[definition] FROM [MyTemp].sys.sql_modules m INNER JOIN [MyTemp].sys.objects o ON m.object_id = o.object_id WHERE o.schema_id = SCHEMA_ID(N'dbo') AND o.name = N'AspNet_SqlCacheRegisterTableStoredProcedure'