1

Closed

All the views are not getting listed.

description

All the views are not getting listed. The break statement is causing the foreach to exit before filling all the entries.
 

ScriptWizrd.cs

// Views
        if (db.Views.Count > 0)
        {
            foreach (Microsoft.SqlServer.Management.Smo.View vw in db.Views)
            {
                if (!vw.IsSystemObject)
                {
                    clbViews.Items.Add(vw);
                    break;
                }
            }
            if (clbViews.Items.Count > 0)
            {
                clbObjectTypes.Items.Add(CommonFunc.FormatString(Properties.Resources.ObjectTypeViews));
            }
        }
Closed Sep 8, 2009 at 5:53 PM by ghuey
Problem Fixed in release v0.2.2

comments

sm2akader wrote Sep 8, 2009 at 5:44 PM

Please ignore this work item as i see the issue is already identified and fixed in the code.

wrote Sep 8, 2009 at 5:53 PM

wrote Feb 22, 2013 at 12:00 AM

wrote May 16, 2013 at 11:29 AM