Hi
I am using SMO to populate the list of database files log files. i am using filegroups but it displays only mdf and ldf files. I have ndf files also it is not dispalying ndf files?? what i have to do any suggestions plz???
string dbname = string.Empty, DatabaseInfo = string.Empty;
Server srv = new Server(instanceName);
foreach (Database db in srv.Databases)
{
if (DB.Equals(db.Name))
{
DatabaseInfo += db.FileGroups[0].Files[0].FileName;
string logfile=db.LogFiles[0].FileName ;
}
}