Database & Application Miscellaneous: xp_write_file restrictions ?

  • geoffatdatagaard / 212 / Mon, 16 Nov 2009 01:20:00 GMT / Comments (2)
  • Sybase 9.0.2.3137 running as Network Server (Service) on XPP or W2K.

    Can anybody confirm for me that xp_write_file is restricted to ONLY writing
    files to the Servers local disks.

    There is nothing (I can find) in the docs but I cant get it to work on
    anything other than disks local to ASA Server host machine.
    Even mapped drives fail.

    My findings (Done from ISQL)

    select xp_write_file('c:One.txt','1234567890')
    => works fine
    select xp_write_file('z:One.txt','1234567890')
    => fails every time even though Z: is defined on server host.
    select xp_write_file('\\\\MyServer\\SharedDocs\
    \One.txt','1234567890') =>
    fails every time.

    TIA
  • Keywords:

    xp_write_file, restrictions, database, application

  • http://database.itags.org/database-application/157953/«« Last Thread - Next Thread »»
    1. GeoffAtDatagaard wrote:

      > Sybase 9.0.2.3137 running as Network Server (Service) on XPP or W2K.
      > Can anybody confirm for me that xp_write_file is restricted to ONLY writin
      g
      > files to the Servers local disks.


      It is restricted to whatever is accessible to the account the server
      runs under. By default, it is the LocalSystem account that doesn't have
      access to anything "foreign".

      Dmitri.

      dmitri | Fri, 23 May 2008 14:29:00 GMT |

    2. Thanks Dmitri, problem solved !

      "Dmitri" <NOdimSPAM...mail15.com> wrote in message
      news:44191df2$1...forums-1-dub...
      > GeoffAtDatagaard wrote:
      >
      writing[vbcol=seagreen]
      > It is restricted to whatever is accessible to the account the server
      > runs under. By default, it is the LocalSystem account that doesn't have
      > access to anything "foreign".
      > Dmitri.

      geoffatdatagaard | Fri, 23 May 2008 14:30:00 GMT |

  • Database & Application Miscellaneous Questions

    • Yet another feed test

      Tony McGuire wrote:> So it was the ^Ms due to how I FTPd the .conf files?Evidently. I edited each...

      By larry_digiovanni

    • query about lock_conflict matrix

      I am using BDB in TDS mode. Multiple processes(ecah process ismultithreaded) access BDB.I want to av...

      By kirankumar_mr

    • Database design questions

      Here i have a few question:Is Xml Good for large databases?Shoud i use XmlDocument or XmlReader and ...

      By 36_spam_la

    • data environment/stored procedures

      hi all,i have created a data environment with a connection object that has an inserted stored proced...

      By sozewun

    • select question

      Is there a way to select a row by length? I want to randomly select short news articles with somethi...

      By shawazi, 9 Comments

    • adoquery progrom!

      i use delphi + adomysql:='insert into mailstate (stateid,statecode,statename) values(:stateid,:state...

      By lsllsf, 1 Comments

    • Data List Box and ADODC component

      Hello everybodyI have placed an ADODC control on a form. The component`s connection string has been ...

      By divined, 7 Comments

    • SQL and SQLite pronounciation?

      Hi All,I have a simple question; how do you pronounce SQL and SQLite?I have heard some people pronou...

      By denniscote, 16 Comments

    • Help requd in writing functions in C and using in ...

      Hi,Can you help me in writing functions in C and the using in Postgres.would like to know some point...

      By jasbinderbali, 5 Comments