?
Solved

Cleaning Up SQL Server

Posted on 2006-11-23
7
Medium Priority
?
2,304 Views
Last Modified: 2008-01-09
I've gone through several iterations of local SQL Server installs on my machine and would like to know what I should / need to keep and what I can get rid of.

I first installed MSDE 2000.  Created a bunch of databases.

Then installed Microsoft SQL Server 2000 standard edition.

Then installed Microsoft SQL Server 2005 from Visual Studio 2005.

Then installed Microsoft SQL Server Express (because I couldn't get website management tools to function using regular SQL Server 2005).

The SQL Programs listed in Add/Remove Programs (control panel) are:

 -- Microsoft SQL Server 2000 (plus Books Online and Sample Database Scripts) Combined size 151.99 MB
 -- Microsoft SQL Server 2005 (plus Backward Compatibility, Books Online, and Mobile Developer Tools) Combined size 8976.13 MB
 -- Microsoft SQL Server Desktop Engine - 58.99 MB
 -- Microsoft SQL Server Native Client - 4.16 MB
 -- Microsoft SQL Server Setup Support Files (English) - 20.00 MB
 -- Microsoft SQL Server VSS Writer - 0.66 MB


The folders in my [C:\Program Files\Microsoft SQL Server\] folder are:
Folder PATH listing
C:\PROGRAM FILES\MICROSOFT SQL SERVER
+---80
|   +---COM
|   |   \---Resources
|   |       \---1033
|   \---Tools
|       +---Binn
|       |   \---Resources
|       |       \---1033
|       +---Books
|       +---DevTools
|       |   +---Include
|       |   +---Lib
|       |   \---Samples
|       |       +---ado
|       |       +---dblib
|       |       +---desktop
|       |       +---dts
|       |       +---esqlc
|       |       +---misc
|       |       +---msdtc
|       |       +---odbc
|       |       +---ods
|       |       +---oleauto
|       |       +---sqldmo
|       |       +---sqlns
|       |       +---sqlrepl
|       |       +---utils
|       |       \---xml
|       +---HTML
|       +---Install
|       +---Scripts
|       \---Templates
|           +---DTS
|           +---SQL Profiler
|           \---SQL Query Analyzer
|               +---Attach and Detach Database
|               +---Create Database
|               +---Create Function
|               +---Create Index
|               +---Create Procedure
|               +---Create Statistics
|               +---Create Table
|               +---Create Trigger
|               +---Create View
|               +---Manage Extended Property
|               +---Manage Linked Server
|               +---Manage Login Role User
|               \---Using Cursor
+---90
|   +---COM
|   |   +---en
|   |   \---Resources
|   |       \---1033
|   +---DTS
|   |   +---Binn
|   |   |   \---Resources
|   |   |       \---1033
|   |   +---Connections
|   |   |   \---en
|   |   +---ForEachEnumerators
|   |   |   +---en
|   |   |   \---Resources
|   |   |       \---1033
|   |   +---LogProviders
|   |   +---MappingFiles
|   |   +---Packages
|   |   +---PipelineComponents
|   |   |   \---Resources
|   |   |       \---1033
|   |   \---Tasks
|   |       \---en
|   +---EULA
|   +---NotificationServices
|   |   \---9.0.242
|   |       +---Bin
|   |       |   +---de
|   |       |   +---en
|   |       |   +---es
|   |       |   +---fr
|   |       |   +---it
|   |       |   +---ja
|   |       |   +---ko
|   |       |   +---zh-CHS
|   |       |   \---zh-CHT
|   |       \---XML Schemas
|   +---SDK
|   |   +---Assemblies
|   |   |   \---en
|   |   +---Include
|   |   \---Lib
|   |       \---x86
|   +---Setup Bootstrap
|   |   +---1033
|   |   +---Bin
|   |   +---BPA
|   |   |   +---1033
|   |   |   +---bin
|   |   |   +---Repository
|   |   |   |   +---ASPNETUSERENCRYPTED
|   |   |   |   |   \---bin
|   |   |   |   +---DBUNWRITABLE_UPGBLKR
|   |   |   |   |   \---bin
|   |   |   |   +---DUPLICATEINDEX_UPGBLKR
|   |   |   |   |   \---bin
|   |   |   |   +---DUPLICATESID
|   |   |   |   |   \---bin
|   |   |   |   +---LOGINNAMEASSERVERROLE
|   |   |   |   |   \---bin
|   |   |   |   +---RESERVEDATABASEID
|   |   |   |   |   \---bin
|   |   |   |   +---RSCUSTOMASSEMBLIES
|   |   |   |   |   \---bin
|   |   |   |   +---RSCUSTOMSECURITY
|   |   |   |   |   \---bin
|   |   |   |   +---RSDEFAULTIIS
|   |   |   |   |   \---bin
|   |   |   |   +---RSDEFAULTIISYUKON
|   |   |   |   |   \---bin
|   |   |   |   \---YUK1_UPGBLKR
|   |   |   |       \---bin
|   |   |   \---Schemas
|   |   +---Help
|   |   |   \---1033
|   |   +---LOG
|   |   |   \---Files
|   |   \---Resources
|   |       \---1033
|   +---Shared
|   |   +---1028
|   |   +---1031
|   |   +---1033
|   |   +---1036
|   |   +---1040
|   |   +---1041
|   |   +---1042
|   |   +---2052
|   |   +---3082
|   |   +---ASConfig
|   |   +---ErrorDumps
|   |   \---Resources
|   |       \---1033
|   \---Tools
|       +---Bin
|       +---binn
|       |   +---Resources
|       |   |   \---1033
|       |   +---Samples
|       |   +---schemas
|       |   |   \---sqlserver
|       |   |       \---2004
|       |   |           +---07
|       |   |           |   +---dta
|       |   |           |   +---queryprocessor
|       |   |           |   \---showplan
|       |   |           +---bulkload
|       |   |           |   \---format
|       |   |           +---SOAP
|       |   |           |   +---options
|       |   |           |   \---types
|       |   |           |       +---SqlMessage
|       |   |           |       +---SqlParameter
|       |   |           |       +---SqlResultStream
|       |   |           |       +---SqlRowCount
|       |   |           |       \---SqlTransaction
|       |   |           \---sqltypes
|       |   \---VSShell
|       |       +---Common7
|       |       |   +---IDE
|       |       |   |   +---1033
|       |       |   |   +---DataWarehouseDesigner
|       |       |   |   |   +---DSVRefreshPage
|       |       |   |   |   |   \---Images
|       |       |   |   |   +---KPIsBrowserPage
|       |       |   |   |   |   \---Images
|       |       |   |   |   \---UIRdmsCartridge
|       |       |   |   +---HTML
|       |       |   |   |   \---XMLLinks
|       |       |   |   |       \---1033
|       |       |   |   +---PrivateAssemblies
|       |       |   |   |   \---1033
|       |       |   |   +---profiles
|       |       |   |   +---ProjectItems
|       |       |   |   +---PublicAssemblies
|       |       |   |   +---Resources
|       |       |   |   |   \---1033
|       |       |   |   +---SqlToolsData
|       |       |   |   |   \---1033
|       |       |   |   +---sqlworkbenchprojectitems
|       |       |   |   |   +---AnalysisServices
|       |       |   |   |   |   +---DMX
|       |       |   |   |   |   |   +---Model Content
|       |       |   |   |   |   |   +---Model Management
|       |       |   |   |   |   |   \---Prediction Queries
|       |       |   |   |   |   +---MDX
|       |       |   |   |   |   |   +---Expressions
|       |       |   |   |   |   |   \---Queries
|       |       |   |   |   |   \---XMLA
|       |       |   |   |   |       +---Management
|       |       |   |   |   |       +---Schema Rowsets
|       |       |   |   |   |       \---Server Status
|       |       |   |   |   +---Connections
|       |       |   |   |   +---Sql
|       |       |   |   |   |   +---Aggregate
|       |       |   |   |   |   +---Assembly
|       |       |   |   |   |   +---Backup
|       |       |   |   |   |   +---Certificate
|       |       |   |   |   |   +---Database
|       |       |   |   |   |   +---Database Mail
|       |       |   |   |   |   +---Database Trigger
|       |       |   |   |   |   +---Default
|       |       |   |   |   |   +---Earlier Versions
|       |       |   |   |   |   |   +---Attach and Detach Database
|       |       |   |   |   |   |   +---Create Database
|       |       |   |   |   |   |   +---Create Function
|       |       |   |   |   |   |   +---Create Index
|       |       |   |   |   |   |   +---Create Procedure
|       |       |   |   |   |   |   +---Create Statistics
|       |       |   |   |   |   |   +---Create Table
|       |       |   |   |   |   |   +---Create Trigger
|       |       |   |   |   |   |   +---Create View
|       |       |   |   |   |   |   +---Manage Extended Property
|       |       |   |   |   |   |   +---Manage Linked Server
|       |       |   |   |   |   |   +---Manage Logins, Roles, and Users
|       |       |   |   |   |   |   \---Using Cursor
|       |       |   |   |   |   +---Endpoint
|       |       |   |   |   |   +---Event Notification
|       |       |   |   |   |   +---Extended Property
|       |       |   |   |   |   +---Full-text
|       |       |   |   |   |   +---Function
|       |       |   |   |   |   +---Index
|       |       |   |   |   |   +---Linked Server
|       |       |   |   |   |   +---Login
|       |       |   |   |   |   +---Notification Services
|       |       |   |   |   |   +---Partition Function
|       |       |   |   |   |   +---Partition Scheme
|       |       |   |   |   |   +---Recursive Queries
|       |       |   |   |   |   +---Restore
|       |       |   |   |   |   +---Role
|       |       |   |   |   |   +---Rule
|       |       |   |   |   |   +---Service Broker
|       |       |   |   |   |   |   +---Application
|       |       |   |   |   |   |   +---Contract
|       |       |   |   |   |   |   +---EndPoint
|       |       |   |   |   |   |   +---MessageType
|       |       |   |   |   |   |   +---Queue
|       |       |   |   |   |   |   +---Route
|       |       |   |   |   |   |   +---Security
|       |       |   |   |   |   |   \---Service
|       |       |   |   |   |   +---SQL Trace
|       |       |   |   |   |   +---Statistics
|       |       |   |   |   |   +---Stored Procedure
|       |       |   |   |   |   +---Synonym
|       |       |   |   |   |   +---Table
|       |       |   |   |   |   +---Trigger
|       |       |   |   |   |   +---User
|       |       |   |   |   |   +---User-defined Data Type
|       |       |   |   |   |   +---User-defined Type
|       |       |   |   |   |   +---View
|       |       |   |   |   |   \---XML Schema Collections
|       |       |   |   |   \---SQLCE
|       |       |   |   |       +---Database
|       |       |   |   |       +---Index
|       |       |   |   |       \---Table
|       |       |   |   +---sqlworkbenchprojects
|       |       |   |   +---VS SCC
|       |       |   |   |   \---1033
|       |       |   |   \---Xml
|       |       |   |       \---1033
|       |       |   +---Packages
|       |       |   |   +---1033
|       |       |   |   \---Debugger
|       |       |   |       \---1033
|       |       |   \---Tools
|       |       |       \---VDT
|       |       |           \---1033
|       |       +---SDK
|       |       |   \---v2.0
|       |       |       \---Bin
|       |       \---Xml
|       |           +---1033
|       |           |   \---Snippets
|       |           \---Schemas
|       |               \---1033
|       +---Books
|       |   \---1033
|       +---Profiler
|       |   +---Templates
|       |   |   +---Microsoft Analysis Services
|       |   |   |   \---90
|       |   |   \---Microsoft SQL Server
|       |   |       +---80
|       |   |       \---90
|       |   \---TraceDefinitions
|       |       \---1033
|       +---Reporting Services
|       |   \---SharePoint
|       +---Samples
|       |   +---AdventureWorks Analysis Services Project
|       |   |   +---Enterprise
|       |   |   \---Standard
|       |   +---AdventureWorks Data Warehouse
|       |   \---AdventureWorks OLTP
|       \---Templates
|           \---olap
|               \---1033
|                   +---Cube Templates
|                   |   +---Adventure Works Enterprise Edition
|                   |   \---Adventure Works Standard Edition
|                   \---Dimension Templates
+---InetPub
|   \---wwwroot
+---MSSQL
|   +---Binn
|   |   \---Resources
|   |       \---1033
|   +---Data
|   +---Install
|   \---LOG
+---MSSQL.1
|   +---MSSQL
|   |   +---Data
|   |   +---LOG
|   |   \---Template Data
|   \---OLAP
|       +---Backup
|       +---bin
|       |   +---Cartridges
|       |   +---en
|       |   +---isapi
|       |   |   \---Resources
|       |   |       \---1033
|       |   \---Resources
|       |       +---1028
|       |       +---1031
|       |       +---1033
|       |       +---1036
|       |       +---1040
|       |       +---1041
|       |       +---1042
|       |       +---2052
|       |       \---3082
|       +---Config
|       +---Data
|       |   +---ExcelMDX.0.asm
|       |   +---System.0.asm
|       |   +---VBAMDX.0.asm
|       |   \---VBAMDXINTERNAL.0.asm
|       \---Log
+---MSSQL.2
|   \---Reporting Services
|       +---LogFiles
|       +---ReportManager
|       |   +---Bin
|       |   |   +---de
|       |   |   +---es
|       |   |   +---fr
|       |   |   +---it
|       |   |   +---ja
|       |   |   +---ko
|       |   |   +---zh-CHS
|       |   |   \---zh-CHT
|       |   +---de
|       |   |   \---help
|       |   +---en
|       |   |   \---help
|       |   +---es
|       |   |   \---help
|       |   +---fr
|       |   |   \---help
|       |   +---images
|       |   +---it
|       |   |   \---help
|       |   +---ja
|       |   |   \---help
|       |   +---js
|       |   +---ko
|       |   |   \---help
|       |   +---Pages
|       |   +---Styles
|       |   +---zh-CHS
|       |   |   \---help
|       |   \---zh-CHT
|       |       \---help
|       +---ReportServer
|       |   +---bin
|       |   |   +---de
|       |   |   +---es
|       |   |   +---fr
|       |   |   +---it
|       |   |   +---ja
|       |   |   +---ko
|       |   |   +---Resources
|       |   |   |   +---1028
|       |   |   |   +---1031
|       |   |   |   +---1033
|       |   |   |   +---1036
|       |   |   |   +---1040
|       |   |   |   +---1041
|       |   |   |   +---1042
|       |   |   |   +---2052
|       |   |   |   \---3082
|       |   |   +---zh-CHS
|       |   |   \---zh-CHT
|       |   +---Pages
|       |   +---ReportBuilder
|       |   |   +---1028
|       |   |   +---1031
|       |   |   +---1036
|       |   |   +---1040
|       |   |   +---1041
|       |   |   +---1042
|       |   |   +---2052
|       |   |   +---3082
|       |   |   +---de
|       |   |   +---es
|       |   |   +---fr
|       |   |   +---it
|       |   |   +---ja
|       |   |   +---ko
|       |   |   +---zh-CHS
|       |   |   \---zh-CHT
|       |   \---Styles
|       \---RSTempFiles
\---MSSQL.3
    \---MSSQL
        +---Backup
        +---Binn
        |   \---Resources
        |       \---1033
        +---Data
        +---Install
        +---LOG
        +---repldata
        \---Template Data

The MSSQL.2 "Reporting Services" folder is huge (6+ GB) and has a bunch of mdmf and log files that I can't imagine ever using.  In fact I don't think I'm using "Reporting Services" (I'm not generating any reports).  Services running under Admin Tools : Services related to SQL Server are:

