SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 Connection String "Runtime Error 430" Help
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Neon
Starting Member

13 Posts

Posted - 10/07/2011 :  01:00:03  Show Profile  Reply with Quote
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

Norway
3271 Posts

Posted - 10/07/2011 :  08:18:16  Show Profile  Reply with Quote
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 - 10/07/2011 :  22:19:52  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000