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 > ms.sqlserver.server > Default set options when logging in
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Default set options when logging in

Réponse
 
LinkBack Outils de la discussion
Vieux 17/06/2008, 20h52   #1
Tom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Default set options when logging in

I traced a login to SQL Server (2000 and 2005) and saw a series of SET
commands upon login. One of these commands is

SET CONCAT_NULL_YIELDS_NULL ON

The database server is configured to set this option OFF by default, and my
database is also configured to set this option OFF. So my question is, why
is this option being set ON? And how can I prevent this from happening when
connecting?

Thanks,

Tom
  Réponse avec citation
Vieux 17/06/2008, 21h05   #2
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Default set options when logging in

Basically, the session setting doesn't care whatever you set at the database (or server) level,
rendering the database setting pretty useless.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Tom" <Tom@discussions.microsoft.com> wrote in message
news:B4D54DB5-43E9-47FD-8E6D-DDEAE6DC4775@microsoft.com...
>I traced a login to SQL Server (2000 and 2005) and saw a series of SET
> commands upon login. One of these commands is
>
> SET CONCAT_NULL_YIELDS_NULL ON
>
> The database server is configured to set this option OFF by default, and my
> database is also configured to set this option OFF. So my question is, why
> is this option being set ON? And how can I prevent this from happening when
> connecting?
>
> Thanks,
>
> Tom


  Réponse avec citation
Vieux 17/06/2008, 22h39   #3
Tom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Default set options when logging in

So what determines the initial session settings, and is there a way to change
them without issuing a whole bunch of "SET" commands every time you connect?

Tom

"Tibor Karaszi" wrote:

> Basically, the session setting doesn't care whatever you set at the database (or server) level,
> rendering the database setting pretty useless.
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
>
> "Tom" <Tom@discussions.microsoft.com> wrote in message
> news:B4D54DB5-43E9-47FD-8E6D-DDEAE6DC4775@microsoft.com...
> >I traced a login to SQL Server (2000 and 2005) and saw a series of SET
> > commands upon login. One of these commands is
> >
> > SET CONCAT_NULL_YIELDS_NULL ON
> >
> > The database server is configured to set this option OFF by default, and my
> > database is also configured to set this option OFF. So my question is, why
> > is this option being set ON? And how can I prevent this from happening when
> > connecting?
> >
> > Thanks,
> >
> > Tom

>

  Réponse avec citation
Vieux 18/06/2008, 08h38   #4
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Default set options when logging in

> So what determines the initial session settings,

Whoever developed your API (ADO, ADO.NET, ODBC, OLEDB, JDBC, RDO, etc).


> and is there a way to change
> them without issuing a whole bunch of "SET" commands every time you connect?


That would be a setting at the API level, so you should check the documentation for the API your are
using. Whatever the API does it out-of control for SQL Server. The API connects and initially gets
the default setting (instance/db), but then immediately the API executes a SRT command to override
whatever you had at the instance/db level.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Tom" <Tom@discussions.microsoft.com> wrote in message
news:2E74F847-D2AF-476C-BC12-93DE8878E3EB@microsoft.com...
> So what determines the initial session settings, and is there a way to change
> them without issuing a whole bunch of "SET" commands every time you connect?
>
> Tom
>
> "Tibor Karaszi" wrote:
>
>> Basically, the session setting doesn't care whatever you set at the database (or server) level,
>> rendering the database setting pretty useless.
>>
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>>
>> "Tom" <Tom@discussions.microsoft.com> wrote in message
>> news:B4D54DB5-43E9-47FD-8E6D-DDEAE6DC4775@microsoft.com...
>> >I traced a login to SQL Server (2000 and 2005) and saw a series of SET
>> > commands upon login. One of these commands is
>> >
>> > SET CONCAT_NULL_YIELDS_NULL ON
>> >
>> > The database server is configured to set this option OFF by default, and my
>> > database is also configured to set this option OFF. So my question is, why
>> > is this option being set ON? And how can I prevent this from happening when
>> > connecting?
>> >
>> > Thanks,
>> >
>> > Tom

>>



  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 04h24.


É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,18071 seconds with 12 queries