CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Dsn and Package Wizard

    I have created a program which has to connect with a database through a DSN. I want to be able when I package the project to create automatically and the appropriate DSN in order to connect to the database. It could help me to give the setup program to peolpe who have no idea of how to create a DSN!
    thanx!

    Michael Vlastos
    Automation Engineer
    Company SouthGate Hellas SA
    Development Department
    Athens, Greece

  2. #2
    Join Date
    Dec 1999
    Location
    Curitiba - Paraná - Brazil
    Posts
    6

    Re: Dsn and Package Wizard

    You can solve this problem, changing the setup program of VB:
    <VB Directory>\Wizards\PDWizard\Setup1\Setup1.vbp
    adding at last of code a procedure that will call the OBDC Register Window, you can use the frmODBCLogon.frm (VB Template) as an example. Make an EXE file in:
    <VB Directory>\Wizards\PDWizard
    and use PDW to generate the CABs.

    Vanclei Matheus
    [email protected]
    Techno Dreamer

  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: Dsn and Package Wizard

    why do you want to create a DSN when you can have DSNless connections? (conection.open "Driver={SQL Server};Server=yourserver;UID...")
    What do you need the DSN for?

    You can create the DSN at program start using the RegisterDatabase-DAO-Method or by using the DSNTool ActivexComponent that comes with APE (Application Performance Explorer).



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

Featured