Replies: 4 comments 5 replies
-
Hi,
Il giorno dom 19 mar 2023 alle ore 09:26 Matěj Cepl <
***@***.***> ha scritto:
Trying to connect to the remote MSSQL2000 from openSUSE Linux and I am
confused:
MSSQL 2000? Pretty old I would say. I suppose also an old the machine
running it.
Maybe setting the TDS version to 7.1 could be helpful.
stitny~$ rpm -q libtdsodbc0 freetds-config unixODBC
libtdsodbc0-1.3.17-1.1.x86_64
freetds-config-1.3.17-1.1.x86_64
unixODBC-2.3.11-2.2.x86_64
stitny~$ sudo cat /etc/freetds.conf
[global]
tds version = auto
# A typical Microsoft server
[NewTekSQL]
host = SQLA15.newtekwebhosting.com
port = 1433
you could add a version for a specific server here.
stitny~$ sudo cat /etc/unixODBC/odbcinst.ini
[SQLITE3]
Description=SQLite ODBC 3.X
Driver=/usr/lib64/libsqlite3odbc.so
Setup=/usr/lib64/libsqlite3odbc.so
Threading=2
FileUsage=1
UsageCount=1
[FreeTDS]
Description=FreeTDS unixODBC Driver
Driver=/usr/lib64/libtdsodbc.so.0
Setup=/usr/lib64/libtdsodbc.so.0
UsageCount=1
stitny~$ sudo cat /etc/unixODBC/odbc.ini
[SQLite3 Datasource]
Driver=SQLITE3
[MSSQLServerDatabase]
Driver=FreeTDS
Description=Connect to PCF old website database
Servername=NewTekSQL
UserName=fakelogin
Password=fakepass
stitny~$ tsql -v -S NewTekSQL -U fakelogin -P fakepass
locale is "cs_CZ.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
Changed database context to 'dydotnetnuke'.
Changed language setting to us_english.
1>
stitny~$ isql -v MSSQLServerDatabase
[S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source
[01000][unixODBC][FreeTDS][SQL Server]Adaptive Server connection failed
[01000][unixODBC][FreeTDS][SQL Server]Adaptive Server connection failed
[ISQL]ERROR: Could not SQLConnect
Why it works with tsql and not with isql?
Maybe adding username and password?
See also https://www.freetds.org/userguide/logging.html.
Regards,
Frediano
… Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Looks like an administrator question. From FreeTDS you could want to use the |
Beta Was this translation helpful? Give feedback.
-
Do you have |
Beta Was this translation helpful? Give feedback.
-
I would use a Windows machine, maybe installed on a VM temporarily. |
Beta Was this translation helpful? Give feedback.
-
Trying to connect to the remote MSSQL2000 from openSUSE Linux and I am confused:
Why it works with tsql and not with isql?
Beta Was this translation helpful? Give feedback.
All reactions