MSSQLSERVER {depends on SQL Server Agent}
SQL Server (SQLEXPRESS) {no dependencies}
SQL Server Active Directory Helper [not started] {no dependencies}
SQL Server Analysis Services (MSSQLSERVER) {no dependencies}
SQL Server Browser {no dependencies}
SQL Server Reporting Services (MSSQLSERVER) {no dependencies}
SQL Server VSS Writer {no dependencies}
SQL Server Agent {depended upon by MSSQLSERVER}

So, what I need is essentially Microsoft SQL Server 2005, but also, apparently, SQLExpress to "Manage a Website" in Visual Studio.  If I delete the SQL2000 and MSDE apps, will I lose any of my databases?  They all appear in SQL 2005 Management Studio - but I'm quite afraid.

Anyone out there got any suggestion on how to clean up this mess?

0
Comment
Question by:kmoloney
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 29

Accepted Solution

by:
Nightman earned 1600 total points
ID: 18004577
To start with, get all of your databases running on SQL 2005 - you can do this by detaching them from the old instances and re-attaching them to SQL 2005 (http://support.microsoft.com/kb/224071/EN-US/).

Once you are happy that all of your databases are running on SQL 2005 and your applications can connect to them, then you can uninstall the other instances (I would start with the MSDE and SQL 2000).

Then also uninstall SQL 2000 Books Online and samples.
0
 
LVL 2

Author Comment

by:kmoloney
ID: 18005145
Are the SQL Server Browser and/or SQL Server VSS Writer services utilized by SQL 2005?
0
 
LVL 29

Expert Comment

by:Nightman
ID: 18005149
Yes.
0
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 
LVL 2

Author Comment

by:kmoloney
ID: 18010276
Okay, this will be a lot of work, based on the post.  In the meantime, can I get rid of the mdmf files, and possibly the log files, in the "Reporting Services" subdirectory of MSSQL.2?  Most of them aren't any more recent than May 2006?  There seems to be two batches in that directory (all files are less than 1K unless noted):

Group 1 (Seems recent - starts at 11/9/2006, when I think I installed SQL Server 2005)

 - A huge SQLDUMPER_ERRORLOG.log dated yesterday (552 MB)
 - SQLDmpr10000.log
 - SQLDmpr10000.mdmp
 - SQLDmpr0667.suo
 - SQLDmpr0667.sln
 - About 48 files starting either with "ReportServerService_" or "ReportServerService_Main_" concatenated with the date and time (e.g., "11_23_2006_06_45_44.log")

Group 2 (Most recent is 5/21/2006)

 - 9,999 files ranging from 5/18/2006 to 5/21/2006 named "SQLDmprNNNN.log", where NNNN is a sequential number starting at 0001 and ending at 9999.  Total size of all files, about 1.366 GB.  Average file size: 137K.

 - 9,999 files ranging from 5/18/2006 to 5/21/2006 named "SQLDmprNNNN.mdmp", where NNNN is a sequential number starting at 0001 and ending at 9999.  Total size of all files, about 4.860 GB.  Average File size:  486K.

Total size of both *.log and *.mdmp files between 5/18 and 5/21/2006:  6.226 GB.

Can I just delete these stinkin' files for now (those that go back to 5/18 to 5/21)?  Don't know why the logs were being generated so foraciously.  It looks like a log was created once every minute, with a few exceptions (<5%).  Plus, like I said, I don't think I'm even using reporting services...I'm not that familiar with reporting services (obviously), but the only "reporting" I might do would be a crystal report bound to a DB.










0
 
LVL 2

Author Comment

by:kmoloney
ID: 18010278
Also, do I really need SQLExpress running concurrently with SQL Server 2005 just to allow "Manage Your Website" available?

I know this is extra info, so I'm increasing points.

0
 
LVL 2

Author Comment

by:kmoloney
ID: 18010281
...but, it is part of "Cleaning up SQL Server," in that you shouldn't need two versions running - otherwise, if it was a totally divergent question, I wouldn't have posted it.
0
 
LVL 29

Expert Comment

by:Nightman
ID: 18010567
You don't need SQL Express running at the same time as SQL Server 2005. Anything you can do with express you can do with the full version.

BEFORE you delete any files, uninstall al the software that you want to remove. At the end of this, you should have a single SQL Server instance. Then you can delete any remaining files in the other instance folders (MSSQL.1, etc). You need to identify which one of these is the now live SQL Server, and delete accordingly.

You can clear the dump and log files. However, these probably suggest that your SQL Server has been falling over recently (I suspect that is why you are cleaning up your machine). Delete as you wish.
0

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question