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
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Job Does Not Write Report to *SOME* Folders

Author  Topic 

jbates99
Constraint Violating Yak Guru

396 Posts

Posted - 2010-07-14 : 11:59:56
hi everyone,

This is 2005.

I'm using sqlcmd to output a report to a folder that resides on another server.

The agent job is able to create the report in \\Server2\E$\FolderA
but the same job is NOT creating the report when the target path is ... \\Server2\E$\FolderA\FolderB
The permissions to both folders look to be the same to me.

2 questions:

Is this kind of problem *always* related to folder permissions?

The permissions of the job owner are used, is that correct?

Thanks, John

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-14 : 12:39:40
Is it getting an error? If so, can you post it?

The permissions of the Agent service are used.

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

Subscribe to my blog
Go to Top of Page

jbates99
Constraint Violating Yak Guru

396 Posts

Posted - 2010-07-14 : 13:55:24
Thanks Tara.

Oddly, when it does not generate the report, there is no error in the job history or in any SQL Server logs.

The domain account that the Agent and MSSQL services run under has Full permissions to both folders.

John
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-14 : 14:04:25
I'd suggest logging into the database server with the service account (from RDP) and then seeing if you can write to that folder. If that works, then I don't know.

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

Subscribe to my blog
Go to Top of Page

jbates99
Constraint Violating Yak Guru

396 Posts

Posted - 2010-07-14 : 15:05:46
Well, silly me.

I had violated my # 1 rule by having a space in the folder name Failed Logins

Changed the folder name to FailedLogins and the SP to ref that name and now it writes the report. Ugh

Thanks for looking into it though.

John
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-14 : 15:24:13


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

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-14 : 15:24:49
Just an fyi, you can get around space issues by putting double quotes are the path and file name.

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 -