Set Conn=Server.CreateObject("ADODB.Connection") Conn.open "Provider=MSDAORA.1;Data Source=CS_TEST.world;User Id=trnusr;Password=trnusr0515" SQL = "Select store_cd, store_kor_nm from MSTADM.CSMST09TB" Set Rs = Server.CreateObject("ADODB.Recordset"") set rs = createobject("adodb.recordset"") set rsCmd = createobject("adodb.Command"") set rsCODE = createobject("adodb.Parameter"") rsCmd.ActiveConnection = conn.connectionstring <==== here!!!! rsCmd.CommandType = 1 rsCmd.CommandText = SQL set rs = rsCmd.execute set rsCmd = nothing set rsCODE = nothing If conn.errors.count = 0 Then Response.Write("OK") else Response.Write(conn.errors(0).description) Response.Write(conn.connectionstring) End If
rsCmd.ActiveConnection = conn.connectionstring
rsCmd.ActiveConnection = conn
Quote:I want to make environment for development. So Copy to local pc from Real-Sever Source. But The Source is not working at local pc. => rsCmd.ActiveConnection = conn.connectionstring (Original) Sot I repaired it. ( rsCmd.ActiveConnection = conn ) And then it's working. I want to know the reason.
ActiveConnection
Connection
conn.connectionstring
string
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)