I have installed the trial version of devart sql-server driver for dbexpress. But I have little Idea how to set-up the driver properties in order to connect. I want to connect to the SqlServer express instance on my pc, with windows authorization but I cannot figure out how to set the parameters in the TSqlConnection component. I assume hostname is the name of the server, but how do I set the authorization mode? When I activate the connection it keeps asking me with username and password. Sorry maybe I am asking something obvious but please help me to start up with my SqL server connection. Thanks
Related
Hi,
I am trying to connect Azure sql database from Access database . However its giving me the following error.
When I try with the same credential from SSMS its connects perfect however, can't connect through ODBC.
Can anyone had the same experience or anyone has any input to resolve this issue?
Thanks in advance!
You need to install ODBC driver 17 for SQL Server. You need to restart computer after installing the driver or the connection won't work. Create a Machine ODBC DSN using this driver.
Provide now the Azure SQL server name:
Use SQL authentication.
On the next screen specify the database name (catalog).
Make sure you set Encrypt=True
I searched through all threads on the web available, but none could help me.
I am trying to connect to SQL Server engine from SQL Developer. In order to do that I enabled Named Pipes and TCP/IP from SQL Configuration Manager.
Then I tried different drivers:
I tried Microsoft JDBC driver for SQL Server - I cannot choose in connection manager SQL Server database type, so it does not work..
I tried jTDS driver instead, and it worked - I can choose SQL Server database type, but then all I get is an error informing that it cannot connect to Microsoft SQL Server on localhost (I tried localhost, name of my computer, none of which worked).
Is there anything more I can do?
EDIT
This is what I have so far:
SECOND EDIT
I had more problems:
With error saying
Status: Failur-I/O Error: SSO Failed: Native SSPI library not loaded. Check the java.library.path system property
Using windows authentication, I still got asked for username and password.
(All details and solutions in my answer below)
We only support the jTDS driver for SQL Server and Sybase ASE connections, so that's the way to go.
After that, it's up to you to get a correct connection string to your SQL Server system.
Make sure you have the right port in addition to your 'localhost' network location for your SQL Server instance.
This is using version 19.1 of SQL Developer to connect to a SQL2012 instance overseas..
Actually there were more problems, which I'll post here along with solutions:
In order to ba able to connect SQL Server database type from SQL developer it is needed to install jTDS driver, as already mentioned. Other types are not supported by SQL Developer.
Next thing was to configure with SQL Configuration Manager (the easiest way IMO) SQL Server to listen on IP port 1433, not dynamic, as was previously set. In order to do that in configuration manager I had to go to SQL Server Network Configuration and make appropriate changes. More here.
Next I had problem:
Status: Failur-I/O Error: SSO Failed: Native SSPI library not loaded. Check the java.library.path system property
Which was the fault of missing file, solution was placing file ntlmauth.dll to the /jdk/bin in SQL Developer directory.
I chose Windows authentication, which apparently is not supported by jTDS, so I needed to create user in SQL Server, which I use to connect SQL Server from SQL Developer.
After all that, I had it working.
I am trying to connect to a remote SQL database.
I have the access and the sql server is configured for remote login.
I can login to the server from another machine (B) but not from my machine (A).
Both the machines (A and B) are on same domain. None have their IP white-listed.
In short, I do not think there is an issue on sql server side.
On my side,
I tried modifying DTC and firewall properties. (Not sure if the modifications are correct).
Could anybody please help.
Are you trying to connect through software? You said "SQL Server" so I'll assume you're talking about using SSMS to connect to a server?
You said that you can login to the SQL server from the box that the server is on but not from a remote computer. This sounds like a permissions problem to me.
Is the account you created setup for Windows authentication? Should you be using a local SQL server account instead?
Some more information could help everyone troubleshoot.
you set blind address in the sql server config?
I am trying to connect to one of my MS SQL Server databases with the Filemaker Pro ODBC driver. I am using the database service. However, whenever I try to connect to my database it sends either an error that it can't connect to the datasource or an error that the username or password is incorrect. I know the credentials I am using are correct because I can connect to my Jetbrains IDE and to the mssql library in node.js with the same credentials. Does anyone know what the problem could be? My database is running on Azure. Do any setting need to be changed in the driver based on using Azure that could cause the problem?
I've been looking all over the internet for an answer, and I didn't find anything.
I am trying på make a connection between Visual Studio 2010 Ultimate and SQL Server Management Studio. I just made a small program just to see if the connection works.
Everytime I'm trying to connect, VS throws an ODBCexception.
"ERROR [HY000] [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server
on 'localhost' (10061)"
This is my connectionstring:
DRIVER={MySQL ODBC 3.51 Driver};Data Source=MY-USERNAME\\SQLEXPRESS;Initial Catalog=MY-DATABASE;Integrated Security=True
This connection string was copied from a data connection I've made inside VS.
Do any one have the magic solution???
Please and thank you! :)
Best regards!
Right now, you're mixing the MySQL driver (DRIVER={MySQL ODBC 3.51 Driver}) with a Microsoft SQL Server Express server name (Data Source=MY-USERNAME\\SQLEXPRESS;) - which one do you really want to connect to??
If you want to connect to SQL Server Express (which comes bundled with Visual Studio), you need to use the native .NET SQL client (and not the ODBC stuff).
In that case, your connection string would be something like:
server=YourMachine\\SQLEXPRESS;Database=MYDATABASE;Integrated Security=True
or something similar - see ConnectionStrings.com for tons of samples.
In this case, you should use classes like SqlConnection, SqlCommand, SqlDataReader from the System.Data.SqlClient namespace in your application.
This question is old but here is to guide anyone who had a problem like mine. In setting up Diafaan SMS server, i had the same problem. The problem was in the syntax. Note that in declaring the Server, Database, User and Password do not use quotes. That is why the error says 'localhost' remove all the single quotes from your connection string.
Driver={MySQL ODBC 5.1 Driver};SERVER=localhost;DATABASE= yourdatabase;User= root;Password = yourpassword;
Make sure your 3306 port is not blocked even if you are connecting to a remote MySql database. I got into same issue and it resolved once we opened the 3306 port.