Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 17th, 2007, 07:18 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem With SQLDMO in VBNet

Hi everybody,
I've wrote code like this:

  Dim i As Integer
        Dim Ung_dung As SQLDMO.Application
        Ung_dung = New SQLDMO.Application
        Dim Ds_ten_may_chu As SQLDMO.NameList

        Ds_ten_may_chu = Ung_dung.ListAvailableSQLServers()
        Ds_may_chu.Items.Clear()
        For i = 1 To Ds_ten_may_chu.Count
            Ds_may_chu.Items.Add(Ds_ten_may_chu.Item(i))
        Next
And I found the error:
QueryInterface for interface SQLDMO.NameList failed at the 5th line.

Please help me!!!

Hanh Toan





Similar Threads
Thread Thread Starter Forum Replies Last Post
finding sql servers with sqldmo BobS56 Pro VB Databases 0 December 15th, 2007 08:55 AM
MX and VBnet lucian Dreamweaver (all versions) 3 October 25th, 2004 03:37 PM
SQLDMO: SQL2000 & VBNet2002 Std. SP2 reyboy SQL Server 2000 5 September 21st, 2004 09:14 PM
SQLDMO Connection Problem madhanagopal Pro VB.NET 2002/2003 0 September 14th, 2004 04:29 AM
Beginning vbnet 2nd edition frankychen04 BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 July 4th, 2004 03:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.