MS-SQL Connection Problem

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
shanku
Level 1
Level 1
Posts: 8
Joined: Mon Nov 24, 2008 2:41 am

MS-SQL Connection Problem

Post by shanku »

Hi, i´m trying to access a MSSQL server (in a windows machine in the network) from a Visual Basic Application running under wine, using an ODBC driver.
Since there aren´t any MSSQL drivers for linux i decided to use de native ones, so i installed mdac_typ.exe . Then i configured the DSN using odbcad32.exe but when i tested the connection (configured using tcp/ip) an error message appeared

Connection failed:
SQLState: '01000'
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets] ConnectionOpen(Connect())
Connection failed:
SQLState: '08001'
SQL Server Error: 17
Microsoft][ODBC SQL Server Driver][TCP/IP Sockets] Specified SQL
server not found.

Has anyone been able to connect to a MSSQL server remotely using odbc under wine??

Please Help me

Shanku
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: MS-SQL Connection Problem

Post by vitamin »

shanku wrote:Hi, i´m trying to access a MSSQL server (in a windows machine in the network) from a Visual Basic Application running under wine, using an ODBC driver.
Use UnixODBC and freeTDS.
Daniel Kasak

MS-SQL Connection Problem

Post by Daniel Kasak »

On Tue, 2008-11-25 at 22:29 -0600, shanku wrote:
Hi, im trying to access a MSSQL server (in a windows machine in the
network) from a Visual Basic Application running under wine, using an
ODBC driver. Since there arent any MSSQL drivers for linux i decided
to use de native ones, so i installed mdac_typ.exe . Then i configured
the DSN using odbcad32.exe but when i tested the connection
(configured using tcp/ip) an error message appeared

Connection failed:
SQLState: '01000'
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets] ConnectionOpen(Connect())
Connection failed:
SQLState: '08001'
SQL Server Error: 17
Microsoft][ODBC SQL Server Driver][TCP/IP Sockets] Specified SQL
server not found.

Has anyone been able to connect to a MSSQL server remotely using odbc under wine??
I've had *limited* success with wine and ODBC drivers. At one point ( a
long time back ) I had MyODBC ( 3.51.11 ) and SQL Server drivers
working. For SQL Server, you have to use password authentication ( not
'trusted connection' ).

Your error sounds like the driver can't convert the server name into an
IP address. Are you able to resolve it? Have you tried with an IP
address instead ( or adding the server name to /etc/hosts )?

Dan
shanku
Level 1
Level 1
Posts: 8
Joined: Mon Nov 24, 2008 2:41 am

Post by shanku »

:(
I tried but failed ... Please help me any other solution ???


Shanku
Locked