P
Paul Clement
¤ If you have got a raw clipboard from your code somewhere, it might help.
¤ Otherwise i'll mess with it later on myself.
¤ Good to know that (possibly) INSERT INTO can handle the db name.
¤
Below is an example that operates between SQL Server and Excel. The column names are assumed to
match:
INSERT INTO [ODBC;Driver={SQL
Server};Server=(local);Database=Northwind;Trusted_Connection=yes].[Orders2] SELECT * FROM [Orders$];
Below is another example (Access and Excel) that uses column names:
INSERT INTO [Data] (Col1, Col2, Col3, Col4) SELECT F1, F2, F3, F4 from [Excel 8.0;DATABASE=E:\My
Documents\Book10.xls;HDR=No;IMEX=1].[Sheet1$];
Paul
~~~~
Microsoft MVP (Visual Basic)
¤ Otherwise i'll mess with it later on myself.
¤ Good to know that (possibly) INSERT INTO can handle the db name.
¤
Below is an example that operates between SQL Server and Excel. The column names are assumed to
match:
INSERT INTO [ODBC;Driver={SQL
Server};Server=(local);Database=Northwind;Trusted_Connection=yes].[Orders2] SELECT * FROM [Orders$];
Below is another example (Access and Excel) that uses column names:
INSERT INTO [Data] (Col1, Col2, Col3, Col4) SELECT F1, F2, F3, F4 from [Excel 8.0;DATABASE=E:\My
Documents\Book10.xls;HDR=No;IMEX=1].[Sheet1$];
Paul
~~~~
Microsoft MVP (Visual Basic)