N
N
nikita3752020-12-25 19:38:59
C++ / C#
nikita375, 2020-12-25 19:38:59

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

1 answer(s)
A
Alexander Ananiev, 2020-12-26
@SaNNy32

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 question

Ask a Question

731 491 924 answers to any question