If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > Passing a file to create an SP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-29-11, 07:36
siva_nagarajan siva_nagarajan is offline
Registered User
 
Join Date: Jul 2011
Posts: 3
Passing a file to create an SP

Hi,

I have a file called file.sql which contains the SP. I now want to upload this to the DB using isql.

Thanks and Regards
Siva Nagarajan
Reply With Quote
  #2 (permalink)  
Old 08-29-11, 07:53
Martijnvs Martijnvs is offline
Registered User
 
Join Date: Jan 2004
Location: The Hague/Utrecht, NL
Posts: 415
Use file.sql as an inputfile using the -i flag:

isql -S<servername> -U<user with appropriate rights> -i<path>\file.sql
__________________
I'm not crazy, I'm an aeroplane!
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

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