Results 1 to 5 of 5

Thread: [RESOLVED] SQL Server 2005: replacement for SQLDMO

  1. #1

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Resolved [RESOLVED] SQL Server 2005: replacement for SQLDMO

    SQLDMO only works for SQL Server 2000 (at least that what I believe), I need to replace it so that it will work on SQL Server 2005 and probably for SQL Server 2008 also in the future.

    TIA
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: SQL Server 2005: replacement for SQLDMO

    SQLDMO does work for later versions but it's preferable to use SMO. It's .NET-based instead of COM-based.

    http://msdn.microsoft.com/en-us/library/ms162169.aspx
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: SQL Server 2005: replacement for SQLDMO

    And it's more powerful too..

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: SQL Server 2005: replacement for SQLDMO

    Quote Originally Posted by jmcilhinney
    SQLDMO does work for later versions but it's preferable to use SMO. It's .NET-based instead of COM-based.

    http://msdn.microsoft.com/en-us/library/ms162169.aspx
    Hmmnnn... Care to cite a sample that would make SQLDMO connect with SQL Server 2005 database?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: SQL Server 2005: replacement for SQLDMO

    Quote Originally Posted by dee-u
    Hmmnnn... Care to cite a sample that would make SQLDMO connect with SQL Server 2005 database?
    Code:
    oSQL.LoginSecure = true;
    oSQL.Connect(@"SERVER\SQLEXPRESS", null, null);
    Works for me, just in case somebody else is interested.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width