Use the default database path to create a filegroup in a script sql server 2008 -


quick question, possible include in sql script this?

if filegroup_id('fg') not null alter database [mydb] add file (name=[fg_data], filename='{my default server path}') filegroup [fg] go 

the idea create script in development when promoted production can used without changing anything.

we using apexsql build!! problem solved!


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -