i want to install c# windows application.
i have installed .net framework 3.5 & sql server 2005 in the system.
and i have used connection string as
(cn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Demo_DB.mdf;Integrated Security=True;User Instance=True");
but i am getting error as mentioned below :
cannot create file 'c:\default company name\hotelsetup\newhotel_log.ldf' because it already exists.<br />
change the file path or the file name. and retry the operation.<br />
could not open new database 'newhotel'. create database is aborted.<br />
cannot attach the file 'c:\default company name\hotelsetup\newhotel.mdf' as database 'newhotel'<br />
file activation failure. the physical file name 'E:\c#.net\....' may be
can anyone please give me the solution?
i have database in bin folder as well as in project folder.
thanks in advance