473,508 Members | 2,233 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

93 New Member
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 22301
Jim Doherty
897 Recognized Expert Contributor
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 Recognized Expert Top Contributor
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
emsik1001
93 New Member
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
3783
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
8129
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
2187
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
2541
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
1262
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
1843
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
5014
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
1082
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
8881
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...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.