Hi,
I want to run my create software on the client system without installing database. so i need a dynamic database for that condition which will be generated on the installation of the software or at run time of the software. it's possible or not.
Loading
Sukesh MarlaPosted Aug 27, 2012, 1:05 PM
Fire Following query
if not exists(select * from sys.databases where name = 'Testing')
create database testing
What you can do is in case of asp.net use Application_start
and for windows create a key say ABC in app.config file with value as false
When your first form loads check value of ABC key, if its false execute the query and change ABC value to true;
Hope it helped check the answer as correct if it is.
tom linkerPosted Aug 27, 2012, 10:29 AM
Javeed M ShaikhPosted Aug 24, 2012, 2:51 PM
http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/mongodb-with-csharp/