I downloaded and installed SSRS on my local computer.
When I get to the database portion > Change database > Create a new report server database > Next > Servername is set to my PC name so I click on 'Test Connection' but it fails.
What am I doing wrong?
Related
I have Microsoft SQL Server Report Builder 3.0 that I use from SQL Server Reporting Services 2012. My machine has 64 bit Windows 7. I am able to use report builder fine when I connect to SQL Server DB. Now I want to connect to a MySQL DB (version 5.1.73).
What I have done so far:
1) I have installed 32-bit version of "MySQL ODBC Connector Unicode 5.3.8". I have installed 32-bit version as the Report Builder is a 32 bit application and so needs 32-bit version.
2) Then I have added entry for the MySQL DB in the "System DSN" by selecting the "MySQL ODBC 5.3 Unicode Driver" that i had installed. As my machine is 64 bit, I have added this entry in "System DSN" of "ODBC Data Source Administrator" located at C:\Windows\SysWOW64\odbcad32.exe
3) Then from report builder I am trying to create new Data Set and a new data source connection to this data set. I am selecting connection type as "ODBC" and click on "Build".
4) In "Connection Properties" window I select "Use user or system data source name:" and picking the DSN name that I have added in the "System DSN" tab of "ODBC Data Source Administrator".
5) After I click "Test Connection" it shows "Test connection succeeded".
6) When I click OK on the success message and "Connection Properties" window I come to "Data Source Properties" and see "Connection string:" is set to "Dsn=MySQLforCAD_UAT". MySQLforCAD_UAT is the DSN name I had entered in "System DSN" of "ODBC Data Source Administrator".
The problem: When I click on "Test Connection" from this window, I get error as
What I have tried so far: I have tried selecting "Use connection string" instead of "Use user or system data source name:" and tried few combinations of Dsn=MySQLforCAD_UAT;trusted_connection=Yes
Dsn=MySQLforCAD_UAT;description=<DSN description>;server=<DB Server IP>;uid=<DB user id>;database=<database name>;port=3306
My Questions:
1) Why is report builder saying connection succeeded at one place and failure at the other? How can I correct this so I can connect to MySQL DB?
2) I don't have admin rights on my machine and the "System DSN" entries need admin access to be able to edit/add it. Could this be causing the problem in case if admin access is needed even to use the details I have added in "System DSN" (with help of local admin)
I used a different approach by creating a linked server. To do it, I followed instructions from this link. Thank you to the author (I couldn't find a name there)
I am using Microsoft SQL Server Report Builder 3.0. And I have remote Linux Server(with certain IP) that have MySQL database. I want connect this MySQL database from Report Builder (in my PC), So that I can create some reports about it. How can i do that? Please help and Thanks.
First, you need to download and install (32-bit or 64-bit) appropriate MySQL connector.
MySQL ODBC connector
After installation, you need to create ODBC Data Source Name (DSN) on this way:
Open Control Panel -> Administrative Tools -> ODBC Data Sources (32-bit or 64-bit, depending of installed connector)
Choose System DSN tab and click on Add
In dialog window, choose installed connector for MySQL
In new dialog window populate Data source name field with descriptive name, fill MySQL server address and port (IP address or server network name) and fill credentials that have enough permissions to MySQL server. Catalog field is optional field. Test the connection.
Open Microsoft Report Builder 3.0, and create new report. While creating dataset, you need to choose data source. Click New Data Source (or just New) and in the dialog window for Connection type, choose ODBC and in the Connection string choose Build option.
In new dialog window, in Data source specification section choose your DSN that you created in stages 2, 3 and 4 and test connection.
Voila :)
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.
I'm trying to make a connection to MySQL using Excel. I'm successfully able to connect via Oracle SQL developer, but i'm having trouble connecting via Excel using same credentials.
I've installed 'mysql-connector-odbc-5.2.5-winx64.msi' on my machine. Then i try to make a 'Data Source (ODBC)' connection from control panel. Then i click on Add > MySQL ODBC 5.2 Unicode Driver > Data Source Configuration Tab. On this tab i've entered everything except 'Named Pipe'. Not sure what this is. Also, i've entered all same credentials from Oracle SQL Developer, except 'Service Name'. Not sure where to enter this.
Any help would be appreciated.
Where is your server located? Why not use TCP/IP?
Named pipes is for SQL Server and within the physical (virtual) machine. Not between peers (client and host).
Yesterday my database was connected perfectly.
We have installed Windows Server 2008 R2 on our server and the I have added the user to the client PC name SMTECH5 with user jangid
Now my database is not connecting using windows authentication.
only the master database is connecting.
Here's the the error:
Cannot connect to SMTECH5\COLLEGEERP.
Cannot open user default database. Login failed.
Login failed for user 'SMTECH\jangid'. (Microsoft SQL Server, Error: 4064)
If you go to enterprise manager as a different user, go to the security, logins node and select the user - then change the default database to master.
That should sort it.
The reason is because the default database has been removed (look comment on the question).
You have to Open Sql Server Management Studio, connect to the database, then open Security -> Logins-> right click on the account jangid -> Properties: on the bottom of the window you have to change the default database to the available one, or master.
Try this in SQL Server Management Studio.
1: Open 'Connect to Server' popup
2: Select 'Options >>'
3: Change the value in the dropdown 'Connect to database' from <default> to master.