SQL Server 的正确连接字符串是什么?我使用的 ODBC 连接字符串不起作用。我怎样才能找出问题所在?
这是我正在处理的整个项目的一小部分,它不起作用。
public static class Extensions
{
public static string constr = "Driver={SQL Server};server=127.0.0.1;uid=test;pwd=test123;database=account";
//public static string constr = "Driver={SQL Server};server=127.0.0.1;uid=test;pwd=test123;app=Microsoft® Visual Studio® 2010;wsid=WIN-8VW8RV959F2;database=account";
public static byte[] StrToByteArray(string str)
{