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

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -