I am taking over the maintenance of a website. Virtually no documentation. I hope that this kind of question is “ok” here …
Right now, I am trying to locate/view the database but I can’t find it.
This is the only connectionString in web.config:
<connectionStrings>
<add connectionString="Data Source=YPOC\SQLEXPRESS;Database=Marco;User ID=yyy;Password=xxx;" name="DefaultConnectionString" />
</connectionStrings>
QUESTIONS:
1) are these parameters equivalent?
a) Database=Marco
b) AttachDbFilename=|DataDirectory|\Marco.mdf
c) Initial Catalog=Marco
2) if the answer to #1 is “yes”, then I should find a database file called Marco.mdf in the App_Data folder, right?
3) but #2 can’t be correct, because I do not see a database file called Marco in the App_Data folder … ;-x
4) where in the world is carmen sandi … oops, I mean Marco.mdf ?!
RELATED QUESTIONS:
I had to copy all the files from a production server called YPOC. In the web.config, I think I need to change “Data Source=YPOC\SQLEXPRESS” … my SQL Server Instance Name is “SQLEXPRESS” … therefore, should I change the DS to “Data Source=.\SQLEXPRESS”?
In the App_Data folder, I found ASPNETDB.MDF … in Server Explorer, I try to connect to view the tables, but I get an error message:
“…cannot open because it is version 661. This server supports version 655 and earlier”
I did some research and it appears that version 661 means that it needs SQL Server 2008 R2 … but I have that installed already … ;-(
I’m used to a shared hosting environment where the SQL Server DB is set up and it’s easy to connect. Here, it is on a dedicated cloud server (unmanaged) and I’m been thrust upon new territory where I can’t even find the database … ;-(
Any help is greatly appreciated …
- nano
“But how do I access this database from my dev computer when I don’t know the SQL server address, etc?”