Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning a file to a filegroup
Message
 
 
À
10/01/2010 15:16:37
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01443103
Message ID:
01443106
Vues:
42
This message has been marked as the solution to the initial question of the thread.
>I have a command line like this to create a filegroup:
>
>
>   IF NOT EXISTS (SELECT * FROM sys.filegroups WHERE Name='MyFilegroup')
>   ALTER DATABASE MyDatabase ADD FILEGROUP MyFilegroup
>   CREATE INDEX [MyIndex] ON ... ON [Myfilegroup]
>
>
>However, I get this message:
>
>The filegroup "Myfilegroup" has no files assigned to it.
>
>So, I need to add an entry in the database property sheet in the Files section. Is there a way to verify for that and script that as well?

This link http://www.mssqltips.com/tip.asp?tip=1112 seems to address the issue of adding files to FILEGROUP.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform