문제

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.

도움이 되었습니까?

해결책

We are using APEXSQL BUILD!! problem solved!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top