I've used Microsoft SQL Server Migration Assistant for Access (SSMA) to migrate an Access database to an Azure SQL database. I use sql server authentication and the tables are linked and the credential password is stored for each table. Everything looks fine, when I open the Access database file. allt the tables have a blue arrow-globe icon to show they are linked to Azure. I can browse the tables and see the data.
But when I open the frontend Access file which points to the Access database file and relink the tables there - it gives an error for all the tables and just displays: failed. Where can I see more details about the error?
Pointing directly to the frontend Access file solved the problem.
Related
I want to convert my MySQL database to SQL Server, so that I can migrate my website into Azure.
I have two problems:
I downloaded SQL Server Migration Assistant for MySQL. I expect to see a "Connect to SQL Server" button, but there is only a "Connect to SQL Azure" button instead.
"OK" I said. "Why not convert it directly into Azure?" So I created an Azure account, and a SQL database in it. But when I tried to connect the MySQLToSQL to SQL Azure, it asks for user name, so I put my account email, "xyz#hotmail.com". It complained that "Cannot open server hotmail.com requested by the login". If I use "xyz", it complains "incorrect user name or password."
So what is my user name and password? I am totally new to Azure.
When you create a new project you specify the target database version in the Migrate To dropdown box. The default is SQL Azure. I suspect you didn't check the dropdown and created a project with the default value.
If you select another version, eg SQL Server 2016 or SQL Server 2014 you'll be able to use the Connect to SQL Server button.
I have coded a program in VB.NET which is for making proposal and printing invoices. I can connect to my VPS MySQL (Mariadb) database via my software and everything works fine (ADD/UPDATE/DELETE strings). But I also need to gather data from my database to print invoices. For making this I am using Crystal Reports XI Release 2. I need to connect Crystal Reports to my online MySQL database which is located in my VPS to get data and make the invoice ready to print.
Connection options for Crystal Reports are :
Access/Excel (DAO)
ADO.NET(XML)
Database Files
Exchange 5.5 Message Tracking Log
Exchange Message Tracking Log
Legacy Exchange
Mailbox Admin
ODBC (RDO)
Olap
OLE DB (ADO)
Microsoft Jet 4.0 OLE DB Provider
Microsoft Office 12.0 Access Database Engine
Microsoft OLE DB Provider for Analysis Service
Microsoft OLE DB Provider for Indexing Service
Microsoft OLE DB Provider for ODBC Drivers
Microsoft OLE DB Provider for Oracle
Microsoft OLE DB Provider for Search
Microsoft OLE DB Provider for SQL Server
Microsoft OLE DB Simple Provider
MSDataShape
OLE DB Provider for Microsoft Directory Service
SQL Server Native Client 11.0
Outlook/Exchange
Public Folder ACL
Public Folder Admin
Public Folder Replica
Universes
XML
I tried to connect to the VPS database in Crystal Reports with the following steps :
In Database expert menu I am selecting OLE DB (ADO) and then selecting Microsoft OLE DB Provider for SQL Server. Then it asks me Server, UserID, Password, Database. I am filling the fields but when I try to select database it shows nothing. When I leave the database field empty and click on next then it give me the following message:
Failed to open the connection.
Details: ADO Error Code:0x
Source: Microsoft OLE DB Provider for SQL Server
Description : [DBNETLIB][ConnectionOpen (Connect().]SQL Server does not exist or access denied.
SQL State:08001
Native Error: [Database Vendor Code:17]
I've solved that issue with following steps (Assuming MySQL Connector/ODBC already installed in your system) :
Add a new connection from ODBC Data Source Administrator
Select MySQL ODBC 5.3 ANSI Driver
Select TCP/IP radio button and enter your VPS server's IP address
with port number 3306
Fill User and Password field with you database username and database
password
Select your database from the drop down list
Click Test button and if everything works fine than click Ok
Select database expert under Database menu
Select ODBC (RDO) under Create New Connection menu
Select your connection and click Next
Enter your database user name and password and click Finish
Add required tables from your database by selecting the table and
clicking arrow button.
If you already created a design then open your design in Crystal Report and follow these steps:
Select Set Datasource Location under Database menu
Select ODBC (RDO) under Create New Connection menu which is located
in "Replace With" section
Select your connection and click Next
Enter your database user name and password and click Finish
Now select one of your previous tables from "Current Datasource" tab
and select the same table in "Replace With" tab then click update. Do it for all tables one by one.
Click close.
Hope this helps.
Im having trouble using the MySQL ODBC connector.
I have a MS access frontend that im trying to connect to a MySQL DB. It connects fine when running the frontend and DB on my dev machine.
I have moved the front end and DB onto the clients server. The clients assess the fornt end via a shared folder on the individual user PCs. I have set up a file DSN ODBC connection as below. When i open the front end on one of the clients PCs i get the ODBC--call failed.
How do i get the linked tables to look at the server MySQL DB considering ms access is not installed on the server. I have tried to set uo the file DSN via the users pc i.e. open linked table manager and open the File DSN get the ODBC--call failed on connect.
File DSN set up
[ODBC]
DRIVER=MySQL ODBC 5.3 Unicode Driver
UID=root
PASSWORD=root
DFLT_BIGINT_BIND_STR=1
PORT=3306
DATABASE=productionlist_be
SERVER=localhost
thanks in advance Kelly
Welcome to stack-overflow Kelly.
You are missing few points.
The MySQL database Server must be accessible by all your clients.
Either a local machine hosting MySQL server or from internet its up
to you
Must have a static IP or domain name.
Access Front-Ends should not be shared but sent to all of your clients/employees
(This way you are achieving true "multi user access" and thats the main idea behind front and back ends)
All of your client PC must have MySQL ODBC driver installed
All of your clients must have required version of Access or Access Runtime installed
Only after setting up all this, you can think about distributing your application to your clients.
Modify your File DSN replace the localhost with the MySQL Database server ip
like
SERVER=SERVER_NAME_OR_IP
Also it is best to refresh the odbc links via VBA code
you will find much help here:
How do you programmatically update a linked table in Access that will refresh data types too?
OR
Relinking database tables: Access, VBA
hope this helps to get started :)
I am trying to create an InfoPath 2010 form that does the following:
Uses an ODC file which is stored in a SharePoint 2010 data connection library (for an SQL database)
Connects to SQL Server 2008 (which resides on the same domain)
Queries a table to pull results for use in the form
It works just fine when the ODC file is stored on my C drive, but as soon as the ODC file is uploaded to the connection library and I try to modify it (or create a new ODC file) the following error message appears:
An unspecified error occurred while attempting to connect to the data source. Microsoft InfoPath supports only Microsoft SQL Server and Microsoft Access database. Check the connection to ensure it uses one of those two databases.
If I manually modify the save location of a new ODC file to the SharePoint connection library the following window appears:
But it is promptly followed by the same error message:
I'm certain SharePoint and InfoPath can accommodate this... I am just not certain why it is occurring.
Going to answer my own question. Just convert the connection to a file. In InfoPath 2010 this means Data Tab>Data Connections>Select Desired Connection>Click "Convert To Connection File"
You will then be prompted for a URL to save the file at. Easy as that...
There is a MS Access application with tables on MS SQL Server linked through ODBC. When connection is lost i receive ODBC error 3146. After connection is restored physically i still receive ODBC 3146 errors. I have to make something like a reconnect to server. How can i do this in MS Access?
I think all you need to do is refresh the table links. Are you asking how to relink the tables programmatically? Have you tried refreshing the links after being disconnnected and verified that it solves the problem? Refreshing the link in VBA would be something like
Dim db as Database
Set db = Currentdb()
db.TablesDefs(1).RefreshLink
You may have to loop thru the tables to get the index I am not sure if it will take the table name but you could try it that way first.
Where is your Access table in reference to your SQL Server? If your Access table is local and you are the only one using it then refreshing table links is sufficient. However, if the Access db lives on a server or some other shared space where many people are using it they will not be able to access the SQL tables if you are using a USER DSN. Setting up a system DSN or a dsn file will provide Access with the information it is looking for as to where the SQL tables are.