Click here to Skip to main content
15,915,319 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem with databinding to property of interface type. Pin
MidwestLimey19-Aug-08 4:37
professionalMidwestLimey19-Aug-08 4:37 
GeneralRe: Problem with databinding to property of interface type. Pin
Member 140473319-Aug-08 19:43
Member 140473319-Aug-08 19:43 
AnswerRe: Problem with databinding to property of interface type. Pin
Member 140473320-Aug-08 21:14
Member 140473320-Aug-08 21:14 
QuestionMicrosoft.SqlServer.Management.Smo problem Pin
hdv21219-Aug-08 2:58
hdv21219-Aug-08 2:58 
AnswerRe: Microsoft.SqlServer.Management.Smo problem Pin
Csharp_Raja19-Aug-08 3:42
Csharp_Raja19-Aug-08 3:42 
GeneralRe: Microsoft.SqlServer.Management.Smo problem Pin
hdv21219-Aug-08 4:08
hdv21219-Aug-08 4:08 
GeneralRe: Microsoft.SqlServer.Management.Smo problem Pin
Csharp_Raja19-Aug-08 4:50
Csharp_Raja19-Aug-08 4:50 
GeneralRe: Microsoft.SqlServer.Management.Smo problem Pin
hdv21219-Aug-08 4:55
hdv21219-Aug-08 4:55 
not any exception, just crash, here is my source code to explore what is my method:

private void GetDatabaseSps(TreeView tree, TreeNode spsNode, string sqlServerInctance)
        {
            // create a list of strings to hold name of sps
            List<string> sps = new List<string>();

            // get database name from parent node (database node is parent node of tablesNode)
            string database = spsNode.Parent.Text;

            // create a server object to interact with sql server inctance
            Microsoft.SqlServer.Management.Smo.Server server = new Microsoft.SqlServer.Management.Smo.Server(sqlServerInctance);

            // iterate through each sp that exist in database object
            foreach (Microsoft.SqlServer.Management.Smo.StoredProcedure sp in server.Databases[database].StoredProcedures)
            {
                if (sp.IsSystemObject)
                {
                }
                else
                {
                    sps.Add(sp.Name);
                }
            }

            // clear current nodes
            spsNode.Nodes.Clear();

            // iterate through list object and add each item (table name) to treeView
            foreach (string str in sps)
            {
                // create a node to hold table name (child node or level 1)
                TreeNode spNode = new TreeNode(str);

                // add tableNode to tablesNode
                spsNode.Nodes.Add(spNode);
            }
        }

GeneralRe: Microsoft.SqlServer.Management.Smo problem Pin
Csharp_Raja20-Aug-08 4:34
Csharp_Raja20-Aug-08 4:34 
Questionout of memory:at System.image.fromfile(string filename,boolean useembeddedcolormanagement) Pin
vishnukamath19-Aug-08 2:44
vishnukamath19-Aug-08 2:44 
AnswerRe: out of memory:at System.image.fromfile(string filename,boolean useembeddedcolormanagement) Pin
Manas Bhardwaj19-Aug-08 5:16
professionalManas Bhardwaj19-Aug-08 5:16 
QuestionAccess to the file in the same directory Pin
arkiboys19-Aug-08 2:17
arkiboys19-Aug-08 2:17 
AnswerPlease don't repost questions just to bump them to the top. Pin
Pete O'Hanlon19-Aug-08 2:21
mvePete O'Hanlon19-Aug-08 2:21 
GeneralRe: Please don't repost questions just to bump them to the top. Pin
arkiboys19-Aug-08 2:26
arkiboys19-Aug-08 2:26 
RantRe: Please don't repost questions just to bump them to the top. Pin
Paul Conrad19-Aug-08 6:18
professionalPaul Conrad19-Aug-08 6:18 
QuestionHow to create a progressBar? Pin
Admin88719-Aug-08 2:00
Admin88719-Aug-08 2:00 
AnswerRe: How to create a progressBar? Pin
Pete O'Hanlon19-Aug-08 2:06
mvePete O'Hanlon19-Aug-08 2:06 
GeneralRe: How to create a progressBar? Pin
Admin88719-Aug-08 2:11
Admin88719-Aug-08 2:11 
GeneralRe: How to create a progressBar? Pin
Pete O'Hanlon19-Aug-08 2:19
mvePete O'Hanlon19-Aug-08 2:19 
GeneralRe: How to create a progressBar? Pin
Admin88719-Aug-08 2:27
Admin88719-Aug-08 2:27 
GeneralRe: How to create a progressBar? Pin
Pete O'Hanlon19-Aug-08 2:33
mvePete O'Hanlon19-Aug-08 2:33 
AnswerRe: How to create a progressBar? Pin
blackjack215019-Aug-08 2:07
blackjack215019-Aug-08 2:07 
GeneralRe: How to create a progressBar? Pin
V.19-Aug-08 2:54
professionalV.19-Aug-08 2:54 
GeneralRe: How to create a progressBar? Pin
chaiguy133719-Aug-08 15:48
chaiguy133719-Aug-08 15:48 
GeneralRe: How to create a progressBar? Pin
V.19-Aug-08 20:32
professionalV.19-Aug-08 20:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.