comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Question about Dataminer syntax to execute Stored Procedure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Question about Dataminer syntax to execute Stored Procedure [message #57652] Wed, 19 December 2007 13:36
Daft Pict is currently offline  Daft Pict
Messages: 8
Registered: March 2007
Junior Member
Greetings,
I'm trying to execute a SQLserver stored procedure which invokes a
Bulk Insert (for speed) to load data but despite looking at the DM
documentation am unable to get it to work!

Here's the code
sql_statement ="{CALL LoadDAOcat('"
sql_statement+=string(Meta(k).daocat_filename)+"','"
sql_statement+=string(Meta(k).image)+"')}"
oDB->ExecuteSQL,sql_statement

which builds the following SQL statement
{CALL LoadDAOcat('v:\processed
\HST_9293_06_ACS_WFC_F814W_daophot_v1.0.txt','HST_9293_06_AC S_WFC_F814W')}

The procedure requires 2 parameters (data file name and a value to
identify which db entry to update)

The syntax appears to be ok according to the on-line docs but I get
the following error
IDLDBDATABASE::EXECUTESQL: ODBC [Microsoft][ODBC SQL Server Driver]
[SQL Server]68921
Execution halted at: HLAREADDATA 435

Error 68921 doesn't appear anywhere in the ITT, DataDirect or MS
documentation that I can find so I can't even figure out what the
error is???

Anyone able to help?
Thanks in advance....
-Brian
[Message index]
 
Read Message
Previous Topic: iTools problem
Next Topic: Re: iTools problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:34:53 PDT 2025

Total time taken to generate the page: 0.80324 seconds