Original connectionstring whitch working on MSSQL 2000:
Provider=SQLOLEDB.1; Persist Security Info=True; User ID=XXXXXXXX; Initial Catalog=IntranetApps; Data Source=MS; Use Procedure for Prepare=1; Auto Translate=True; Packet Size=4096; Workstation ID=datawriter; Password=XXXXXXXX’;
New connectionstring which not working on MSSQL 2008:
Provider=SQLNCLI10;Server=PR-NB-CIS011\SQLEXPRESS;Database=IntranetApps;Uid=XXXXXXXX;Pwd=XXXXXXXX;
I tryed change provider to SQLNCLI10.1, without provider, …
Once in past i solved same problem, but hell, i don’t remember it now. I thing that there was needed install some provider, but i can find nothing about it now.
There is code witch throw exception:
this.connection = new ActiveXObject("ADODB.Connection");
this.connection.ConnectionString = this.conString;
try {
this.connection.Open;
}
catch(e){
Response.write("Chyba pri pripojeni na db.");
return false; // pokud dojde k chybe pri pripojovani k databazi, pak fce vraci false, jinak true
}
If this really is a connection string problem, you should:
";Data Source=PR-NB-CIS011\SQLEXPRESS;"instead of";Server=PR-NB-CIS011\SQLEXPRESS;"