Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation
PRINT 'GO Needed here' GO CREATE PROC #uspGetAllUsers AS SET NOCOUNT ON; SELECT TOP 10 DisplayName, Location, Reputation FROM Users; GO EXECUTE #uspGetAllUsers; GO -- Or EXEC #uspGetAllUsers; GO -- Or, if this procedure is the first statement within a batch: #uspGetAllUsers;