Results 1 to 10 of 10

Thread: Setup for VB Application

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    4

    Setup for VB Application

    I have a VB Standard Exe application which uses SQL Server 2000 as back-end. How do I prepare a setup which installs/creates the database on another machine which has SQL Server installed ?

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Setup for VB Application

    Compile it, and run the Add-In called the Package and Deployement Wizard.

    It will guide you through all of the steps required to make an installation program. You may have trouble with dependency files, but seeing that it is a M$ product, then the odds are in your favor that it will install correctly.

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Setup for VB Application

    Welcome to the Forums.

    If it is the first time your program runs, it should check for the exisiance of the DB. Then if its not found then
    it should create it. Use the "Generate Script" menu item in Enterprise Manager to script out the db. Then
    when your app need to create it you can execute the script to create the db, tables, views, udts, and grant
    permissions to any users that you create or assign to the db.

    HTH
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    4

    Re: Setup for VB Application

    Thanks a lot. But where do I find the Enterprise Manager ? In SQL Server 2000 ?

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Setup for VB Application

    oops. i don't have sql, so i couldn't help there.

  6. #6
    Addicted Member hyousuf2's Avatar
    Join Date
    Dec 2004
    Location
    Dublin
    Posts
    226

    Re: Setup for VB Application

    yes offcourse, Enterprise Manager is an SQL Server 2000 application, its nothing but just a MMC console.
    ne ways, if ure connecting ur app. to db using a static connection string then u'll have to add the data files to ur setup, but this is not recommended, u should use DSNs

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Setup for VB Application

    You can install EM on any system because its only part of the SQL Client Tools, not the actual SQL Server.
    Once you have Enterprize Manager installed you should also have other client tools like SQL Query Analyzer, SQL Profiler,
    and SQL Books On-Line (Help file - highly reccommend instaling BOL!).

    In EM after you register the SQL Server that is on your Server, you can connect to it and do thinks like you
    were on the actual server. This includes generating a DB Script. You can then generate a script for the entire
    DB lik eI posted earlier. This can be saved as a text file for use in you DB installation program. You would then
    execute the script using ADO, for example, to create the db on the target server. The DB can only be installed
    on a Server running SQL Server.

    HTH
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Setup for VB Application

    and it only comes with SQL Server?

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Setup for VB Application

    Quote Originally Posted by dglienna
    and it only comes with SQL Server?
    Yes, Enterprise Manager and the Client Tools only come with SQL Server 7.0, 8.0 (2000), and 9.0 (2005).
    SQL Server 6.5 has a version of it but it is limited since it was new back then.

    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  10. #10

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    4

    Re: Setup for VB Application

    Thanks a lot for your help.

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