In my website i have used a database file named TRAVEL12.mdf, which is present in APP_DATA folder and some how by default a databse file named aspnetdb.mdf is also present in APP_DATA folder , althogh I have not made it......
Now, my problem is that sometimes when I tries to insert some data at any table(that table is in TRAVEL12.mdf database) error shown that login failed to access the default database aspnetdb.mdf for the user...........
Then I deleted the database aspnetdb.mdf, but now also sometime error shown that login failed to access the default database for the user......
as i mentioned that error occures sometimes not everytimes which is also a confusion to me!!!.........
I cant't understand why this happening??? I am working with TRAVEL12.mdf and I have used it's connection string in my code as a argument of SqlConnection class, so what is the role of default database here!!!
It's really frustrating for me............plz help me soon.........