Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 5th, 2012, 07:02 PM
Authorized User
 
Join Date: Sep 2011
Posts: 41
Thanks: 3
Thanked 4 Times in 3 Posts
Default Database, can't find it

Hi, 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:

Based on this connectionString, Marco is not a database file such as Marco.mdf, right?

Does this mean that the database "Marco" resides on an SQL Server instance called SQLEXPRESS on the server YPOC?

*****

Again, I don't have a prior web developer to ask, I am in this cold. How do I go about finding the server address to put in the connectionString? The website is being hosted on a cloud server and it appears that SQL Server has been installed. Even though it is an unmanaged site (meaning web hoster doesn't manage it, they just provide the web server space), would the web hoster know this info?

Another way of asking the same question is: how do I connect from dev computer thru VS or SQL SMS?

*****

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

Last edited by nanonerd; July 5th, 2012 at 08:13 PM..
 
Old July 6th, 2012, 03:25 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
Does this mean that the database "Marco" resides on an SQL Server instance called SQLEXPRESS on the server YPOC?
Yes, correct. This database is attached to that server, so it could be located anywhere. If you have access to the server, you can open up Management Studio there and look at the properties of that database to see where it's physically stored.

Quote:
how do I connect from dev computer thru VS or SQL SMS?
You probably can't, unless you open the ports for SQL Server in the firewall (1433 by default) and enable remote connections on SQL Express which by default is not the case. But do you need access? Why not log in to the server using remote desktop and handle it from there?

Quote:
I have that installed already
Apparently not, or not on the instance you're testing this database on. If you're sure 2008 R2 is installed and not the standard 2008, start Management Studio, log in to your R2 instance and then attach this MDF.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
nanonerd (July 6th, 2012)
 
Old July 6th, 2012, 12:53 PM
Authorized User
 
Join Date: Sep 2011
Posts: 41
Thanks: 3
Thanked 4 Times in 3 Posts
Default Wow, thank you!

Imar,

Wow, thank you. I found MS SMS on the server and thru remote desktop, opened up MS SMS on the server and voila, it was already set up to connect and now, I found the database!

If not for your response, I would have been scratching my head trying to use MS SMS from my dev desktop and wondering what the server address was ...

Also, the prob with SQL Server 2008 R2 was that I didn't have SP1 installed. All good on that front too now ...

Muchos gracias!

- nano
 
Old July 6th, 2012, 03:54 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome. Glad you got it all resolved.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to find Time Tracker database - SQL junkerp BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 May 9th, 2009 07:29 AM
The SSE Provider did not find the database file Tawanda BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 June 16th, 2007 10:31 AM
Open Word Doc from Access - find, find next save donaldmaloney Access VBA 1 May 25th, 2005 11:09 AM
Create a find and a find and replace in VB.NET snowy0 VB How-To 0 January 26th, 2004 07:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.