How to Connect SQL Server Express 2008 to MS Access 2003 - sql-server-2008

Im trying to connect the two applications above. I've already set up the database on the SQL Server to act as the back-end for the overall application and I need MS Access 2003 to act as the front end.
I managed to do it using MS Access 2007 which was quite simple.So, when you create the database does it have to be saved as a .adp file in order to connect to the SQL Server? Or would a normal .mdb file work? From what I've read this isnt the case and you need to use a .adp file - can someone confirm this?
Thanks

Related

What is the newest SQL Server backend that MS Access 2003 can connect to?

Having troubles connecting MS Access 2003 into SQL Server 2012 back-end. Working with another team to figure out the issues. I am wondering if there is a limit as to how far forward Ms Access 2003 can go?
To my knowledge there is no version-specific limit; it really depends on what specifically you are trying to do. For example, I just successfully connected to SQL Server 2014 Express (running on Windows 7) from Access 2003 (running on Windows Server 2003) using the old "SQL Server" ODBC driver. I currently don't have ready access to a SQL Server 2016 instance, but I would expect that simply establishing such a connection would be technically possible as well.
No doubt such a connection will be unable to take advantage of some newer SQL Server features, e.g., those supported by newer ODBC drivers like "SQL Server Native Client" and its successors. However, many of those features are largely irrelevant to an Access/SQL_Server setup anyway (with the possible exception of datetime2 column support). The key point is that there is no hard limit that "Access 2003 is simply unable to connect to SQL Server version 'x' or newer.".

MS Access 2000 to MS Access 2007 migration

I have application in MS Access 2000.
It is connected to Oracle 9.2.06 database.
I have to migrate the application to MS Access 2007 and Oracle 11G.
I've created a blank .accdb file and imported all the objects from MS Access 2000 (.mdb) file, except the linked tables
While Linking MS Access 2007 with Oracle 11G database tables, i'm getting an error saying
"ODBC--call failed"
I've checked for Machine DSN, System DSN and its configured well alongwith ODBC Drivers.
Also, when i launch the application i'm getting an error as below:
"Error while connecting to '%Oracle database SID%'"
Could you please help me to resolve this issue.
Have you re-created all your ODBC links on your computer (in Administrator panel)? The ODBC is going to be different from Oracle 9.2 to 11.
you may need to import and reference libraries being used - check the Visual Basic Editor and confirm that all applicable libraries have been brought in.
The previously linked tables may have the credentials saved, or may not - you will have to check the properties of the linked table.

Migration of web application backend MS Access 2003 to MS Access 2010

I have an asp application residing on Windows server 2003 -32bit and backend for the application is MS Access 2000. When I upgrade it to MS Access 2010, it throws error: 'Unrecognized Database format'
I even tried to upgrade Access driver on server but of no luck.
What am I missing?
Make sure you have the ACE drivers installed. You said you updated the Access driver on the server but I'm not sure you actually installed the drivers that are needed for the new .accdb format.
By default, Windows only contains drivers for Jet, that allow you to use .mdb Access databases without installing anything new.
On the other hand, the new 2007/2010 Access format '.accdb needs to have the drivers installed separately.
You also need to make sure that your connection string to the database is updated:
string constr = #"Provider=Microsoft.ACE.OLEDB.12.0;Mode=16;Data Source=C:\...\mydb.accdb;user id=;password=;";
In addition to upgrading the database file itself from .mdb to .accdb you'll need to make two changes on the server:
You'll need to download and install the Access Database Engine, available here.
You'll also need to update your connection details for your ASP application. For a DSN-less connection you'll have to update your connection string to one of the formats described here. For example, an OLEDB connection string will have to be updated to Provider=Microsoft.ACE.OLEDB.12.0;.

Possible ways to connect Access application to SQL server in different server?

let's say there are a couple of tables in SQL Server. My client is using Access 2003 database at their own server. SQL Server 2008 R2 is at diff server. Their Access front end is written in VBA. I know I could let them connect to my SQL server using ADO and OLEDB provider. For this they would have to add a reference from
Tools-->References--> MS ActiveX objects 6.0 Library
And with the provided connection string:
Provider= SQLOLEDB.1; Integrated Security = SSPI; Initial catalog=DatabaseName; Data source =ServerNamethathostsSQLSeerver
Are there any other ways to let them connect to the SQL Server?
What are some better ways to do so in terms of performance?
Please share your opinions. Thanks.
In MS Access 2007 and on, the recommended way is linked tables, no references are required, it can be done through code or from the menu. Microsoft Access 2003 also supports linked tables.
More info: http://office.microsoft.com/en-us/access-help/import-or-link-access-to-sql-server-data-HA010341762.aspx

Using SQL Server specific code in Access linked to SQL Server database

I have an access file that is linked (through an ODBC connection) to a SQL Server 2008 database. I am trying to write some reports against this database. However, Access chokes when I write the select query of the report with SQL syntax specific to SQL Server that doesn't exist in access. Shouldn't this work, since it's the SQL Server engine running the queries and just sending the data back to Access to display? Is there any way to get this to work?
Need this to work on any combination of Access 2007 and 2010, and SQL Server 2005 and 2008.
Edit
Note: I cannot create a SQL Server stored procedure or function, or otherwise modify the original (SQL Server) schema in any way.
Found the answer: I need to use a "pass-through query".