PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.db.ms-sqlserver > Connection issue when trying to connect MS SQL SERVER from Linux
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Connection issue when trying to connect MS SQL SERVER from Linux

Réponse
 
LinkBack Outils de la discussion
Vieux 23/09/2008, 15h44   #1
SRK
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Connection issue when trying to connect MS SQL SERVER from Linux

Hi,
I have installed free TDS ODBC driver on Linux and from there I am
trying to connect to MS SQLSERVER installed on Windows machine. But it
gives me following error -

tsql -H ps6312 -p 1433 -U shiv
locale is "en_US.UTF-8"
locale charset is "UTF-8"
Password:
Msg 18456, Level 14, State 1, Server , Line 0
Login failed for user 'shiv'.
Msg 20014, Level 9, State 0, Server OpenClient, Line 0
Login incorrect.
There was a problem connecting to the server


I am not sure what could be the reason behind this error as the user
has been configured on SQL server. Do I need to do some configuration
on SQL server side for connecting from Linux or should I have some
thing else at Linux side.


Looking forward to get reply.

Thanks in advance.

Regards
Shiv
  Réponse avec citation
Vieux 23/09/2008, 23h12   #2
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Connection issue when trying to connect MS SQL SERVER from Linux

SRK (kumarsr@gmail.com) writes:
> I have installed free TDS ODBC driver on Linux and from there I am
> trying to connect to MS SQLSERVER installed on Windows machine. But it
> gives me following error -
>
> tsql -H ps6312 -p 1433 -U shiv
> locale is "en_US.UTF-8"
> locale charset is "UTF-8"
> Password:
> Msg 18456, Level 14, State 1, Server , Line 0
> Login failed for user 'shiv'.
> Msg 20014, Level 9, State 0, Server OpenClient, Line 0
> Login incorrect.
> There was a problem connecting to the server
>
>
> I am not sure what could be the reason behind this error as the user
> has been configured on SQL server. Do I need to do some configuration
> on SQL server side for connecting from Linux or should I have some
> thing else at Linux side.


The login shiv is an SQL login?

You typed the password correctly?

The default datbase for this login exists?

There is no login trigger?

Are you able to connect if you use the same user/password from SQLCMD
on Windows?

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

  Réponse avec citation
Vieux 24/09/2008, 07h18   #3
SRK
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Connection issue when trying to connect MS SQL SERVER from Linux

On Sep 24, 2:12am, Erland Sommarskog <esq...@sommarskog.se> wrote:
> SRK (kuma...@gmail.com) writes:
> > I have installed free TDS ODBC driver on Linux and from there I am
> > trying to connect to MS SQLSERVER installed on Windows machine. But it
> > gives me following error -

>
> > tsql -H ps6312 -p 1433 -U shiv
> > locale is "en_US.UTF-8"
> > locale charset is "UTF-8"
> > Password:
> > Msg 18456, Level 14, State 1, Server , Line 0
> > Login failed for user 'shiv'.
> > Msg 20014, Level 9, State 0, Server OpenClient, Line 0
> > Login incorrect.
> > There was a problem connecting to the server

>
> > I am not sure what could be the reason behind this error as the user
> > has been configured on SQL server. Do I need to do some configuration
> > on SQL server side for connecting from Linux or should I have some
> > thing else at Linux side.

>
> The login shiv is an SQL login?
>
> You typed the password correctly?
>
> The default datbase for this login exists?
>
> There is no login trigger?
>
> Are you able to connect if you use the same user/password from SQLCMD
> on Windows?
>
> --
> Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se
>
> Links for SQL Server Books Online:
> SQL 2008:http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
> SQL 2005:http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
> SQL 2000:http://www.microsoft.com/sql/prodinf...ons/books.mspx


Hi,
I have tried using all the logins such as SQL server sa user, windows
domain user as well as shiv, which I created for SQL server. I was
able to login on windows using all the users specified above, but when
I try to connect it using free TDS odbc driver through Linux, it
fails.

Thanks
Shiv
  Réponse avec citation
Vieux 24/09/2008, 09h00   #4
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Connection issue when trying to connect MS SQL SERVER from Linux

