Du måste lägga till information om data och loggfiler uttryckligen:
// Now create a database in the new location
Database smoDatabase = new Database(smoServer, database);
FileGroup fg = new FileGroup(smoDatabase, "PRIMARY");
DataFile df = new DataFile(fg, "File1", @"c:\sql\file1.mdf");
LogFile lf = new LogFile(smoDatabase, "Log01", @"c:\sql\Log1.ldf");
smoDatabase.Create();
smoServer.Refresh();