2

Quick question, it is possible to include in a SQL Script something like this?

IF FILEGROUP_ID('FG') IS NOT NULL
ALTER DATABASE [MYDB]
ADD FILE (Name=[FG_DATA], Filename='{My default server path}') TO FILEGROUP [FG]
GO

The idea is to create a script in development that when promoted to production it can be used without changing anything.

2
  • Are you using SSDT? Or even sqlcmd to deploy? Commented May 2, 2014 at 13:16
  • we are running the scripts directly in Management Studio and we also create the scripts form it. Commented Sep 25, 2014 at 15:19

1 Answer 1

1

We are using APEXSQL BUILD!! problem solved!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.