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 > Problem executing stored procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-11, 06:50
arunslekshman arunslekshman is offline
Registered User
 
Join Date: Jun 2011
Posts: 1
Question Problem executing stored procedure

Hello,

I am executing a stored procedure in VB Script to export the data from the SP to an excel file. While executing the SP in ASE ISQL gives me exact result but while executing the SP in VBScript returns 0 value for certain columns in the excel file and in the script itself.

When I checked the SP, it contains many more sub SPs and it seems the fields which are shown as 0 in the excel file are stored in a temporary table.

My connection string is as follows

sCon = "driver={SYBASE ASE ODBC Driver};" & _
"srvr=MyServer;" & _
"uid=uName;pwd=uPwd; database=" & DBName & "; InterfacesFile=k:\sybase\ini\sql.ini"

Set Conn = CreateObject("ADODB.Connection")
Conn.Provider = "MSDASQL.1"
Conn.ConnectionString = sCon
Conn.CommandTimeout = 300
Conn.Open
Set myCommand = CreateObject("ADODB.Command")
Set myRS = CreateObject("ADODB.Recordset")

I appreciate if someone can help me in this.

Thanks & Regards,
Arun

Last edited by arunslekshman; 06-28-11 at 06:51. Reason: Changing to apt icon
Reply With Quote
Reply

Tags
ase isql, sybase, vb script

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