Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 Connection String "Runtime Error 430" Help

Author  Topic 

Neon
Starting Member

13 Posts

Posted - 2011-10-07 : 01:00:03
trying to connect to my sql database (Sql 2005 Express)

as a te i've been using the following connection string

cnWemsSQL.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=" & txtDatabaseName & ";Data Source=" & txtSQLserver

Works without any problems on my Win 7 32bit(x86) Dev Machine
However when i install the app to my test machine (Windows Xp)
i get the following error

"Run-time error '430':
Class Does not Support Automation Or does not support expected interface

not sure if i'm just missing something, or theres a problem with this string on older machines??

Thanks

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2011-10-07 : 08:18:16
Are you sure you have an SQLOLEDB driver on the XP machine? You should download and install the native client instead and use that one for connections both on the XP and the Win7 machine:

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17943

Download the "sclncli.msi" and then use this connection string instead (from connectionstrings.com):

Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase; Uid=myUsername;Pwd=myPassword;

- Lumbago
My blog-> http://thefirstsql.com/2011/07/08/how-to-find-gaps-in-identity-columns-at-the-speed-of-light/
Go to Top of Page

Neon
Starting Member

13 Posts

Posted - 2011-10-07 : 22:19:52
Did exactly what you told me installed sqlncli
and changed my connstring, unfortunatly still has some error
works fine on the windows 7 machine, but not on xp machine..

even tryed installing sql express server on the xp machine and still same error
very annoying

well in the mean time i'll try it on a few other machines see if it does the same
also one posible thing i thought was if it maybe because i'm compiling the project on windows 7
i'll try compiling on a xp machine and try that too
will keep you updated to what i find

or if you have anyother ideas/solutions would gladly try them out too

Thanks heaps
Go to Top of Page
   

- Advertisement -