On 31 Mar 2005 17:51:09 -0800,
justin.parry-(E-Mail Removed) (JPO) wrote:
¤ Hi there,
¤
¤ I'm trying to use MSAccess as a "container" to move data around from
¤ one MS-SQL server DB to another. This is basically already a design
¤ decision that has been made for a lot of reasons and can't be changed
¤ by me.
¤
You can probably do this directly without using a DataSet:
Function ImportSQLServerToAccess() As Boolean
Dim AccessConn As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;"
& _
"Data Source=e:\My Documents\db1.mdb")
AccessConn.Open()
Dim AccessCommand As New System.Data.OleDb.OleDbCommand("SELECT * INTO Orders FROM [Orders]
IN '' [ODBC;Driver={SQL Server};Server=(local);Database=Northwind;Trusted_Connection=yes];",
AccessConn)
AccessCommand.ExecuteNonQuery()
AccessConn.Close()
End Function
Paul
~~~~
Microsoft MVP (Visual Basic)