Answer the question
In order to leave comments, you need to log in
Transferring the Program to another computer, Builder c++, MS SQL Server?
Please tell me, I wrote a program (Rad studio 10.1 environment), MS SQL Server database. Connection via ADOConnection. When transferring the program to another PC, problems appear at startup, since the program does not see the database, because. computer name and sql server name on this PC are different. I restored the database (but this is only half the work).
How to get around this problem?
Getting the PC name is no problem, but on each new PC the server name may be different.
Answer the question
In order to leave comments, you need to log in
With sql server, the following solutions to the problem are possible:
1. Use . (dot) as the name of the local server.
2. Show the user a connection window with the ability to select a server.
Alternatively, if sql server is used locally, then you can abandon it in favor of sqlite, for example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question