Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
gduke
Starting Member
7 Posts |
Posted - 2008-10-17 : 12:17:17
|
I am trying to run a simple create procedure script in sql 2000. My problem is every time I run the script the default settings are adding:SET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS OFF GOSET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS ON GOI need to turn this setting off. I need to do a code compare and this is causing me problems. Can anybody help? Thanks,gduke |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-10-17 : 12:29:56
|
Which tool are you using for adding SP's? |
 |
|
gduke
Starting Member
7 Posts |
Posted - 2008-10-17 : 13:20:47
|
quote: Originally posted by visakh16 Which tool are you using for adding SP's?
Query Analyzer. |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
gduke
Starting Member
7 Posts |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-10-17 : 14:03:53
|
quote: Originally posted by gduke
quote: Originally posted by tkizer Same goes for Query Analyzer.Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/Subscribe to my blog
I don't think we are talking about the same thing. When I run this sp to put it IN THE DATABASE it is wrapping it with the SET QUOTED_IDENTIFIER and ANSI_NULLS in the database. I need to know how to turn this off.--START SCRIPTcreate procedure spAA3200BRpt () as declare @vFromZip Varchar(9)go
Nope. i dont think so. Tara was exactly speaking about your problem. You seem to use some kind of wizard for writing code which appends the settings lines to code. thats why she suggested use of query analyser for coding. |
 |
|
gduke
Starting Member
7 Posts |
Posted - 2008-10-17 : 14:15:26
|
I just coded this in Query Analyzer. I typed it in myself.create procedure GREG( @pCono varchar(4)) asdeclare @vCategory intset @vCategory = 2goI then went and viewed it in the database and it looks like this:SET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS OFF GOALTER procedure GREG( @pCono varchar(4)) asdeclare @vCategory intset @vCategory = 2GOSET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS ON GOHow can I turn that off? Thanks,gduke |
 |
|
monkeybite
Posting Yak Master
152 Posts |
Posted - 2008-10-17 : 14:23:28
|
if you're using isqlw, go to tools menu, then options, then connection properties tab. start unchecking boxes and then reconnect. this menu sets default properties on every connection thru iSQLw.~ mb |
 |
|
|
|
|