K
Kate
I am trying to make a program with ADO. I want to add
data from Access into the table on SQL Server.
I wrote the code like the below.
strCn="Provider=SQLOLEDB;Data Source=Server;Initial
Catalog=database;User ID=userid;Password=pwd;"
strSql="INSERT INTO table(field1,field2) VALUES
('access','u.s.') "
Set cn = New ADODB.Connection
cn.ConnectionString = strCn
cn.open
・
・
It worked fine.
But what I want to do is to add part of the data in the
table of Access into the table of SQL Server.
How should I write INSERT statment ? I need to use ADO.
Can anyone help ?
Kate
data from Access into the table on SQL Server.
I wrote the code like the below.
strCn="Provider=SQLOLEDB;Data Source=Server;Initial
Catalog=database;User ID=userid;Password=pwd;"
strSql="INSERT INTO table(field1,field2) VALUES
('access','u.s.') "
Set cn = New ADODB.Connection
cn.ConnectionString = strCn
cn.open
・
・
It worked fine.
But what I want to do is to add part of the data in the
table of Access into the table of SQL Server.
How should I write INSERT statment ? I need to use ADO.
Can anyone help ?
Kate