"Insert Into" SQL Server 6.5 from Access 97 using VB5? 
Author Message
 "Insert Into" SQL Server 6.5 from Access 97 using VB5?

Why don't you create a link to the SQL data table in Access?  Then you can
make a connection to the Access database, and do "INSERT SQLCorres SELECT *
FROM AccessCorres"

Is it necessary to do this procedure more than once or are you merely
upgrading?

tu

Quote:
>If I run the SQL against a ODBC connection, will something like the
>following be the way to go?,

>  Set wrkODBC = CreateWorkspace("NewODBCWorkspace", "sa", "sa", dbUseODBC)
>  Set conCIMS = wrkODBC.OpenConnection("Connection1", dbDriverPrompt)
>  s_SQL = "INSERT INTO SQLCORRES "
>  s_SQL = s_SQL & " Select AccessCORRES.* From AccessCORRES IN [MS Access
>database]"
>  conCIMS.Execute

>Any suggestions on the best way to append multiple records from a table in
>an Access database to one in a SQL Server database?  Even URLs for VB FAQs
>would be appreciated. I've checked about a dozen VB sites and have not seen
>this item covered. I hope it is feasible.



Sun, 02 Dec 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. "Insert Into" SQL Server 6.5 from Access 97 using VB5?

2. "Insert Into" SQL Server 6.5 from Access 97 using VB5?

3. Access 97 and SQL Server 6.5

4. Need help Access 97 vs SQL Server 6.5?

5. Access 97 vs SQL Server 6.5

6. Help - VB5 / SQL 6.5 / Access 97

7. Locking in VB5 and SQL Server 6.5 using stored procs

8. Using VB5 and Sql Server 6.5

9. connecting to MS SQL Server 6.5 using VB5

10. How to..Using VB5 with Sql server 6.5

11. VB5 - Access 97 - SqlServer 6.5 - non-disappearing tmp file

12. "97"-Style Toolbar OCX for VB5?

 

 
Powered by phpBB® Forum Software