7
Answers

How to windows application work online and offline c#

Photo of Jyoti Jodha

Jyoti Jodha

7y
444
1
I am developing windows application.I am wants it to work online (if Client want to install Demo) and offline(if Client purchase and install Sql server and database file available).
How do I Do it.
I'm Using c# and SQL 2008R2.....

Answers (7)

0
Photo of Rafnas T P
NA 12.2k 435.7k 7y
you can create two setup files one for trial varsion with online server connection details, another one is with sql local connection string
Accepted
1
Photo of Kashif Asif
NA 462 54.8k 7y
for online you have to purchase a online mssql database and change connection string according to the credantial and when demo complete delete that database or make a function in your application that close automatically after some Duration. and for offline just install mssql database on client mechine and and change the connection string.
0
Photo of Jyoti Jodha
NA 1.7k 40.7k 7y
if create two setup files then Client need to two files download.....???
0
Photo of Jyoti Jodha
NA 1.7k 40.7k 7y
Hello

Rafnas T P

 yes i am want Client install Demo 
then work online Sql Server
 
or Client purchase and install Sql server and database file available then work offline database
0
Photo of Rafnas T P
NA 12.2k 435.7k 7y
if you have already have online database then just give that database connection string into your winform app, then ship that to your client
0
Photo of Rafnas T P
NA 12.2k 435.7k 7y
hi jyothi,
what do you mean by online and offline in winform application,
it is always an offline app,
if you want you can make database online server
0
Photo of Jyoti Jodha
NA 1.7k 40.7k 7y

Already purchase  online SQL Server database