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.
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 stringcnWemsSQL.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=" & txtDatabaseName & ";Data Source=" & txtSQLserverWorks without any problems on my Win 7 32bit(x86) Dev MachineHowever 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 interfacenot 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=17943Download 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;- LumbagoMy blog-> http://thefirstsql.com/2011/07/08/how-to-find-gaps-in-identity-columns-at-the-speed-of-light/ |
|
|
Neon
Starting Member
13 Posts |
Posted - 2011-10-07 : 22:19:52
|
Did exactly what you told me installed sqlncliand changed my connstring, unfortunatly still has some errorworks fine on the windows 7 machine, but not on xp machine..even tryed installing sql express server on the xp machine and still same errorvery annoyingwell in the mean time i'll try it on a few other machines see if it does the samealso one posible thing i thought was if it maybe because i'm compiling the project on windows 7i'll try compiling on a xp machine and try that toowill keep you updated to what i findor if you have anyother ideas/solutions would gladly try them out tooThanks heaps |
|
|
|
|
|