Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 How to set permissions for SQL Server

Author  Topic 

itmaster
Starting Member

28 Posts

Posted - 2012-09-06 : 11:38:05
Hi,
I was on a job a while back and inorder get a file from or write data to afile on a share, the Admin had to give sql server permissions, he would tell me, to read and write to the share. He never told me what was involved with this; and I cannpot find it any where. If some one could shed some light on this I would really appreaciate it.
Thank you

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-09-06 : 12:59:37
Were you using SSIS or some other SQL Server tool? I'm not understanding what issue you encountered.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

itmasterw
Yak Posting Veteran

90 Posts

Posted - 2012-09-07 : 10:16:25
Hi Thanks for getting back to me. I am sorry but this is going to be hard for me to explain as I am not a Admin; I am developer. However, what I can tell you is that it was when we would use any code (bulk insert or xp comand shell statements) to either import or export data. I remeber going to them and telling them that the code is not working, but it is the same code tha ti used in the past, and they would tell me that they have to give the SQL Server rights to read and write to the share. The after they did this my code would work fine. so I was woundering if you could tell me how they did this.
Thank you

ITM
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-09-07 : 12:04:40
For xp_cmdshell, it's because it uses the SQL Server service account. So that account needs access to the share. So your admin did the right thing.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

itmasterw
Yak Posting Veteran

90 Posts

Posted - 2012-09-12 : 08:32:02
Sorry I have not been able to get back to this sooner. However, I know he did the right thing in doing this, but I am looking for what he had to do. Where did he go what did he do. I cannot find anything on this.
Thank you

ITM
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-09-12 : 14:25:45
He would have given rights to the share for the SQL Server service account. Go to the share, any share will do, and check out the permissions.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

itmasterw
Yak Posting Veteran

90 Posts

Posted - 2012-09-13 : 15:27:16
Oh okay, I was thinking that he had to do something in sql server.
Thanks

ITM
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-09-13 : 15:39:19
Nope, nothing to do in SQL Server unless a proxy account was used which it wasn't according to your description.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -