[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 804
  • Last Modified:

Database 'C:\\Permias.mdf' already exists. Choose a different database name.

Does this mean that I need to rename the mdf file?
0
kuntilanak
Asked:
kuntilanak
  • 3
  • 3
1 Solution
 
govindarajan78Commented:
that depends. if you are not using the above file in any of your program or not used by any installed program you can rename it.
0
 
kuntilanakAuthor Commented:
otherwise?
0
 
govindarajan78Commented:
check in your program for the database name existence
 if exists
                     check is it your database
                                   if yes proceed then ask the user to supply a name for the database (or have                      
                                   automatic dbname logic) and update you config file
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
govindarajan78Commented:
check in your program for the database name existence
 if exists
                     check is it your database
                                   if yes
                                             proceed with the database
                                   else
                                                 ask the user to supply a name for the database (or have                      
                                                 automatic dbname logic) and update you config file
0
 
kuntilanakAuthor Commented:
how do I check for the database name existence?
0
 
kuntilanakAuthor Commented:
Here's the case I created this Permias.mdf on another solution that I had and then after that I decided not to use that solution and created a new website from visual studio and copy and paste the .mdf file to be used for this website.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now