简体   繁体   中英

Logon failed error message is thrown while verifying database

In dbcon:

Data Source=.\sqlexpress;Initial Catalog=fdbr;User ID=sa;Pwd=pass123;MultipleActiveResultSets=true; Integrated Security=false;

Error is thrown on this line of code:

objLib.SetReportConnection(objcr);

connection string probably like this if you use local server

Data Source=(localdb)\v11.0;Initial Catalog=fdbr;user id=sa;password=pass123;MultipleActiveResultSets=true; Integrated Security=true;

this link may help you https://www.connectionstrings.com/sql-server/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM