In my asp.net webpage I am loading data from an .accdb MS Access database that has tables that are linked to another .mdb database.
My website works fine on my own dev machine.
When I upload it to the webserver, the path to the linked database becomes incorrect. This is because Access only lets you use the Linked-Table Manager to assign full paths, and I had to use full paths to locations on my dev machine.
On my webserver, I have Visual Studio Web Express 2012, but not MS Access. How can I change the paths in the linked tables? Can I do this with Visual Studio, or is my only solution a coded one?
Well, this is a workaround.
I ended up moving the dev-db to the same network location as the production db. That way I can use it on my dev machine and in production and just change the path before uploading the accdb containing the linked tables. The paths exist in both places already.
Not really the solution I wanted, but it works just fine.
There are some coded solutions, too, that I've found.
Relinking database tables: Access, VBA
Setting Linked Database (MS Access) path without access to linked database
Setup a linked table in Access for a path which doesn't exist yet?
And a similar but different question: ms access 2000 changing linked tables without using Linked table manager
Related
I'm learning PHP and SQL using Xampp and I want to access my projects from two different computers. As I'm learning, I only work on localhost.
I got it working with PHP changing the document root variable in the httpd.conf file to my htdocs folder in OneDrive.
I've been trying to do something similar with the SQL database but everything I've tried ended up in errors in the phpMyAdmin site talking about extended functionalities not configured or SQL tables missing.
How can I access the same database, saved in a OneDrive folder, from anywhere?
Thanks!
I have created quite a large Access 2016 db. It is now ready to share with the business and needs to be put onto SharePoint. I've tried just uploading the file to a SharePoint document library, however users cannot edit the database (there is a lot of VBA code that runs SQL commands that write data input by users into the database).
Is there a way to share the database that allows users to open it from SharePoint and let the VBA write to the database/tables?
That is not possible as SharePoint isn't an SMB fileshare, neither is OneDrive, DropBox, etc.
The SMB fileshare is offered by a Windows Server or a Linux box with Samba installed.
I have a set of reports on a SSRS 2012 server and they work fine. We are moving to a new server, so I changed the server in the report property and redeployed. The reports are on the new server, but none of the shared datasets and data sources work anymore. I get this error:
Cannot create a connection to data source ' Data source for shared dataset'. (rsErrorOpeningConnection)"
All the datasets and data sources use predefined credentials. I look at the reports in Visual Studio and I can connect just fine. Can anyone tell me why deploying to a new server breaks everything?
If your data sources contain stored credentials, you need to backup the encryption key from the original server and restore it in the new one. Otherwise those shared data sources won't work. If this is the case and you know the credentials, you can edit manually all those shared data sources.
Credentials stored in embedded data sources won't work as well if you don't restore the encryption keys.
You can query the SSRS database in several ways to discover all those Shared Data Sources and embedded ones, you can find them in this site. One example could be
Listing all Data Sources and their Dependencies (reports, items, etc) in SQL Server 2008 R2
Hope this helps
I have an Access front-end database connected to various back-ends (Access, mySQL, dBase) which runs as a separate instance on each users computer. All users have Access 2007, and there are a total of 5 users for this system. Each user runs the database from their local hard-drive.
On one computer I am unable to open any of the linked tables and receive error message 'Unexpected error from external database driver (8458)'. Also, I notice that the Linked Table Manager is disabled (grayed out) when right-clicking on the table link definitions.
Oddly, if I create a blank Access database on this computer, I can create and open linked tables with no problem.
Please try the following "fix" from Microsoft if you have not yet.
Start Windows Explorer, and then browse to the Borland folder.
If you cannot locate the folder, follow these steps. NOTE: Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
Click Start, and then click Search.
Click All files and folders.
In the All or part of the file name box, type Borland.
In the Look in list, click My Computer.
Click Search.
Rename the Borland folder as BorlandOld. (For example, rename C:\Borland as C:\BorlandOld.)
i am making a project in visual basic 6 and ms-access. Its about college management system
and is a server based application. Clients can access the system in the server. But the main problem is how can i make my client use the access file located in the server computer.?? if my database file is already opened in the server computer then my clients cannot access the file in the server. Is there any another way to resolve the problem?
How can i make a database file in access so that all my clients can use it simultaneously?
Please help...
I believe you'll find your answer here.
Quoting from the MSDN article:
To prevent this behavior, you must
make sure that all users who open the
database have read, write, and create
rights for the folder in which the
database is located.
Additionally, if you are using a
security-enhanced Access database, you
must make sure that the users who open
the database also have Read permission
and Write permission on the folder
that contains the workgroup
information (.mdw) file.
I can't see any reason why clients on other computers can't open the same access database at the same time. What makes you think they can't? Can you provide more details on the problem?
That said are really sure you want be using MS Access as the DB? Why not simply use SQL Server 2008 Express? You can use either the SQL 2008 management tools to administer this DB or you can use MS Access connected to the SQL 2008 Express engine. This approach will definitely be considerable more stable and significantly faster.
Edit:
To answer your question more specifically it is possible to open an Access database exclusively which would result in your problem. Are you using ADO? What is your connection string?