Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

[RESOLVED] RC6 cConnection.CreateTableFromADORs with ASP

$
0
0
Hello,

I´m trying to use RC6 CreateTableFromADORs in a very simple page, reading from a SQLServer 2019 database, but always get a Type Mismatch error:

Code:

set aConn = Server.CreateObject("ADODB.Connection")
set rConn = Server.CreateObject("RC6.cConnection")

aConn.open "Provider=SQLNCLI11;Server=localhost;Database=xxx;Uid=xxx;Pwd=xxx"
rConn.OpenDB("E:\mysqlite.db3")       
               
rConn.CreateTableFromADORs rConn, "table2", aConn.execute("Select * From table1")

The error message is:

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'rConn.CreateTableFromADORs'
/testcreate.asp, line 8

What am I missing here?

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>