Solved

Multiple Grant Statements in SP

Posted on 1998-07-07
2
194 Views
Last Modified: 2010-03-19
When I attempt to create a stored procedure that contains more than one GRANT statement , it appears to execute
OK but the actual stored procedure shows only the first GRANT statement. How can I create a stored procedure
that lets me issue  multiple GRANT statements?
0
Comment
Question by:vd
2 Comments
 
LVL 7

Accepted Solution

by:
spiridonov earned 50 total points
ID: 1091678
Separate each GRANT statement with 'go' keyword
0
 

Author Comment

by:vd
ID: 1091679
I did separate the GRANT statements with the GO keyword! (Which was not working)
It works if you omit all the GO keywords expect the last one.
Since your response was quick and your comment basically got me
thinking about the significance of GO, you can have the points anyway!


0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now