Re: Warning: cannot write logfile



Monica,

Under what account is this job running? And what version of SQL Server?

If the account is not a sysadmin, then the SQL Agent Proxy account will be
used. (In a SQL Server 2000 server that was upgraded to SQL Server 2005, you
may see a proxy named UpgradedProxyAccount that uses UpgradedProxy.)

If this account does not have rights to write to the directory, the job will
run, but you will get the error.

If I remember correctly, a non-sysadmin in SQL Server 2000 cannot write to a
file. (But test it and see.) If that is the case, another option is to
check Append Output to Step History, which would allow you to see the output
using Enterprise Manager, going to the Job Step Advanced tab and pressing
View.

RLF

"Monica" <Monica@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:039D65F6-B272-4555-BBA3-6CD1A7B09D59@xxxxxxxxxxxxxxxx
Hello,

I am scheduling a simple job to run a query. I want the result of that
query
written to a text file.
When I am scheduling the job, in the step section I am creating a step of
type "Transact-SQL Script (TSQL)" where I define the query. In the
advanced
tab of the Step section there is an option to put an output file and there
I
put the path where I want the text file created.
When I run the job, it runs successfuly but the file is not created. I get
a
Warning:cannot write logfile message.

Can anyone give any ideas to fix this?



.



Relevant Pages

  • Re: jobs for a linked server in a different domain?
    ... Use that account explicitly to log on to the server console. ... Run your query. ... Looking for a SQL Server replication book? ... Chieko Kuroda wrote: ...
    (microsoft.public.sqlserver.server)
  • Re: Discussing 3 different strategies for deleting from multiple tables
    ... I will be using SQL Server but I am riding on top of a third party ... FYI, Account contains around 20K ... >>> This results in one parameterized query followed by two more trips to ...
    (microsoft.public.data.ado)
  • Re: Error 15401 using sp_grantlogin (not addressed by current KB articles)
    ... Restarting Windows 2000 resolved the problem for this particular account, ... confused when it sees a duplicate SID. ... > One way to get SQL Server to agree with the renamed NT ... > Preview (to ensure the script was created), ...
    (microsoft.public.sqlserver.security)
  • Re: SharePoint V3 Install Error
    ... But it our case it had to do with Group Policies that forbid the account of ... WSS FAQ:www.wssv3faq.com/wss.collutions.com ... Event Source: WindowsSharePointServices3Search ... whatever you are installing WSS as sufficient rights to the SQL Server ...
    (microsoft.public.sharepoint.windowsservices)
  • RE: Problems with WebParts
    ... to a database called aspnetdb. ... > The connection string specifies a local SQL Server Express instance using a ... > server account must have read and write access to the applications directory. ... > This is necessary because the web server account will automatically create ...
    (microsoft.public.dotnet.framework.aspnet)

Loading