I use sqlserver 2016,the connect string is different with 2005,this is mine and success to connect.
wsprintfA(szStringConnectionSQL, "Persist Security Info=False; Integrated Security=False; Driver=%s; Server=%s; Database=%s; ID=%s; Password=%s;",
"{SQL Server}", "127.0.0.1", szDatabaseName, "sa", "123456");
By the way, the server need to connect database "ServerDB",I did not find the bak file in the database packfile,no need or lost?
CreateSQLConnection(DATABASEID_ServerDB);
wsprintfA(szStringConnectionSQL, "Persist Security Info=False; Integrated Security=False; Driver=%s; Server=%s; Database=%s; ID=%s; Password=%s;",
"{SQL Server}", "127.0.0.1", szDatabaseName, "sa", "123456");
By the way, the server need to connect database "ServerDB",I did not find the bak file in the database packfile,no need or lost?
CreateSQLConnection(DATABASEID_ServerDB);