A. 按要求寫出連接資料庫的代碼:資料庫名稱為mywebdb,所在的資料庫伺服器名稱為3A006
使用 SQLDMO(SQL Distributed Management Objects,SQL分布式管 理對象)。
添加引用->COM裡面
//得到所有本地網路中可使用的SQL伺服器列表。
SQLDMO.Application sqlApp = new SQLDMO.ApplicationClass();
SQLDMO.NameList sqlServers = sqlApp.ListAvailableSQLServers();
for(int i=0;i<sqlServers.Count;i++)
{
object srv = sqlServers.Item(i + 1);
if(srv != null)
{
this.cboServers.Items.Add(srv);
}
}
if(this.cboServers.Items.Count > 0)
this.cboServers.SelectedIndex = 0;
else
this.cboServers.Text = "<No available SQL Servers>";
//得到指定SQL伺服器所有資料庫的列表
SQLDMO.Application sqlApp = new SQLDMO.ApplicationClass();
SQLDMO.SQLServer srv = new SQLDMO.SQLServerClass();
srv.Connect(this.cboServers.SelectedItem.ToString(),this.txtUser.Text,this.txtPassword.Text);
foreach(SQLDMO.Database db in srv.Databases)
{
if(db.Name!=null)
this.cboDatabase.Items.Add(db.Name);
}
B. 北京大碼女裝哪有賣,最好是實體店。
我知道西單 明珠 忘記是幾層了 全是大碼的衣服我上次想進去看看 人家一把把我推出來 說沒我能穿的 - -可以去看看
C. 春裝都是指那些啊女裝
你最好到 淘寶熱銷女裝要好貨買,裡面的都些最火暴熱銷的商品 <a href="http://wenwen.soso.com/z/urlalertpage.e?sp=shttp%3a%2f%2fwww.yaohaohuo.com" target="_blank">http://www.yaohaohuo.com</a> 很方便查找的