Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
QUOTED_IDENTIFIER & ANSI_NULLS
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ted Theo  
View profile  
 More options Dec 1 2007, 8:19 pm
Newsgroups: microsoft.public.sqlserver.clients, microsoft.public.sqlserver.programming, microsoft.public.sqlserver.tools
From: Ted Theo <tedt...@gmail.com>
Date: Sat, 1 Dec 2007 17:19:55 -0800 (PST)
Local: Sat, Dec 1 2007 8:19 pm
Subject: QUOTED_IDENTIFIER & ANSI_NULLS
does anyone know how to keep QA from adding the lines setting these
two options on and off along with blank lines at the beginning and end
of every object you edit? i have searched quite a bit on this but
haven't been able to come up with anything.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Uri Dimant  
View profile  
 More options Dec 2 2007, 3:03 am
Newsgroups: microsoft.public.sqlserver.clients, microsoft.public.sqlserver.programming, microsoft.public.sqlserver.tools
From: "Uri Dimant" <u...@iscar.co.il>
Date: Sun, 2 Dec 2007 10:03:17 +0200
Local: Sun, Dec 2 2007 3:03 am
Subject: Re: QUOTED_IDENTIFIER & ANSI_NULLS
Ted
I'm affraid you cannot. What is   your concern?

"Ted Theo" <tedt...@gmail.com> wrote in message

news:4b68c64c-e5ab-4024-878b-dbeec155abee@d21g2000prf.googlegroups.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erland Sommarskog  
View profile  
 More options Dec 2 2007, 5:58 am
Newsgroups: microsoft.public.sqlserver.clients, microsoft.public.sqlserver.programming, microsoft.public.sqlserver.tools
From: Erland Sommarskog <esq...@sommarskog.se>
Date: Sun, 2 Dec 2007 10:58:07 +0000 (UTC)
Local: Sun, Dec 2 2007 5:58 am
Subject: Re: QUOTED_IDENTIFIER & ANSI_NULLS

Ted Theo (tedt...@gmail.com) writes:
> does anyone know how to keep QA from adding the lines setting these
> two options on and off along with blank lines at the beginning and end
> of every object you edit? i have searched quite a bit on this but
> haven't been able to come up with anything.

There does not seem to be an option for this.