SRK (kumarsr@gmail.com) writes:
> I have tried using all the logins such as SQL server sa user, windows
> domain user as well as shiv, which I created for SQL server. I was
> able to login on windows using all the users specified above, but when
> I try to connect it using free TDS odbc driver through Linux, it
> fails.


And you try to connect to the server you intend to? I don't see any server
specification in your command line.

Does the password contain any non-ASCII characters?

I've never used Free TDS, but since other people appears to use it, I guess
it works sometimes at least. All I can really with is asking some
checking questions.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
  Réponse avec citation
Vieux 10/10/2008, 09h59   #5
prasanna.mpv@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Connection issue when trying to connect MS SQL SERVER from Linux

On Sep 23, 6:44pm, SRK <kuma...@gmail.com> wrote:
> Hi,
> I have installed free TDS ODBC driver on Linux and from there I am
> trying to connect to MS SQLSERVER installed on Windows machine. But it
> gives me following error -
>
> tsql -H ps6312 -p 1433 -U shiv
> locale is "en_US.UTF-8"
> locale charset is "UTF-8"
> Password:
> Msg 18456, Level 14, State 1, Server , Line 0
> Login failed for user 'shiv'.
> Msg 20014, Level 9, State 0, Server OpenClient, Line 0
> Login incorrect.
> There was a problem connecting to the server
>
> I am not sure what could be the reason behind this error as the user
> has been configured on SQL server. Do I need to do some configuration
> on SQL server side for connecting from Linux or should I have some
> thing else at Linux side.
>
> Looking forward to get reply.
>
> Thanks in advance.
>
> Regards
> Shiv



Hi Shiv,

I am facing the same issue , Could you share the solution with me i
you have solved the problem. I am using the FreeTDS 5.0 driver.

The erro is
locale is "C"
locale charset is "ANSI_X3.4-1968"
Msg 18456, Level 14, State 1, Server , Line 0
Login failed for user 'ibia_ir'.
Msg 20014, Level 9, State 0, Server OpenClient, Line 0
Login incorrect.
There was a problem connecting to the server.

But i am able to login using the same id from the Query Analyser.

Thanks in Advance,
Prasanna
  Réponse avec citation
Vieux 10/10/2008, 23h42   #6
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Connection issue when trying to connect MS SQL SERVER from Linux

(prasanna.mpv@gmail.com) writes:
> I am facing the same issue , Could you share the solution with me i
> you have solved the problem. I am using the FreeTDS 5.0 driver.
>
> The erro is
> locale is "C"
> locale charset is "ANSI_X3.4-1968"
> Msg 18456, Level 14, State 1, Server , Line 0
> Login failed for user 'ibia_ir'.
> Msg 20014, Level 9, State 0, Server OpenClient, Line 0
> Login incorrect.
> There was a problem connecting to the server.
>
> But i am able to login using the same id from the Query Analyser.


The one thing I would check is whether the password includes any
characters not in the ASCII character set.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

  Réponse avec citation
Vieux 21/10/2008, 11h47   #7
SRK
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Connection issue when trying to connect MS SQL SERVER from Linux

On Oct 11, 2:42am, Erland Sommarskog <esq...@sommarskog.se> wrote:
> (prasanna....@gmail.com) writes:
> > I am facing the same issue , Could you share the solution with me i
> > you have solved the problem. I am using the FreeTDS 5.0 driver.

>
> > The erro is
> > locale is "C"
> > locale charset is "ANSI_X3.4-1968"
> > Msg 18456, Level 14, State 1, Server , Line 0
> > Login failed for user 'ibia_ir'.
> > Msg 20014, Level 9, State 0, Server OpenClient, Line 0
> > Login incorrect.
> > There was a problem connecting to the server.

>
> > But i am able to login using the same id from the Query Analyser.

>
> The one thing I would check is whether the password includes any
> characters not in the ASCII character set.
>
> --
> Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se
>
> Links for SQL Server Books Online:
> SQL 2008:http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
> SQL 2005:http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
> SQL 2000:http://www.microsoft.com/sql/prodinf...ons/books.mspx


Thanks to all for showing interest. Actually there was issue related
to named instance and port. When I checked port for named instance, it
was different and so after changing port it worked fine. Before that I
had to enable TCP/IP on SQL server side.

thanks
Shiv
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h38.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17780 seconds with 15 queries