I am trying to connect to a Microsoft SQL Server database through Oracle SQL Developer (version 4.2), after adding 3rd part JTDS jar 1.3 version.
After adding the connection details under the SQL Server tab, I am getting this error while retrieving database:
Error: the target database is in an availability group and is currently accessible for connections when application intent is set to read only.
Where and how to add application intent?
I am unable to see any advanced connection properties button which are there in Microsoft SQL Server Management Studio in which I am able to connect via setting applicationintent=readonly.
Thanks.
Related
I'm using Advanced Installer Architect 17.5 to create an .exe setup file. During my installation process, I need to run some SQL Server queries.
When it comes to creating a SQL connection, I could not find the right configuration to help me pass the connectivity test.
I've tried many different scenarios, I've used SQL Server or SQL Server Native Client 10.0 to connect to the database. I've also used Windows authentication mode (Trusted Connection/Impersonate user) or database logins, but all of them lead to an error
Failed to establish connection
in the test process.
Can somebody point out what is my error in this process?
I've brought screen shot for details. Please not I've also disabled Impersonate User and tried to login but all of them failed.
I've used many configurations for Server parameter such as . or .\ServerName or local.
I've also tried SQL Server 2008 and SQL Server 2017. Using the same parameters I can connect to server using SQL Server Management Studio.
I would try a couple of things first (If you haven't done them already):
Make sure your server is configured to allow remote connections. You can check this in SQL Management Studio, right-click on your server, click 'Properties' and go to the 'Connections' section.
Make sure the ODBC driver to connect to SQL Server is installed. You can get it from here -> https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver15
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.
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.
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.
I already have SQL Server Enterprise 2012 on my PC and the service that is running is MSSSQLSERVER (found on SQL Server Configuration manager).
I am trying to attach a database which requires SQL Server Express!
I downloaded SQLEXPR_x64_ENU and installed it, unfortunately SQLEXPRESS is not shown in my Configuration manager.
What shall I do to attach this database?
The attempts I've done:
First I tried with SQL Server Management Studio: while attaching gives this problem message:
An error occurred when attaching the database(s). Click the hyperlink in the message column for details.
and the progress box shows:
Error occurred.
While I try to add a data connection to the database in VS2012 I receive these errors:
If I use Data Source "Microsoft SQL Server" I receive this message:
The user instance login flag is not supported on this version of SQL Server. The connection will be closed.
If I use Data Source "Microsoft SQL Server Database File" and I browse the database file, I get this error message:
A network related or instance specific error occurred while establishing oa connection to sql server. the server was not found or was not accessible. verify that the instance name is correct and that sql server is configured to allow remote connections. (provider: Sql network interface, error 52 - unable to locate a local database runtime installation. verify that SQL Server Express is properly installed ant that the local database runtime feature is enabled)
As you see SQL Server Express is required.
If you correctly installed SQL Express on a laptop that already had the MSDN developer version, you should see two instances in the services.
MSSQLSERVER - developer version
SQLEXPRESS - express version
SQL Express does not come with services like the SQL Server agent. But it should be listed as the database engine SQL SERVER (SQLEXPRESS) under the configuration manager, SQL Server Services.
Make sure this service is started as well as the Browser service. Under network configuration, make sure TCP/IP is enabled. Under client protocols make sure TCP/IP is enabled.
Since you have the development version of SQL Server, you can connect and manager the express instance like the default instance. Just use your SSMS query window with the correct TSQL.
Here is a link on my blog on how to create a database for attach.
http://craftydba.com/?p=1753
Please respond back if you still have issues with a screen shot or two of the settings I just discussed.