how to make an application that make a copy of its database

Mark

I'm making a C# application that uses a local database created with SQL Server

But when I create the database I used a connection to the local database with a file path on my local hard disk, and when I install the program on my computer it works correctly, because it is connected to the same database on my hard disk.

But when I publish my application and install it on a different computer it can't connect to the database because the connection in the C# code uses the same file path in my computer.

So now I create another database in C:\Program Files\Application Folder and make a connection in C# code with the same database. When I install the application on another computer how can I make a copy of database with the tables, because when I make a copy on the database it doesn't contain the tables.

Please help if you can.

Neal Caffery

I think you can connect the database in the local network. And if you want to copy the database, you can attach your database file in the SQL server in the computer that you want to apply.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to make a copy of a database package

From Dev

How to make a physical copy of database?

From Dev

How to make a copy of an object (not its reference) that is actually struct?

From Dev

How to make a copy of an object (not its reference) that is actually struct?

From Dev

How to make excel automatically copy specific cells with date on its side

From Dev

How to make a deep copy?

From Dev

How to make secure local SQL database for C# application

From Dev

How would I make a user database for an iPhone application?

From Dev

How to make an application with no interface?

From Dev

How to make an application and website?

From Dev

Make copy of record and save to database but with unique id

From Dev

Android can't make copy of database

From Dev

How to make an application "recognized" as an application

From Dev

JavaScript: How to make a copy of a object?

From Dev

how to make a multithread copy files

From Dev

How to make a deep copy of an OWLOntology

From Dev

JavaScript: How to make a copy of a object?

From Dev

How to make sure every data members of a class have been copied in its copy constructor?

From Dev

How to make my local git copy always at its latest version automatically?

From Dev

How can I make a hard drive copy its contents to another hard drive in real time?

From Dev

how can I make a copy the same value on char pointer(its point at) from char array in C?

From Dev

Scheme : Make operations on a list without changing its copy?

From Dev

Make innosetup copy the full folder instead of only its content

From Dev

How can I make my NSTextField NOT highlight its text when the application starts?

From Dev

How can I make Visual Studio automatically attach its debugger to both a web application and web service?

From Dev

How to make link of the database in PHP

From Dev

How To make string / database into a variable

From Dev

How to make foreach in database mysql

From Dev

how to make a crud application with websockets?

Related Related

  1. 1

    How to make a copy of a database package

  2. 2

    How to make a physical copy of database?

  3. 3

    How to make a copy of an object (not its reference) that is actually struct?

  4. 4

    How to make a copy of an object (not its reference) that is actually struct?

  5. 5

    How to make excel automatically copy specific cells with date on its side

  6. 6

    How to make a deep copy?

  7. 7

    How to make secure local SQL database for C# application

  8. 8

    How would I make a user database for an iPhone application?

  9. 9

    How to make an application with no interface?

  10. 10

    How to make an application and website?

  11. 11

    Make copy of record and save to database but with unique id

  12. 12

    Android can't make copy of database

  13. 13

    How to make an application "recognized" as an application

  14. 14

    JavaScript: How to make a copy of a object?

  15. 15

    how to make a multithread copy files

  16. 16

    How to make a deep copy of an OWLOntology

  17. 17

    JavaScript: How to make a copy of a object?

  18. 18

    How to make sure every data members of a class have been copied in its copy constructor?

  19. 19

    How to make my local git copy always at its latest version automatically?

  20. 20

    How can I make a hard drive copy its contents to another hard drive in real time?

  21. 21

    how can I make a copy the same value on char pointer(its point at) from char array in C?

  22. 22

    Scheme : Make operations on a list without changing its copy?

  23. 23

    Make innosetup copy the full folder instead of only its content

  24. 24

    How can I make my NSTextField NOT highlight its text when the application starts?

  25. 25

    How can I make Visual Studio automatically attach its debugger to both a web application and web service?

  26. 26

    How to make link of the database in PHP

  27. 27

    How To make string / database into a variable

  28. 28

    How to make foreach in database mysql

  29. 29

    how to make a crud application with websockets?

HotTag

Archive