Connecting Linux HammerDB cli to MS SQL Server. #439
-
Hi Steve, I cannot seem to get my Linux HammerDB CLI to connect to SQL server. I saw in a previous post about using tdbc::odbc::drivers to check that hammerdb can connect to the appropriate drivers. For me the output is empty, but I do have drivers in stalled and "isql" works perfectly fine and can connect to my SQLSERVER db. I am not sure how to debug further.
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
First step to troubleshoot is does sqlcmd work using your login id and password (note I've changed my password to 'password' in the output shown) (SQL Server is installed on RHEL8), I'm going to login and drop my existing database this way. For example:
Then make sure that the connection credentials are correct in particular linux_server, linux_authent and linux_odbc as well as the uid and password
In this example I used the GUI to create the schema: Then I have a test script as follows:
and run it
If sqlcmd works then hammerDB should also work with the same credentials |
Beta Was this translation helpful? Give feedback.
-
Hi Steve, sqlcmd does work with the same credentials. I am using HammerDBcli Linux connecting to a Windows SQL Server over TCP. I am using Below is the output from sqlcmd
my dictionary looks like this.
I make a file like yours
But when I run it no work is done at the database
|
Beta Was this translation helpful? Give feedback.
-
From my Windows version of HammerDB4.5
From my Linux version of HammerDB4.5
|
Beta Was this translation helpful? Give feedback.
-
Update - everything seems to work as expected in HammerDB 4.4
Transactions run...
|
Beta Was this translation helpful? Give feedback.
First step to troubleshoot is does sqlcmd work using your login id and password (note I've changed my password to 'password' in the output shown) (SQL Server is installed on RHEL8), I'm going to login and drop my existing database this way.
For example: