NGUAGE = VBScript % >
< HTML > < HEAD > < META NAME="GENERATOR" Content= "Microsoft Developer Studio" > < META HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312" >
< TITLE >< /TITLE > < /HEAD >
< % On Error Resume Next Dim oSQLServer Set oSQLServer = CreateObject ("SQLOLE.SQLServer")
strServer = "dep" strLogin = "sa" strPwd = ""
oSQLServer.Connect strServer,strLogin,strPwd
% >
< BODY BGCOLOR=#ffffff > 数据库列表 < SELECT NAME="Database" > < % For Each SQLDB In oSQLServer.Databases If Not SQLDB.SystemObject Then Response.Write "< OPTION VALUE= """ & SQLDB.Name & """ >" & SQLDB.Name
& " " End If Next Set oSQLServer = Nothing % > < /SELECT > < /BODY > < /HTML >
上一页 [1] [2]
|