mickthetree — 2010-06-30T08:06:49-04:00 — #1
I'm new to ASP.NET coming from a LAMP background. I have inherited a site running on Windows server 2003 on IIS6 using SQL server 2005. I'm using terminal services to connect to the web server.
The server has Visual Studio 2005 on it, but the project file is not available to me.
I have FTP access and have downloaded a copy of the entire site.
How do I view the database so I can run queries on it? Check data?
I would also like to configure a test environment on the server (test site and test DB). Can I create a new project in VS2005 and drop in all of the site files to work on them? Or is there more to it than this?
mickthetree — 2010-07-01T08:49:19-04:00 — #2
ah ha! I see I can right click on a table > script table as > Select to > New query.
This shows the full contents of the selected table.
mickthetree — 2010-07-01T08:24:42-04:00 — #3
thanks very much for your help so far.
The TS login I was using did not have the SQL Server management studio tools available but these have now been added. I can see the databases and tables etc.
I dont have the project files but I do have the .aspx and aspx.cs pages.
I'm assuming that I need to write a query to view all records in a table? I'm used to phpmyadmin where you can 'browse' a table.
wwb_99 — 2010-07-01T08:13:51-04:00 — #4
If you don't have the project file, and presumably the source code, you could have significant problems making material updates to the site.
Anyhow, you need to figure out where the database is hosted -- the connectionstrings bits in web.config should help -- then figure out how to get over there network-wise. Then get a sql query tool (sql server management studio express is good & free) to see the data.
r937 — 2010-07-01T07:16:10-04:00 — #5
sure, lots of them, just google "SQL Server query tool"
i use Query Express by albahari.com
mickthetree — 2010-07-01T06:14:39-04:00 — #6
I would have previously used phpmyadmin or mysql admin tools to view and amend a mysql DB.
Is there a similar system to view an mssql DB on the windows server?