the below is my part of
set cn = Server.CreateOb ject("ADODB.Con nection")
strCS = "Provider=Syste m.Data.SqlClien t; Data Source=" & _
Server.MapPath( "management.mdb ")& ";"
cn.open strCS
cn.Execute "INSERT INTO contract_covera ge ([coverage_id], [contract_covera ge]) VALUES (1111,'hi')"
cn.close
when executed the error "OBject required:'serve r'" occurs in the first line. I am not sure why this occurs.Can please anyone help me?
set cn = Server.CreateOb ject("ADODB.Con nection")
strCS = "Provider=Syste m.Data.SqlClien t; Data Source=" & _
Server.MapPath( "management.mdb ")& ";"
cn.open strCS
cn.Execute "INSERT INTO contract_covera ge ([coverage_id], [contract_covera ge]) VALUES (1111,'hi')"
cn.close
when executed the error "OBject required:'serve r'" occurs in the first line. I am not sure why this occurs.Can please anyone help me?
Comment