MSSQL connection issue
My question is what format I should put this in when I'm populating the username field as part of setting up the connection.
I've tried domain\user, user\domain, domain/user, user/domain and user@domain but none of them work.
I know the login works, as I can connect via freetds using the username of domain\user.
Any suggestions?
Take a look at following discussion thread. May you find appropriate solution:
MySQL ConnectionString Help
Hi,
Take a look at following discussion thread. May you find appropriate solution:
MySQL ConnectionString Help
Not sure why that would help, it's for MySQL and I'm looking for a solution for MSSQL....
I had to add a network password for the server specifying the user name as(HQ\user).
hth
Network type: Microsoft SQL Server (named pipe)
Hostname/IP: ANSGAR-PC\SQLEXPRESS
Another MSSQL instance is running on a remote server, and I connect to its IP via TCP/IP:
Network type: Microsoft SQL Server (TCP/IP)
Hostname/IP: x.x.x.x
I've found a solution for me now to connect HeidiSQL with MS SQL Servers via TCP/IP and with a domain user (let's say "my-domain\my-user"). Assuming your PC is in the same domain as the database server follow these steps:
First, grant the domain user (the one you want to use for the SQL Server connection!) permissions for the HeidiSQL application folder, so HeidiSQL can be executed by the domain user.
Now locate heidisql.exe, hold shift key and right click the application. The shift key will extend the context menu, so you will see "Run as different user" in the menu. Use this menu entry to execute HeidiSQL as "my-domain\my-user".
In Heidi's connection dialog choose connection type "Microsoft SQL Server TCP/IP", enter the hostname (or "<hostname>\SQLEXPRESS") and now enable the option "Windows authentication".
Done!
You should now be able to connect.
Hope this helps.
Chris
Please login to leave a reply, or register at first.