Can we create SQL Server connection from DBVisualiser using existing SQL JDBC driver? - sql-server

I am new to DBvisualiser. I am working on private laptop, installed SQL Server Management Studio 18 and DBVisualiser. In SQL Server the connection is not encrypted and using windows authentication. TCP/IP enabled.
IN DBVisualizer I am using existing driver - JDBC
I get error
failed to login for user -***
what is missing here?

Related

How to connect to Microsoft SQL Server on a local VM?

I have a Windows 10 VM with SQL Server installed on it. I made sure, that in the Sql Server Configuration Manager the SQL Server Browser is running and the TCP/IP protocol is enabled.
I'm trying to connect to the server with Entity Framework (although I'm not sure if it's relevant) and I'm getting this error:
Cannot connect to SQL Server Browser. Ensure SQL Server Browser has been started.
That's the connection string that I'm using:
Integrated Security=SSPI; Persist Security Info=False; Initial Catalog=<database name>; Data Source=<server name>

Need help connecting Microsoft SQL Server to Microsoft Power BI

I have recently joined a new company and I have a project where I am trying to connect a Microsoft SQL Server to Power BI to automate a report and I am running into some issues. I have successfully connected the server to a SQL environment in DBeaver so I know that the host name and port number are correct.
I have not successfully created an ODBC connection for though I have tried. Using the System DSN, I have tried both the SQL Server and the ODBC Driver 17 for SQL Server and both failed connecting. With the SQL Server option, I made up a name and user the following format for the server host:port and then used my windows NT credentials on the next page and left everything else as default all the way through testing the connection. I got the below error for this one:
Microsoft SQL Server ODBC Driver Version 10.00.19041
Running connectivity tests...
Attempting connection
[Microsoft][ODBC SQL Server Driver][DBNETLIB]Invalid connection.
TESTS FAILED!
For the ODBC Driver 17 for SQL Server option, I did the same settings with defaults and I got the below error:
Microsoft ODBC Driver for SQL Server Version 17.04.0000
Running connectivity tests...
Attempting connection
[Microsoft][ODBC Driver 17 for SQL Server]SQL Server Network Interfaces: Connection string is not valid [87].
[Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired
[Microsoft][ODBC Driver 17 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
TESTS FAILED!
When I try and import the data into Power BI using the SQL Server option, and I put the host:port into the server slot and the SQL in its place, it then ask for me to sign in. I am using my windows credentials which is accurate and so I press connect and I get the below error:
"The server name provided doesn't match the server name on the sql server ssl certificate
Please contact your administrator or see the link below for more information. Alternatively,
you could change your Connection encryption settings. Would you like to continue using an
unencrypted connection?"
I am not sure how to fix this so I can run my SQL Server script in Power BI. Does anyone have any ideas?

SQL Server Exception

My requirement is simple: I have an appserver - WAS 6.1 connecting to Microsoft SQL Server 2008 R2.
I have configured data source for the SQL server using the installation scripts in linux.
When I deployed EAR and try to hit application url, I get the below error while connecting to SQL Server.
com.ibm.websphere.ce.cm.StaleConnectionException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: SQL Server did not return a response. The connection has been closed..CWWRA0010E: SQL State = 08S01, Error Code = 0
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
The setup is working for another server configuration.
After a long wait, the issue got resolved. There is nothing to do with the EAR. The SSL encryption was enabled in SQL server settings. Just disable the settings did let me establish connection from application to the SQL server.

How to create a new ODBC connection to one remote SQL Server

I'm trying to run an application that I've developped recently. This one uses an ODBC connection to browse a defined database.
I'm trying to execute this app from a remote computer. Using VMWare, I've created a new Windows 7 environment and connected on. After that I've tried to create a new System DSN, but, when I set the logins that I'm using to connect on my local SQL Server 2008 I get
Connection failed: SQLState: '28000' SQL Server Error: 18452
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed. The login
is from an untrusted domain and cannot be used with Windows
authentication.
How may I to deal with this, please?
Thanks a lot!
You will have to use SQL Server authentication to connect or add the local machine to the same domain where the server is.
http://msdn.microsoft.com/en-us/library/ms144284.aspx

Classic ASP, problem logging in to SQL Server using Windows Authentication

I failed to connect using this connection string
strConnString = "Provider=SQLOLEDB;Initial Catalog=fsw;SERVER=HARDIXP\hardi;Integrated Security=SSPI;"
Microsoft OLE DB Provider for ODBC
Drivers (0x80004005) [Microsoft][ODBC
SQL Server Driver][DBMSLPCN]SQL Server
does not exist or access denied.
I can connect fine using SQL Server Management Studio. On the "Connect to Server" dialog, I have
Server Name: HARDIXP
Authentication: Windows Authentication
After it is connected, the server looks like this
HARDIXP (SQL Server 10.0.2531 - HARDIXP\hardi)
If I don't specify the server name, the error will be
Microsoft OLE DB Provider for SQL
Server (0x80040E4D) Login failed for
user 'HARDIXP\IUSR_GEOFFREYXP'.
Note that it is trying a different user, probably because the database was first set up for Geoffrey, not Hardi.
How can I connect to my local SQL Server from this Classic ASP code?
EDIT: I am on Windows XP, IIS 5.1
Assuming this is running on windows.
The ASP process needs to be running as a windows authenticated user that has access to the
database. Just set the application pool on the website to have this identity's credentials.

Resources