Quantcast
Channel: SQL Server Setup & Upgrade Forum
Viewing all articles
Browse latest Browse all 7701

Running an older Visual Studio app on Server 2012R2 can't connect to SQL Database

$
0
0

I have a database driven app written in Visual Studio 2005 or the release before.

It works fine on windows xp, 7x64, server 2008R2.

I installed on Server 2012R2, and it will not connect to the database. (which is a SqlServerExpress2014 database)

System>Runtime.InteropServices.COMException (0x80004005): [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at ADODB.ConnectionClass.Open(String ConnectionString, Strin UserID, String Password, Int32 Option) an ####.ModGlobal.OpenDB()

1. My connection string is: Provider=SQLOLEDB.1;Password=XXXXX;Persist Security Info=True;User ID=sa;Initial Catalog=BuilderVT;Data Source=ENET-2012R2\SQLEXPRESS

> I created & verified this as in a UDL file with OLEDB Core Services- the connection tested OK.
> I used this same string on a Win7 system, and it connects to the database fine
> I tried connecting to an older database on another system, and it fails.

I suspect that there's a 32 to 64 bit mismatch, but, am lost at the moment


Viewing all articles
Browse latest Browse all 7701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>