Here is a quote from the books online:
Quoted identifiers are used by default in SQL Server 2000,
that is, they are set to ON. This is different from SQL
Server 7.0 where they were set to OFF by default.
Here is my problem. I developed my system, using v7, to
have double quotes around all of my insert statements (the
strings). Now I move off to a 2k installation and I run
into this problem. I know I can set them to off with this:
SET QUOTED_IDENTIFIER OFF
But what I wish to do is change the database so that the
default is OFF.
How do I do that? I have tried the "Alter Database" command
and the "sp_dboption" command but neither have turned it
off. Here are the statements I ran:
ALTER DATABASE CustomerSupport
SET QUOTED_IDENTIFIER OFF
GO
EXEC sp_dboption 'CustomerSupport','quoted identifier','FALSE'
What is wrong here? Can the default be changed from ON to OFF?
Lance
Quoted identifiers are used by default in SQL Server 2000,
that is, they are set to ON. This is different from SQL
Server 7.0 where they were set to OFF by default.
Here is my problem. I developed my system, using v7, to
have double quotes around all of my insert statements (the
strings). Now I move off to a 2k installation and I run
into this problem. I know I can set them to off with this:
SET QUOTED_IDENTIFIER OFF
But what I wish to do is change the database so that the
default is OFF.
How do I do that? I have tried the "Alter Database" command
and the "sp_dboption" command but neither have turned it
off. Here are the statements I ran:
ALTER DATABASE CustomerSupport
SET QUOTED_IDENTIFIER OFF
GO
EXEC sp_dboption 'CustomerSupport','quoted identifier','FALSE'
What is wrong here? Can the default be changed from ON to OFF?
Lance