Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

UDL Connections + Delphi

  • 06-03-2008 2:44pm
    #1
    Closed Accounts Posts: 5,240 ✭✭✭


    Ok, gonna try explain this as best i can ><.

    I have setup a UDL connection and linked it with my TADOQuery, that works grand and i can access the Database.

    What i want to do is change which database the UDL points to at run time, the user should be able to type in a server name, and i then want a comboBox to populate with any databases that are present on that server.
    The user would then select whichever database they want to use, and the program would then use this data to generate reports.

    I think i can work out how to pass the Server name into the UDL string, but is there a way to tell the UDL to search for databases on the server, and then how can i get that data to the combobox?

    Hope that makes sense
    Cheers
    Endo


Comments

  • Registered Users, Registered Users 2 Posts: 83 ✭✭MickyJoe


    Would an OpenDialog (TOpenDialog) work for you ?


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    A UDL file is just a connection string in Plain text,, you could create it at run time..

    Just right click on the UDL and open it in Notepad..


Advertisement