SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


MS Access front end to SQL server 2008R2 backend


MS Access front end to SQL server 2008R2 backend

Author
Message
frank.oconnor
frank.oconnor
SSC Rookie
SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)

Group: General Forum Members
Points: 26 Visits: 5
Hello,

We use MS Access 2010 to obtain data from our Sybase\SQL anywhere database.
The name of this database is called "e2i".


We are moving to SQL server 2008 R2 and have converted our database to work on the server.
The name of our this database has been called "Radan".

I have setup a DSN connection on my client to connect to the "Radan" database. The tests show they are successful.

When I go to run MS Access to connect to the "Radan" database to extract the data I get the following message I am presented with SQL server login and must enter loginID and password.

After I enter the login credentials I get the following message:

"Could not execute query, could not find linked tables... invalid object name".

I then use Linked Table Manager but again the SQL server login appears and the username \ password must be entered for each dbo.

Is this the correct way to get MS access frontend to work with the new SQL server database?

Thanks,
Frank
Andrew Kernodle
Andrew Kernodle
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1386 Visits: 8135
Hello there! I believe the solution to your problem should be in the External Data tab; use the ODBC Database option, just a bit over from the Linked Table Manager. You should get a menu with two options; select "Link to the data source by creating a linked table" (or, if you just need a copy of the data and not the ability to modify the SQL tables from Access, use the first option). In the new window that appears after you hit OK, use the Machine Data Source tab, which should have a list of DSNs on your system; pick the one you created for the database out of the list and hit OK, and you should get a list of all of the tables in your SQL Server database. Click each one that you'd like to link into Access and hit OK, and that should get everything imported.

Keep in mind that the schema names from SQL Server will be preserved (so anything in the dbo schema will be dbo.tablename, for example), so you may have to do some renaming if you have existing procedures that reference SQL tables. Also, if you're creating a copy of the table rather than linking directly to the table, you'll have to re-do the copy each time you need a fresh version; Access unfortunately doesn't have anything to make routine copies, to my knowledge.

- :-D
frank.oconnor
frank.oconnor
SSC Rookie
SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)

Group: General Forum Members
Points: 26 Visits: 5
Thanks for your reply.

When I follow your steps the following error appears:

Access database engine could not find the object 2DBO_syscurconfigs". Make sure object exists and that you spell the name correctly. If it not a local object check your connection.

Is the import\export wizard of any use for linking to my Access db?

My Access database was created in Visual Basic to extract data from the backend database.

Thanks.
Andrew Kernodle
Andrew Kernodle
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1386 Visits: 8135
Hm, that's unusual. From what I can tell, syscurconfigs refers to a compatibility view used for backwards compatibility with SQL Server 2000 (source: http://msdn.microsoft.com/en-us/library/ms177502.aspx). Seems as though it's dynamically constructed when a query is fired at the view, so Access probably can't handle the fact that it won't exist when you're trying to link to it, though I'm not certain if part of your application will need to reach that view or not.

The import/export wizard in SQL Server could well handle your problem as well, though. There is an issue with it in that you wouldn't have real-time data from your SQL Server database; however, if you only need occasional imports and processing of that data, it would definitely work. You could use the wizard to set up a SSIS job to export data from SQL Server into Access, then schedule that package to run at regular intervals, if that's a workable solution in your environment.

- :-D
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search