Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Sybase > Using xp_write_file in Sybase 12.5.4

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-07, 12:20
august97 august97 is offline
Registered User
 
Join Date: Nov 2007
Posts: 7
Using xp_write_file in Sybase 12.5.4

I am using Sybase 12.5.4 on Windows 2003 Server.
Are xp_write_file and xp_read_file Extended stored procedures available on 12.5.4.

I tried to use these in stored procedure, it gave me following error,

'Function xp_write_file not found,....'

I tried running query
sp_help xp_write_file in subsystemprocs. It shows 'Object does not exist in this database'.

In Syabse Central, Extended Stored Procedures section doesn't list these things.

Is it possible to use these in 12.5.4 or Extended Stored Procedure needs to be written for file handling?

Can anybody help me? Thanks!
Reply With Quote
  #2 (permalink)  
Old 12-11-07, 12:49
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 371
Those functions are in ASA I think, which is a totally different product than ASE. Try to read up on xp_cmd_shell. Maybe you could achieve it through that.

But again, xp procedures are still not that great with ASE. So, you are better off writing any file read/writes from an app using say for eg., c, java, perl etc.
Reply With Quote
  #3 (permalink)  
Old 12-13-07, 03:12
august97 august97 is offline
Registered User
 
Join Date: Nov 2007
Posts: 7
Using xp_write_file in Sybase 12.5.4

Thanks for reply!
You mean, writing extended stored procedure for reading & writing files would be better than using xp_cmdshell.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On