473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to connect Access to SQL Server (which engine?)

Hi everyone

I was asked to create an access database and connect it to SQL Server.

My boss mentions something about choosing the right engine?

Of course (from my point of view) I have no idea what is all about can someone explain me what is all about (basic info) or send me some articles about it?

Many thanks in advance
Emil
Jan 15 '08 #1
3 22299
Jim Doherty
897 Expert 512MB
Hi everyone

I was asked to create an access database and connect it to SQL Server.

My boss mentions something about choosing the right engine?

Of course (from my point of view) I have no idea what is all about can someone explain me what is all about (basic info) or send me some articles about it?

Many thanks in advance
Emil
In short (and there are lots of references on the web that can go into much more detail than I need to provide here so this is an overview basically) you generally have two choices with Access interaction with SQL Server.

Microsoft Access has two file extension formats namely the .MDB file and the .ADP Project file.

The MDB format uses the client based JET database engine and a has a query 'passthrough' capability that is to say, using ODBC you can communicate with SQL server and write transact SQL script language to do what you require ie create delete, retrieve table data either via scripting or by linking tables directly to the database window of the mdb format (where they are represented by a globe icon when so linked).

The MDB file format allows for the creation of local tables on the client within the MDB file itself. The MDB format has been the standard access format since the inception of the access program and uses DAO and/or ADO object libraries for controlling objects and recordsets.

The ADP project file came 'after' the mdb format and was heavily promoted (prior to Acc2007) for interaction with SQL server. It exposes stored procedures and views directly within the Access interface and connects to SQL server using UDL (Universal DataLink). You do not create local tables within this format the main purpose of it is to communicate directly with the server and as such, you do not need to use the client machine based JET engine in this scenario given the workflow is to process your information server side as opposed to client side thereby reducing network traffic. You can handle datasets using ADO on the client machine.

Your Access screen forms can bind directly to 'views' (query equivalents) or parametised 'stored procedures' which are the most efficient method of transacting SQL server data because they are precompiled on the server and when written optimally return only the data you need to the application side.

Your choice of which format you use is a matter for you and largely depends on your requirements. In either case you can raise reports and to all intents and purposes functionally achieve most of what you require from either format. (I personally prefer the ADP format for interacting with SQL server data because of the prebuilt dedicated easies within that format but don't be tainted by that.)

Hopefully this gives you a little something to get started with. Googling can find much what you need to know ie typically searches like : 'DAO versus ADO' or 'Stored procedures versus views' or 'MDB versus ADP' and so on.

Jim :)
Jan 15 '08 #2
Delerna
1,134 Expert 1GB
This is very basic info so google anything you need further help on.

To connect an access database to SQL Server
1) You need to create an ODBC link to SQLServer on the computers that will be using your access database. You need to provide the network name of your SQL server and you will need to enter a SQL server authorized userID and password when you you create it. Don't forget to test the connection at the end of the ODBC creation.

2)Once you have the ODBC created you then open the access database, go to the tables tab and right click on an empty portion of the window. Then you select "link tables" change the "files of type" dropdown to ODBC databases and choose the ODBC link you created in step 1. Then you just select the SQL server tables/views you want to link to and press OK

3) The access database can now use those links as though they were its own

Again, this is the process without any detail so google for more indepth info. Judging from your post your boss is expecting a lot from your present knowledge so I wish you luck
Jan 16 '08 #3
Thanks very much for the information it really helps to understand the basics :) I will have a go with it hopefully soon.
Jan 16 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: ajikoe | last post by:
How can python connect to server which use SSH protocol? Is it easy since my python has to run third party vendor, write data, read data inside the server (supercomputer). Any suggestion? ...
1
by: Linda Lee | last post by:
I purchased Visual Basic .NET version 2003 Standard I first try to connect Visual Basic .NET 2003 Standard to SQL Server 2000 Personal edition. When I go into Visual Basic .NET under Server...
1
by: Leon | last post by:
Hi, I am trying to find out what are the big differences between access database Jet engine and SQL Server? If I have serveral web applications (same content different copies) running as different...
1
by: MSK | last post by:
Hi, I am a newbie to .NET/Networking if I develop a project in 1. VB.NET + SQL server database 2. ASP.NET + SQL server database 3. .NET ( vb or asp) + Access database
0
by: SteveBark | last post by:
Can anyone point me in the right direction as to what control structure I should put in place for the following requirement. I have an Access Server which I have 30 modems connected to. I need to...
2
9815402440
by: 9815402440 | last post by:
hi i want to connect access database which is on remote server (web server). can anybody please tell how to do this? thanx in advance. manpreet singh dhillon hoshiarpur
6
9815402440
by: 9815402440 | last post by:
hi i have a ms access database which is on web server (ftp://www.abc.com) . i want to connect this database using ado in vb6. please help regards manpreet singh dhillon hoshiarpur
1
9815402440
by: 9815402440 | last post by:
Hi. I re-posted this question 5-6 days ago, but nobody answered. In the first thread, a few friends suggested some solutions, but my problem still persists. I have a database which is on...
5
by: Joel Phelan | last post by:
I am getting the below error when attempting to run a php script on my server which accesses a mysql table I have created in an existing database. I can connect to the database table via the MySQL...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.