Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Ado Data RDS > RDS vb6 runtime...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 274 of 305
Post > Topic >>

RDS vb6 runtime error '-2147217900 (80040e14)':

by =?Utf-8?B?U0FUSEVFU0ggS1VNQVI=?= <SATHEESH KUMAR@[EMAIL PROTECTED] Mar 27, 2006 at 12:56 PM

Hi, 
I tried to run a query against a MS Access database with RDS in VB via
a DSN 'REMOTE_U'  on Windows 2003 and getting the following error:

[Microsoft][ODBC Microsoft Access Driver]Invalid SQL Statement;
expected 'DELETE','INSERT','PROCEDURE','SELECT' or 'UPDATE'.
 
I have configured the MDAC 'Directory Security' and set the
following in msdfmap.ini
   [connect default]
   Access=ReadWrite
 
Also I configure MDAC virtual directory in IIS and given proper permission

for IUSR_Machine name.
Also setup the registry entries ADCLaunch\Parameters\RDSServer.DataFactory
& 
AdavacedServerFactory

an example of the same  VB code that  is enclosed in the bottom part of
this 
submission.
 
As the SQL statement is so simple I can't see why should it be
an invalid statement.  I guess there must be some setup related
problem in my environment.  
 
 
Dim rs As Object   'Recordset
Dim ds As Object   'RDS.DataSpace
Dim df As Object   'RDSServer.DataFactory

Private Sub Form_Load()
   Set ds = CreateObject("RDS.DataSpace") 
   Set df = ds.CreateObject("RDSServer.DataFactory", _
                     http://myserver)
End Sub

Private Sub Command1_Click() 
   'This query returns a recordset over HTTP.
   Dim strCn As Variant, strSQL As Variant

   strCn = "dsn=REMOTE_U;uid=Admin;pwd="
   strSQL = "SELECT * from test1"
   Set rs = df.Query (strCn, strSQL)

End Sub


I will appreciate if somebody can help me to solve this issue.

With regards

Satheesh Kumar
 




 7 Posts in Topic:
RDS vb6 runtime error '-2147217900 (80040e14)':
=?Utf-8?B?U0FUSEVFU0ggS1V  2006-03-27 12:56:02 
Re: RDS vb6 runtime error '-2147217900 (80040e14)':
"Brian Muth" &l  2006-03-27 14:12:35 
Re: RDS vb6 runtime error '-2147217900 (80040e14)':
=?Utf-8?B?U0FUSEVFU0ggS1V  2006-03-27 20:20:02 
Re: RDS vb6 runtime error '-2147217900 (80040e14)':
"Brian Muth" &l  2006-03-28 08:42:28 
Re: RDS vb6 runtime error '-2147217900 (80040e14)':
=?Utf-8?B?U0FUSEVFU0ggS1V  2006-03-28 10:27:03 
Re: RDS vb6 runtime error '-2147217900 (80040e14)':
=?Utf-8?B?U0FUSEVFU0ggS1V  2006-03-28 10:21:02 
Re: RDS vb6 runtime error '-2147217900 (80040e14)':
=?Utf-8?B?U0FUSEVFU0ggS1V  2006-04-05 02:00:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:11:04 CST 2008.