We have a third party program that used to run on Windows 2003 against SQL Server 2000 database (app and db are on same machine). We are trying to migrate/install it on Windows 2008/ SQL Server 2008.
The connection string as specified does not seem to allow it to connect it to SQL Server (see below)
<Configuration name="PROG">
<ADOConnection>
Provider=SQLOLEDB.1;Persist Security Info=False;User Id=sa;Pwd=p@ssw0rd;Initial Catalog=DB_NEW;Data source=servername
</ADOConnection>
</Configuration>
I tried an alternate one and that also does not work
<Configuration name="PROG">
<ADOConnection>
Provider=SQLNCLI10.1;Persist Security Info=False;Initial Catalog=DB_NEW;Data Source=servername;Uid=sa; Pwd=p@ssw0rd;
I was able to use the one below to successfully connect the application to a SQL Server 2008 database on Windows 2003
<Configuration name="PROG">
<ADOConnection>
Provider=SQLOLEDB.1;Persist Security Info=False;User Id=sa;Pwd=p@ssw0rd;Initial Catalog=DB_NEW;Data source=servername
</ADOConnection>
What is the right syntax to get the application to connect to a SQL Server 2008 on Windows 2008 server?