SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 How to set permissions for SQL Server
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

itmaster
Starting Member

8 Posts

Posted - 09/06/2012 :  11:38:05  Show Profile  Reply with Quote
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

USA
35007 Posts

Posted - 09/06/2012 :  12:59:37  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

83 Posts

Posted - 09/07/2012 :  10:16:25  Show Profile  Reply with Quote
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

Edited by - itmasterw on 09/07/2012 10:17:43
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
35007 Posts

Posted - 09/07/2012 :  12:04:40  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

83 Posts

Posted - 09/12/2012 :  08:32:02  Show Profile  Reply with Quote
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

USA
35007 Posts

Posted - 09/12/2012 :  14:25:45  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

83 Posts

Posted - 09/13/2012 :  15:27:16  Show Profile  Reply with Quote
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

USA
35007 Posts

Posted - 09/13/2012 :  15:39:19  Show Profile  Visit tkizer's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000