<% ' Define your sql info here strSQLDSN = "xxxx" strSQLUsername = "sa" strSQLPassword = ""
' This is where we connect to our sql server Set adoConn = Server.CreateObject("ADODB.Connection") ConnectionString = "dsn=" & strSQLDSN & ";uid=" & strSQLUsername & ";pwd=" & strSQLPassword & "" adoConn.Open ConnectionString Set adoRS = Server.CreateObject("ADODB.Recordset")
' now we will just difine a couple things showblank = " " shownull = "-null-"
If Request.QueryString("action") = "del" Then Delete_Data Else If Request.QueryString("table") <> "" Then ' A table has been selected Page_Head Display_Table_Names If Request.QueryString("msg") = "deleted" Then Response.Write("<p><br></p>") Response.Write("<font color=""#FF0000""><b>成功删除数据</b></font>") Else Response.Write("<p><br></p>") End If Display_Table_Info Else ' No table has been selected. Page_Head Display_Table_Names End If End If