Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Mar 22, 2000



Application Security Testing: An Integral Part of DevOps

How to Link an Access Database with SQL Server

I want to extract/insert data by linking one Access table with a SQL server table through VB code. So far, I am not able to to it (using ADO 2.1). Can I write a query in VB similar to:
dbo_retired_hcpc - Sql Server Table
TPARTBHCPCSecondFinder - Access table

select * from dbo_retired_hcpc h, TPARTBHCPCSecondFinder t
where T.hcpc=h.hcpc and t.carrier=h.carrier and t.maint_dt = h.maint_dt) 

Within SQL Server, you can certainly reference external tables. Take a look in SQL Enterprise Manager (whichever version you have) for instructions on how to link to an external database. Once you've got the database linked, you'll be able to do queries like you suggested in the question.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date