Still early days of learning OOP and databases.
I created a small program that speaks to a database and that data base holds my changes in the table ect but my question is: where does the database reside? its in my PC i know that much, its not in my fridge lol.
If i were to create an installer for my program using Visual studio express and then put that .exe file to another pc and install on there does that mean that the database that was built with my program go with it as well? .... it will just work like it did on mine?
not too sure of the basics, any help would be much appreciated :)
John
Loading
Santhosh NPosted Dec 12, 2010, 9:43 AM
when you can create a database which can be accessible from multiple computers either in LAN or Internet or any network and accessible to all 100 or any number of computers, then you need to not worry of deploying the database and all client computers can speak to the same database.
even, while you are hosting in any web, the hosting compannies do privide sql server instances and you can use that to create to the database in it and use to your application..
CrishPosted Dec 13, 2010, 4:46 AM
Thanks I had same problem now i can solve mu issue of Where does the database live.
Santhosh NPosted Dec 12, 2010, 10:32 AM
John BurnsPosted Dec 12, 2010, 10:31 AM
John BurnsPosted Dec 12, 2010, 9:31 AM
i noticed that the database i use is called a local database ... that means it resides on my PC ... so cant i get a database that is not local ? that exists on the web and then just point my applicaiton towards the database hosted on the web? i take it this is whats ment by SQL database?
Santhosh NPosted Dec 12, 2010, 8:39 AM
And now, when you developed the application with Data in some database instance which is a seperate altogether from your application, the target location where you need to install the application should be able to connect to the DB from there...
If not you need to include the DB engine in the installer which is possible for smaller dbs like access, excel ..
you can check a sample over here
http://www.codeproject.com/KB/database/DBInstaller1.aspx
Subhendu DePosted Dec 12, 2010, 6:00 AM