我有這段代碼執行時,讓我:ASP VBScript運行時錯誤:對象不支持此屬性或方法
Microsoft VBScript runtime error '800a01a8'
Object required: 'be01v-sat'
/CFIDE/csv.asp, line 90
的代碼是:
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
dim server,username,password,database,table
server = Request.Form("server")
username = Request.Form("username")
password = Request.Form("password")
database = Request.Form("database")
table = Request.Form("table")
dim RS1
set RS1 = Server.CreateObject("ADODB.Connection")
RS1.Open "SELECT * FROM " & table & "", "server=" & server & ";UID=" & username & ";PWD=" & password & ";database=" & database & ";Provider=SQLOLEDB", 0, 1
Response.ContentType = "text/csv"
Response.AddHeader "Content-Disposition", "attachment;filename=export.csv"
Write_CSV_From_Recordset RS1
End If
做什麼我錯了,得到那個錯誤?謝謝!
'be01v-SAT' 是通過POST發送SQL Server名稱。 – bsteo 2012-03-08 09:39:10