Link to home
Start Free TrialLog in
Avatar of prairie1
prairie1Flag for United States of America

asked on

In SMS I'm getting 'Could Not Find Stored Procedure...' and I'm staring right at it.

Hi all,
I'm using sql-server 2008R2.
I connected to SMS via Windows Auth, I have sysadmin and serveradmin.
I created procedureA in SMS.  Then I created ProcedureB in SMS.  I granted Public role the Execute permission on both procedures
Then I went back to ProcedureA and put in the line:
Exec ProcedureB
I get the squiggly red line saying 'Could not find procedure...blah'  
I can see both prodecures right next to each other, both owned by dbo, etc.
If I disconnect and re-connect using sql-auth as sa, the squiggly line is gone and all is fine.
It's as if this procedureB isn't seen by anyone under Windows Auth, but public has permissions so I don't get it.
Thanks,
--Jim
Avatar of penyCuicas
penyCuicas

you need to write down the full name of the proc, something like this
Exec dbo.ProcedureB
ASKER CERTIFIED SOLUTION
Avatar of prairie1
prairie1
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 prairie1

ASKER

This was the fix-- Ctrl-Shift-R