The reason they are there, is that these to set options are saved with
the procedure. I can understand that it is a bit of a nuisance. But since
Enterprise Manager incorrectly has these two off by default, it's
probably a good thing that QA includes them with the right setting. (But
it's not good that there is a SET OFF for one of them at the end.)

Personally, I don't find this a hassle, since I keep my code under source
control, and rarely have reason to script it from the database.

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

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books...
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ted Theo  
View profile  
 More options Dec 2 2007, 11:38 am
Newsgroups: microsoft.public.sqlserver.clients, microsoft.public.sqlserver.programming, microsoft.public.sqlserver.tools
From: Ted Theo <tedt...@gmail.com>
Date: Sun, 2 Dec 2007 08:38:40 -0800 (PST)
Local: Sun, Dec 2 2007 11:38 am
Subject: Re: QUOTED_IDENTIFIER & ANSI_NULLS
On Dec 2, 5:58 am, Erland Sommarskog <esq...@sommarskog.se> wrote:
> Ted Theo (tedt...@gmail.com) writes:
> > does anyone know how to keep QA from adding the lines setting these
> > two options on and off along with blank lines at the beginning and end
> > of every object you edit? i have searched quite a bit on this but
> > haven't been able to come up with anything.

> There does not seem to be an option for this.

it's just a bit of a nuisance like you said.  i have more projects
that don't use source control (single dev projects) than ones that do
so i encounter it frequently.  i have a high level understanding of
what both options accomplish and i haven't found a case where setting
them at the individual object level has been advantageous.  maybe i'm
just missing that part.

it seems sql server management studio just turns these settings on
when scripting an object and doesn't turn them off.  is there a way to
turn this behavior off in mgmt studio?  is there a reason i wouldn't
want to do this?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
--CELKO--  
View profile  
 More options Dec 2 2007, 12:10 pm
Newsgroups: microsoft.public.sqlserver.clients, microsoft.public.sqlserver.programming, microsoft.public.sqlserver.tools
From: --CELKO-- <jcelko...@earthlink.net>
Date: Sun, 2 Dec 2007 09:10:03 -0800 (PST)
Local: Sun, Dec 2 2007 12:10 pm
Subject: Re: QUOTED_IDENTIFIER & ANSI_NULLS

>>  is there a reason I wouldn't want to do this? <<

Conformance to ANSI/ISO Standards should be a goal in any shop, so you
would not turn off options that bring you to that goal.  Why would you
want to write your own database language?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Kuznetsov  
View profile  
 More options Dec 2 2007, 12:22 pm
Newsgroups: microsoft.public.sqlserver.clients, microsoft.public.sqlserver.programming, microsoft.public.sqlserver.tools
From: Alex Kuznetsov <alk...@gmail.com>
Date: Sun, 2 Dec 2007 09:22:47 -0800 (PST)
Local: Sun, Dec 2 2007 12:22 pm
Subject: Re: QUOTED_IDENTIFIER & ANSI_NULLS
On Dec 2, 11:10 am, --CELKO-- <jcelko...@earthlink.net> wrote:

> >>  is there a reason I wouldn't want to do this? <<

> Conformance to ANSI/ISO Standards should be a goal in any shop,

Unfortunately, currently the goal in most places is making money, and
unfortunately adherence to suboptimal standards may prevent businesses
from making money. How about improving the standard first?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erland Sommarskog  
View profile  
 More options Dec 2 2007, 3:48 pm
Newsgroups: microsoft.public.sqlserver.clients, microsoft.public.sqlserver.programming, microsoft.public.sqlserver.tools
From: Erland Sommarskog <esq...@sommarskog.se>
Date: Sun, 2 Dec 2007 20:48:58 +0000 (UTC)
Local: Sun, Dec 2 2007 3:48 pm
Subject: Re: QUOTED_IDENTIFIER & ANSI_NULLS

Ted Theo (tedt...@gmail.com) writes:
> it's just a bit of a nuisance like you said.  i have more projects
> that don't use source control (single dev projects) than ones that do
> so i encounter it frequently.  i have a high level understanding of
> what both options accomplish and i haven't found a case where setting
> them at the individual object level has been advantageous.  maybe i'm
> just missing that part.

Like it or not, the settings of the two *are* saved with each procedure.
This is in difference from, say, ANSI_WARNINGS, where the run-time setting
of the two apply.

As for which of the two settings to use, keep in mind that there are
features in SQL Server that are not available if any of ANSI_NULLS
or QUOTED_IDENTIFIER are off:

o  Indexed views and index on computed columns.
o  Xquery.
o  Queries involving linked servers (ANSI_NULLS only).

Of course, if you use default settings etc, there should never be any
reason to include these in the script, because it should be a rare
exception that you deliberately would create a procedure with any of
them off. (The only half-good reason I can think of is that you work
with dynamic SQL in several layers and nesting quotes is driving you
crazy. Turning off QUOTED_IDENTIFIERS permits you to use " as a string
delimiter as well to save your sanity.)

> it seems sql server management studio just turns these settings on
> when scripting an object and doesn't turn them off.  is there a way to
> turn this behavior off in mgmt studio?  is there a reason i wouldn't
> want to do this?

The fact that SSMS do not set them OFF, is probably my fault. I bitched
about that during the beta of SQL 2005.

No, neither SSMS appears to have an option for this, just like QA there
is only an option for controlling whether ANSI_PADDING should be
scripted tables.

The best I can suggest is that you file an suggestion to add such an
option on https://connect.microsoft.com/SQLServer/feedback/. If you do,
please post the URL. I may vote for it. :-)

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

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books...
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Yanaire  
View profile  
 More options Dec 3 2007, 4:25 pm
Newsgroups: microsoft.public.sqlserver.clients, microsoft.public.sqlserver.programming, microsoft.public.sqlserver.tools
From: "Bill Yanaire" <b...@yanaire.com>
Date: Mon, 3 Dec 2007 13:25:23 -0800
Local: Mon, Dec 3 2007 4:25 pm
Subject: Re: QUOTED_IDENTIFIER & ANSI_NULLS

"--CELKO--" <jcelko...@earthlink.net> wrote in message

news:29789bc2-91b0-4f7a-a593-547d76942965@b15g2000hsa.googlegroups.com...

>>>  is there a reason I wouldn't want to do this? <<

> Conformance to ANSI/ISO Standards should be a goal in any shop, so you
> would not turn off options that bring you to that goal.  Why would you
> want to write your own database language?

The goal here is helping people with their queries, and NOT telling them
they should be a "BY THE BOOK" kind of STIFF like yourself.

Just FYI


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google