Dim res,cmd,sql
Dim user_name,temp
Set Res=createobject("adodb.recordset")
Set Cmd=createobject("adodb.command")
Cmd.activeconnection="Provider=SQLOLEDB.1;Password=;Persist Security Info=True;User ID=;Initial Catalog=;Data Source="
sql="select * from table"
Cmd.CommandText = sql
Set res = Cmd.Execute()
Set res = nothing
Set Cmd= nothing
oracle的没有,这个是sql server的,应该改一下连接的设定就可以拉~