About SET Statements (Transact-SQL)

  • Hi

    Can somebody share some experience about some general set statement in your project? e.g. SET QUOTED_IDENTIFIER

    We've encountered an issue about it, we use the sqlcmd to upgrade the DB. So if a developer forget add set SET QUOTED_IDENTIFIER explicitly in their delivered script, it may be overrided by the previouse (other developer's) script. To overcome this, we should ask developer always put some general set statement before their script like below, is it?

    SET QUOTED_IDENTIFIER ON

    GO

    SET ANSI_PADDING ON

    GO

    ...

    CREATE PROCEDURE

    ...

    If this is a good practice, then how many general set statement need put here normally?

    Thanks,

    Billy

  • I don't normally include SET OPTIONS in my scripts. I allow the script to inherit the database/connection SET OPTIONS.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply