SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Script Concern


Script Concern

Author
Message
jralston88
jralston88
SSC-Enthusiastic
SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)SSC-Enthusiastic (161 reputation)

Group: General Forum Members
Points: 161 Visits: 689
Hello everyone,
We have a vendor that wants us to run a SQL script on our server. One example within the script:

USE[master]
GO

GRANT EXECUTE ON[sys].[sp_OASetProperty] TO[public]
GO

It includes sp_oasetproperty, sp_OAMethod, sp_OAGetErrorInfo, sp_OADestroy, sp_OAStop, sp_OACreate, sp_OAGetProperty, sp_configure'show advanced options',1 ; and sp_configure'Ole Automation Procedures',1.

My own Googling shows these stored procedures work with the COM object. It was requested I run this script against the master database using a SA account (it's mapped to a few user databases). While that's fine, we have over 30 user databases on this server.

Do I have a concern executing this script? We need to ensure there's no impact to the other databases. Any comments / URLs are appreciated - thanks.
Lowell
Lowell
One Orange Chip
One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)

Group: General Forum Members
Points: 28022 Visits: 39925
not to public.

if they need to run sp_Oa*, then only grant it to one specificl role or user/login that will actually need and use it.

depending on what they are actually doing, there probably exists a CLR stored procedure, already out there, to do the same work, but that would require them to change their code to use CLR instead of sp_OaCreate calls(leftover SQL2000 code?)

Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search