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 > ftp from a stored procedure in ASE 12.5.2/12.5.3

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-14-07, 10:34
mxt mxt is offline
Registered User
 
Join Date: May 2007
Posts: 6
ftp from a stored procedure in ASE 12.5.2/12.5.3

Hi All,

The scenario is that i'd like to ftp a bcp'd text file from within a stored procedure to another machine. Is it possible in ASE 12.5.2/12.5.3?

Thanks in advance

M
Reply With Quote
  #2 (permalink)  
Old 11-14-07, 17:14
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 371
Quote:
Originally Posted by mxt
Hi All,

The scenario is that i'd like to ftp a bcp'd text file from within a stored procedure to another machine. Is it possible in ASE 12.5.2/12.5.3?

Thanks in advance

M

Theres a lot of conflicts in ur statement. U cant bcp from a stored proc... Please explain exactly what you have achieved and the error messages coming out of it OR if you dont know what to do, explain what you want to do and forum members may be able to help you.

As far as bcping out from 12.5.2 and bcping in 12.5.3, I dont think you should face any problems.
Reply With Quote
  #3 (permalink)  
Old 11-16-07, 05:12
rupeshs rupeshs is offline
Registered User
 
Join Date: May 2006
Location: Pune,India
Posts: 11
I think we can do/execute the BCP command from within stored procedure,
using "xp_cmdshell" command which will go on the command line & execute the command. through which we can run BCP to transfer the data.
But could u please figure out the pros & cons in this processs, if u have any idea.
Reply With Quote
  #4 (permalink)  
Old 11-17-07, 13:59
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 371
Quote:
Originally Posted by rupeshs
I think we can do/execute the BCP command from within stored procedure,
using "xp_cmdshell" command which will go on the command line & execute the command. through which we can run BCP to transfer the data.
But could u please figure out the pros & cons in this processs, if u have any idea.

xp_cmdshell can be used to do minor OS level commands. But to write a full-fledged program and control it thro a stored procedure may be a bit too much. But its doable, but you wont have the flexibility of using a programming language like perl or unix, I think.
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