Click here to Skip to main content
15,890,557 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Exception: Nullable object must have a value while typecasting in a Linq query Pin
Richard Deeming5-Dec-19 1:06
mveRichard Deeming5-Dec-19 1:06 
AnswerRe: Exception: Nullable object must have a value while typecasting in a Linq query Pin
simpledeveloper5-Dec-19 6:28
simpledeveloper5-Dec-19 6:28 
GeneralRe: Exception: Nullable object must have a value while typecasting in a Linq query Pin
Richard MacCutchan5-Dec-19 7:51
mveRichard MacCutchan5-Dec-19 7:51 
QuestionHow to connect multiple computers to the same database? Pin
SebGM252-Dec-19 14:53
SebGM252-Dec-19 14:53 
AnswerRe: How to connect multiple computers to the same database? Pin
Richard Deeming3-Dec-19 0:41
mveRichard Deeming3-Dec-19 0:41 
GeneralRe: How to connect multiple computers to the same database? Pin
Member 1468812212-Dec-19 20:12
Member 1468812212-Dec-19 20:12 
GeneralRe: How to connect multiple computers to the same database? Pin
amrinde12-Dec-19 20:34
professionalamrinde12-Dec-19 20:34 
AnswerRe: How to connect multiple computers to the same database? Pin
Maciej Los3-Dec-19 1:44
mveMaciej Los3-Dec-19 1:44 
Quote:
I thought about having the database file saved in computer A, and computer B and C should connect to it, even through usb cables. I don’t know if this is the best practice, and if it is, how could I do it?


Sorry, you're wrong.
You need only one database installed on a single computer (let it be computer A). You have to install an SQL server on it and enable remote connections to that SQL server instance. Other computers (B-Z) have to have intalled an application, which connection string refers to SQL server instance on computer A. I'd suggest to get connection string from config file. See: Connection Strings and Configuration Files | Microsoft Docs

For further details, please see Richard's MacCutchan Deeming answer.

[EDIT]
Sorry, Richard.

modified 3-Dec-19 9:21am.

GeneralRe: How to connect multiple computers to the same database? Pin
Richard Deeming3-Dec-19 2:07
mveRichard Deeming3-Dec-19 2:07 
PraiseRe: How to connect multiple computers to the same database? Pin
Maciej Los3-Dec-19 3:19
mveMaciej Los3-Dec-19 3:19 
GeneralOT Pin
Richard Deeming3-Dec-19 3:25
mveRichard Deeming3-Dec-19 3:25 
GeneralRe: OT Pin
Maciej Los3-Dec-19 3:34
mveMaciej Los3-Dec-19 3:34 
PraiseRe: OT Pin
Richard Deeming3-Dec-19 3:38
mveRichard Deeming3-Dec-19 3:38 
GeneralRe: How to connect multiple computers to the same database? Pin
Richard MacCutchan3-Dec-19 23:17
mveRichard MacCutchan3-Dec-19 23:17 
AnswerRe: How to connect multiple computers to the same database? Pin
Dave Kreskowiak3-Dec-19 4:31
mveDave Kreskowiak3-Dec-19 4:31 
AnswerRe: How to connect multiple computers to the same database? Pin
Gerry Schmitz3-Dec-19 9:24
mveGerry Schmitz3-Dec-19 9:24 
QuestionNot able to connect to SQLite database if share is hidden Pin
JacquesUrlus21-Nov-19 8:18
JacquesUrlus21-Nov-19 8:18 
AnswerRe: Not able to connect to SQLite database if share is hidden Pin
Dave Kreskowiak21-Nov-19 9:58
mveDave Kreskowiak21-Nov-19 9:58 
AnswerRe: Not able to connect to SQLite database if share is hidden Pin
Eddy Vluggen29-Nov-19 14:51
professionalEddy Vluggen29-Nov-19 14:51 
GeneralAnalytics Tool to Integrate with my application Pin
Supratik De20-Nov-19 19:18
Supratik De20-Nov-19 19:18 
GeneralRe: Analytics Tool to Integrate with my application Pin
Pete O'Hanlon20-Nov-19 20:50
mvePete O'Hanlon20-Nov-19 20:50 
QuestionChanging the Include function of Entity Framework if association table is added Pin
simpledeveloper20-Nov-19 7:32
simpledeveloper20-Nov-19 7:32 
AnswerRe: Changing the Include function of Entity Framework if association table is added Pin
Richard MacCutchan20-Nov-19 9:01
mveRichard MacCutchan20-Nov-19 9:01 
GeneralRe: Changing the Include function of Entity Framework if association table is added Pin
simpledeveloper20-Nov-19 10:30
simpledeveloper20-Nov-19 10:30 
GeneralRe: Changing the Include function of Entity Framework if association table is added Pin
simpledeveloper21-Nov-19 6:51
simpledeveloper21-Nov-19 6:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.