Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Generation without SET QUOTED_IDENTIFIER OFF

Status
Not open for further replies.

karthik555

IS-IT--Management
Oct 15, 2002
36
IN
Hello!

I am generating script for all the Stored Procedures in the DB.

I have the following text before each SP script.
Code:
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO
How do I supress this?

Thanks in adavnce.
 
You can try something like this:

Code:
select replace(@v_name,  'SET QUOTED_IDENTIFIER OFF', '')

Regards,
AA
 
Your solution is for replacing the text in the script which is already generated.

I want to know if there is any setting in Enterprise Manager to supress this.

Regards
Karthik
 
If you suppress these settings, stored procedure generated with script may not behave the same way as original.

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Thanks for that info. It was an eye opener!

Your are right. If I supress them some 90% of my SPs may not work.

Thanks again.

Karthik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top