單項(xiàng)選擇題關(guān)于數(shù)據(jù)庫連接字符串代碼正確的是()

A.private static string DBConnectString ="server=.;database=FreshLiveDB;uid=sa;pwd=123;";
B.private static string DBConnectString ="server=.;database=FreshLiveDB;id=sa;pwd=123;";
C.private static string DBConnectString ="server=.;database=FreshLiveDB;id=sa;password=123;";
D.private static string DBConnectString ="server=.;database=FreshLiveDB;name=sa;pwd=123;";


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題關(guān)于SqlCommand命令對象編寫正確的是()

A.SqlCommand cmm =new SqlCommand(sql語句,Connection對象);
B.SqlCommand cmm =new SqlCommand(Connection對象,sql語句);
C.SqlCommand cmm =new SqlCommand(sql語句);
D.SqlCommand cmm =new SqlCommand(Connection對象);

2.多項(xiàng)選擇題關(guān)于DataGridView控件的屬性描述正確的有()

A.Rows獲取總條數(shù)
B.DataSource 獲取數(shù)據(jù)源
C.Name 獲取控件的名稱
D.Columns 獲取總列的名稱