I want to insert into a newly created TABLE2, the email field in TABLE1.
This is a sql database.
Doesn't seem to work. Am I making this more complex then necessary?
I appreciate your help.
Code:set conndatabase = server.CreateObject("adodb.connection") conndatabase.open application("connectionstring") sql = "select email from TABLE1 set rs = server.createobject("adodb.recordset") set rs = conndatabase.execute(sql) 'get file data as recordset do until rs.eof If rs("email") <> "" Then email = replace(rs("email"),"'","`") End if sql = "insert into TABLE2(email)values (" &_ "'" & email & "')" conndatabase.execute(sql) rs.movenext loop Response.Write "done"


(right side on this reply ) and agree


Comments on this post