Cannot connect to SQL Server using Microsoft Excel Power Query - sql-server

I'm having trouble connecting to a SQL Server 2008 R2 data source using Excel 2013 Power Query.
I have created a new Power Query query, and created a new SQL Server datasource. I have specified the server name and database, but have not specified any specific query.
I am using SQL Server authentication to login to the database, and the connection is encrypted.
When I attempt to set up the connection in Excel Power Query, I get an error message: DataSource.Error:
No further error details are supplied.
I have checked that the SQL Server allows remote connections, and I have tested the SQL Login by using the sqlcmd utility to connect to the database server and database and run a basic SELECT query.
If anyone can shed any light on what I'm doing wrong, I'd be very grateful.

For anyone reading this in 2017:
If you are using Windows 7 and above, use the driver listed in the ODBC Data Sources. The only case where I had to install a client and driver, was when I wanted to connect to an oracle database.
To setup and connect to SQL server, I opened ODBC Data Sources, selected 'Add', chose the SQL server option (not native client versions) and added the server and database details where prompted. Then test the connection from ODBC data sources.
My SQL server connections usually require full TNS info all the way from server name, then database name despite the claim that it's optional.

Do you have the odbc driver?
I have run into this problem previously when I tried to connect remotely.

Related

Connecting Crystal Reports 2008 to SQL Server 2014

I am trying to connect Crystal Reports to SQL Server 2014. I have integrated security on my db which works great.
When I fire up Crystal Reports I choose from a new connection drop down OLE DB (ADO) and then Microsoft OLE DB provider for SQL Server.
After that at the connection Information I insert localhost and choose Integrated Security.
The problem is that I cannot see my database in the databases drop down list after this.
Any thoughts?
Is the localhost as a server name correct? Why can't I see my databases?
See if you can successfully connect to SQL Server through SSMS using Localhost and windows Authentication using same login you are using for Crystal.
Once you are sure about it then we can look into drivers or other possible issues.

Unable to connect to SQL Server in Hydro GeoAnalyst

I have installed Hydro GeoAnalyst 2014.2 and i have started trial and wanted to install demo project. Firstly, i must select data source type, available server and database name. I select data soruce type, then i write sql server instance name and then related combobox filled my databases. Finally, i select my database.
I use Microsoft SQL Server 2012 Express but Hydro GeoAnalyst return an error when i want to connect my database on MS SQL. Then i have installed Microsoft SQL Server 2014 Express and Hydro GeoAnalyst returned the same error:
Unable to Connect 'AYSE/SWS'. Ensure that the SQL Server exists and is running.
I have controlled my MS SQL Server 2012 and 2014 on SQL Server Management Studio and they works with no problems. I have controlled SQL Server Configuration Manager but no solution. Why do i take this error ? Is this because of express edition of SQL Server ?
Please help. Thanks in advance.
I send error picture:
If you are using SQL Server Express installed on another machine (not your local machine) make sure you have it configured for remote connections (http://blog.citrix24.com/configure-sql-express-to-accept-remote-connections/).
Also Please be aware that the vendor support email for Hydro GeoAnalyst has changed to support#waterloohydrogeologic.com. If you continue to experience difficulties contact them and they will be happy to look into the issue further.

SQL Server backend and Access frontend - ODBC Connection to SQL Server native client failed

I have a SQL Server 2008 database as a back end and Access as a front end. Is it required to have SQL Server Management Studio installed for Access to connect to the SQL database.
The SQL database is on a server not on my local machine. I just reconfigured my computer and have not installed SQL Server Management Studio yet. I was trying to open the database in Access but I get this error message saying:
ODBC Connection to SQL Server Native Client10.0 "Server name" failed.
So how can I get Access to connect to the SQL Server database without having SQL Server management studio?
Its not that you need SSMS, its that you need a driver for Access to talk to your database and SSMS installs that by default.
First install a driver, like this one and then Access should be able to connect.
Then, you need to make sure that your SQL Server instance is setup to be connected remotely. If you have other clients connecting to it, this is already set up. But make sure TCP/IP is enabled.
Finally, check your connection string.
Based on the error, I would guess that its one of the latter two problems. But trying those, perhaps you could post more information to narrow it down.

How to connect to a MS SQL database using MS Server Management Studio and ODBC

I need to connect to a MS SQL Server, using MS Management Studio, the hosting company only provided me the ODBC connection for this database, but I can see it only connecting using VPN on the Server.
My question:
- Can I connect to the DB using MS MS Management Studio through ODBC?
I usually use SQL Server Authentication or Windows Authentication.
Thanks for your time.
I don't believe that you can connect directly to the odbc connection in SSMS, although you can connect to a SQL server, and add a linked server to the odbc connection. You would open the server objects -> Linked servers -> Add
From the provider list choose Microsoft OLE DB Provider for ODBC Drivers
I think the details will vary depending on if this is a System DSN or File DSN but here's the msdn. http://msdn.microsoft.com/en-us/library/windows/desktop/ms675326(v=vs.85).aspx
Then you can query against the data source by opening a new query against your sql server and using the full four part name i.e.
SELECT * FROM ServerName.DatabaseName.SchemaName.TableName
Another option would be using VS 2012 to add a Data Connection to the ODBC data source. This would be the cleanest although it doesn't directly address the question.
Possibly. The ODBC connection will contain all the information you neeed - the server address or IP address, a user name and a password.
But there may be a firewall on your host preventing such connections.
Try it.

SQL Server Express usage with Pentaho (or any non-microsoft product)

I'm trying to connect a local SQL Server database to an ETL utility called Pentaho. Pentaho very easily connects to full versions of SQL server without issue.
I've set mixed mode authentication and created a sql server account for the sql server express instance that can be used to login through SSMS.
When I try to log in via Pentaho, I get errors about it not knowing what the server is, or the server not responding. I've tried {localhost, myip, localhost\SQLEXPRESS, myip\SQLEXPRESS, just SQLEXPRESS} as the server name (and SQLEXPRESS is the instance name).
I know I've had trouble connecting other programs to SQLEXPRESS databases in the past. Can someone tell me why it acts different than when using a full install of SQL Server and how I can get around these differences?
If SQL Server Express is on a different server, have you enabled TCP/IP protocol?

Resources