SQL Server General DBA

How to Manually Uninstall SQL Server 2005

Sometimes, you may find that, though you can’t see any SQL Server 2005 instance in the programs list and when you try to install SQL Server 2005, you get a messages saying that there is already a SQL Server instance or some components such as SQL Server Management Studio installed. The reason for this is the existence of corrupted SQL […]

How to send a SSRS report from SSIS?

Often there is a requirement to be able to send a SSRS report in Excel, PDF or another format to different users from a SSIS package one it has finished performing a data load. In order to do this, first you need to create a subscription to the report. You can create a SSRS report […]

How to alter a User Defined Data Type?

The only way to alter a User Defined Data Type is to create a new User Define Data Type (UDDT), and change out all existing column to that UDDT, then you can drop the original one, and recreate it and change out the change you made previously.  The problem is that you can’t drop the UDDT […]

How to view previous query plans?

How do you view previous query plans? You can view previously run queries’execution plan using sys.dm_exec_query_plan dmv and joining it with other two dmvs in SQL Server 2005. select qs.execution_count       , qs.total_elapsed_time, qs.last_elapsed_time      , qs.min_elapsed_time, qs.max_elapsed_time      , substring(st.text, (qs.statement_start_offset/2)+1                         , ((case qs.statement_end_offset                               when -1 then datalength(st.text)                                else qs.statement_end_offset                            end – […]

Cannot Start SQL Server Service

When you try to start the SQL Server service it may fail with the following errors logged in Application log in Event Viewer. TDSSNIClient initialization failed with error 0x7e, status code 0×1. Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately […]

Errors when SQL Server Snapshot Replication is Running

The following errors may occur when SQL Server Snapshot replication is running: Cannot DROP TABLE <Table Name> it is being referenced by object <View Name>. Cannot TRUNCATE TABLE <Table Name>because it is being referenced by object <View Name>. Data changes are not tracked for snapshot replication, each time a snapshot is applied, it completely overwrites the […]

Error messages when you try to process a database or a cube in SQL Server 2005 Analysis Services: “The attribute key cannot be found” and “The record was skipped because the attribute key was not found”

The may receive the following error messages when you try to process a database or a cube in SQL Server 2005 Analysis Services: “The attribute key cannot be found” and “The record was skipped because the attribute key was not found”. Solution This issue occurs because a fact table for a cube has one or […]

Database Mirror Certificate Expired

When certificates are created, if you didn’t specify the EXPIRY_DATE parameter with an expiry date, it will be set to one year.  Hence the certificate will expire in one year.  The following method can be used to specify an expiry date for a certificate. CREATE CERTIFICATE cert_Mirror WITH SUBJECT = ‘database mirroring certificate’, EXPIRY_DATE = ’12/31/2030′;  Although […]

How to replicate more than 256 articles in Merge Replication?

In merge replication there is a limitation in the maximum number of articles that you can publish, which is 256. However, this limitation is 32,767 articles for snapshot and transactional replication.  This is a very small number of articles for large systems, however the following workaround can be used to publish additional articles. 1. Create several publications so that […]

SQL Server 2005 – clients using native client, should clients be upgrade as well

As you may be aware that SQL Server 2005 is steady and for the DBAs the task is to upgrade the database, in this scenario there will be a big question that whether the clients should be upgraded to use SQL Native client on the server. The backward compatibility of SQL Server 2005 engine will […]
Software Reviews | Book Reviews | FAQs | Tips | Articles | Performance Tuning | Audit | BI | Clustering | Developer | Reporting | DBA | ASP.NET Ado | Views tips | | Developer FAQs | Replication Tips | OS Tips | Misc Tips | Index Tuning Tips | Hints Tips | High Availability Tips | Hardware Tips | ETL Tips | Components Tips | Configuration Tips | App Dev Tips | OLAP Tips | Admin Tips | Software Reviews | Error | Clustering FAQs | Performance Tuning FAQs | DBA FAQs |