Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8183121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:03:57+00:00 2026-06-07T01:03:57+00:00

I have developed a client/server application using a firebird db and Delphi XE2. The

  • 0

I have developed a client/server application using a firebird db and Delphi XE2. The problem is that the TSQLConnection component on the client automatically sets the HostName propery to localhost. I would like to know, how can I write code that will give the user the option to set the HostName when the client starts the first time.

I placed the TSQLConnection component on a datamodule on the client.

On the main form, I placed an option for the user to set the HostName propery with the following code assigning the value that the user entered into the TextBox:

Database.SQLServer.Params.Add('HostName='+edtHostName.Text);

But it seems that once the program starts the TSQLConnection component sets the hostname to localhost and I cannot set it to the users Hostname. Can anyone please help me

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:03:58+00:00Added an answer on June 7, 2026 at 1:03 am

    The hostname is not a valid property for the dbexpress firebird connections, instead you must use the the DataBase property to specify the host using one of these formats.

    1) specifing the port , host and database

      server_host/port:/path/to/database.fdb
    

    2) specifing the host and database

      server_host:/path/to/database.fdb
    

    3) specifing only the database

    /path/to/database.fdb
    

    So using DbExpress this will look like

      SQLConnection1.Params.Values['Database']:='192.168.1.125/3050:C:\Program Files (x86)\Firebird\Firebird_2_0\examples\empbuild\EMPLOYEE.FDB';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an application using Delphi and Firebird 1.5, where the server is
I have developed a java swing client-server application. The server has many services like
I have a 3rd party client/server application, not developed by me, who needs to
Ok, I have developed this WinForms client, which interacts with a server (ASPX Application)
I have developed an application using VB.NET, Visual Studio 2008 and the SQL Server
I have developed a small server that recives connections (using basically the example here:
I have a webserver application developed using idHttpServer. When a client connects do my
I have developed a C# 3.5 Mvc 1.0 application using oracle 11gR2 client which
I have been developed a web application using java servlet at server side and
I have a server client application. Server is developed in php and client is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.