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.

demonplus
  • 5,613
  • 12
  • 49
  • 68
Ray
  • 483
  • 4
  • 17

1 Answers1

1

We are using APEXSQL BUILD!! problem solved!

Ray
  • 483
  • 4
  • 17