Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Microsoft SQL Server Tips & Tricks
Tips and Tricks for the SQL Server Enthusiast
RSS for posts
Database Engine
blogs
Analysis services
blogs
Reporting services
blogs
Integration services
blogs
Data access tech blogs
Database Engine videos
Analysis services videos
Reporting services videos
Integration services videos
Data access tech Videos
Common Tasks
Blog Home
Email Blog Author
About
RSS for comments
RSS for posts
Atom
Search
Tags
analysis services
Backup
Cluster
DBVideo
Encryption
Installation
OLAP
Performance
query plan
replication
Security
Setup
SQL
sql 2000
sql 2005
SQL 2008
SQL query plan
SQL Server
SQL Server 2000
SQL Server 2005
sql Server 2008
SQL Server 2008 R2
Transactional Replication
update statistics
Upgrade
Archives
Archives
May 2013
(2)
April 2013
(2)
March 2013
(1)
December 2012
(2)
June 2012
(7)
May 2012
(1)
April 2012
(3)
March 2012
(5)
February 2012
(4)
January 2012
(3)
December 2011
(4)
November 2011
(3)
October 2011
(4)
September 2011
(1)
August 2011
(5)
July 2011
(3)
June 2011
(6)
May 2011
(10)
April 2011
(1)
March 2011
(1)
February 2011
(6)
January 2011
(3)
December 2010
(4)
November 2010
(2)
October 2010
(4)
September 2010
(9)
August 2010
(4)
June 2010
(4)
May 2010
(15)
April 2010
(18)
March 2010
(18)
February 2010
(7)
December 2009
(8)
November 2009
(7)
October 2009
(10)
September 2009
(6)
August 2009
(13)
July 2009
(5)
June 2009
(15)
May 2009
(5)
April 2009
(15)
March 2009
(15)
February 2009
(8)
January 2009
(9)
December 2008
(5)
November 2008
(2)
October 2008
(10)
September 2008
(5)
August 2008
(2)
July 2008
(7)
June 2008
(4)
May 2008
(1)
April 2008
(1)
MSDN Blogs
>
Microsoft SQL Server Tips & Tricks
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Microsoft SQL Server Tips & Tricks
BCP in SQL server 2005 does not truncate a column
Posted
over 3 years ago
by
AmruthaVarshiniJ
2
Comments
BEHAVIOR/SYMPTOMS: During a BCP operation in SQL 2005, a column with less precision gets truncation errors.BCP in SQL Server 2000 didn’t report truncation errors which could affect business logic in applications where precision data up to a certain decimal...
Microsoft SQL Server Tips & Tricks
BCP command calling Stored procedure with dynamic SQL and not having the first statement as a Select fails with the following Error "Error = [Microsoft][SQL Native Client]BCP host-files must contain at least one column"
Posted
over 4 years ago
by
Rajesh Setlem
4
Comments
Environment SQL Server 2005 AND SQL Server 2008. The same command works fine in SQL SERVER 2000. Steps to Repro create proc p1 as declare @typ sysname select @typ = name from (select 'ntext' as name) as t <== FMTONLY mode does not execute this statement...
Microsoft SQL Server Tips & Tricks
SQL SERVER 2005 RESOURCE FAILS TO COME ONLINE ON CLUSTER AFTER CHANGING THE SAN DRIVE TO ADD MORE DISK SPACE
Posted
over 4 years ago
by
Parikshit Savjani
10
Comments
We have observed a number of issue now where in clustered instance of sql server 2005 fails to come online after performing changing on shared disk on a cluster. As mentioned in my previous posts if the sql server fails to come online we need to start...
Microsoft SQL Server Tips & Tricks
Using Bulk Logged recovery model for Bulk Operations will reduce the size of Transaction log backups – Myths and Truths
Posted
over 2 years ago
by
Balmukund
18
Comments
It's has been couple of years for me working on SQL Server and I keep coming across various SQL Server misconceptions (or say a DBA Myth). In this specific post I’ll demystify a common DBA myth around log-shipping: " In a log shipping setup, to have...
Microsoft SQL Server Tips & Tricks
SQL Server Agent cannot start because the instance of the Server Instance is not the expected Instance
Posted
over 3 years ago
by
AmruthaVarshiniJ
1
Comments
Problem: SQL Server Agent cannot start because the instance of the Server Instance is not the expected Instance The SQL Server Agent may fail to start after a restart of the SQL Services. You may see this issue when you have multiple SQL Server...
Microsoft SQL Server Tips & Tricks
How to move Publication database and Distribution database to a different location
Posted
over 3 years ago
by
AmruthaVarshiniJ
4
Comments
Consider a scenario where we have set up a transactional replication between two servers and you want to MOVE the publication database and Distribution database to a different location. The procedure for moving the system database ‘Distribution...
Microsoft SQL Server Tips & Tricks
How to install Clustered SQL Server 2008 on Windows 2008 Cluster using Hyper-V (Guest Clustering) Part – 2
Posted
over 3 years ago
by
Balmukund
8
Comments
Thanks for overwhelming response of part 1 of the series. As a part of this series, we have created a Domain Controller (Win2k8MyDC). Let’s go ahead and follow the steps below to add two more machines into my domain (blakhani.com). For this you need two...
Microsoft SQL Server Tips & Tricks
SQL Server 2005 setup fails on windows 2008 due to corrupt VC++ component
Posted
over 3 years ago
by
AmruthaVarshiniJ
2
Comments
Here is a scenario where you might end up receiving a Fatal Error while installing SQL 2005 on Windows 2008 environments. Below is the snippet from the Setup logs: Summary Log: ========== OS Version : Server 4.0, Enterprise Edition Service...
Microsoft SQL Server Tips & Tricks
While Installing SQL 2005 Express Edition we hit the error -- The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine <Computer Name> Error:2147749896 (0x80041008)
Posted
over 3 years ago
by
AmruthaVarshiniJ
2
Comments
Symptoms: Application Popup Error: =========================== The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine <Computer Name> Error:2147749896 (0x80041008). [Environment]...
Microsoft SQL Server Tips & Tricks
How to list all the installed SQL Server on the Server using TSQL
Posted
over 4 years ago
by
Parikshit Savjani
3
Comments
The SQL Server instances are independent and do not know each other. The method is to query the registry to find the instances. You can use the following Script to list all the installed sql server on the server using TSQL Solution ======...
Microsoft SQL Server Tips & Tricks
Behavior of WITH NOWAIT option with RAISERROR in SQL Server
Posted
over 4 years ago
by
Parikshit Savjani
6
Comments
In some situations you would like to use WITH NOWAIT option in SQL Server RAISERROR statement, but somehow you usually have to wait until the procedure is complete before seeing messages. You search through MSDN links but end up reading several different...
Microsoft SQL Server Tips & Tricks
How to find who is using / eating up the Virtual Address Space on your SQL Server
Posted
over 3 years ago
by
AmruthaVarshiniJ
3
Comments
Well, this is often a tricky situation, where you are running into Virtual Address Fragmentation and getting OOM (out-of-memory) errors in your SQL Server. More often than not there is confusion between physical memory pressure vs. virtual memory pressure...
Microsoft SQL Server Tips & Tricks
Unable to failover a Named instance of SQL server 2005 in cluster or unable to bring a Named Instance of SQL server 2005 Online
Posted
over 4 years ago
by
sequelguy
1
Comments
The problem is that we have a Named instance of SQL Server 2005 in a 2 node cluster. While trying to bring the SQL Services online we get these error messages in the Application Event Log. Application Event Log: Event Type: Error Event Source...
Microsoft SQL Server Tips & Tricks
You encounter report server connection failure with below error message. Below is one of the instance which I witnessed while connecting through SSMS, it fails while using the server name (SERVERNAMEABC)
Posted
over 4 years ago
by
Parikshit Savjani
0
Comments
You encounter report server connection failure with below error message. Below is one of the instance which I witnessed while connecting through SSMS, it fails while using the server name (SERVERNAMEABC) Error: ===== TITLE: Connect to Server --...
Microsoft SQL Server Tips & Tricks
Unable to read trace definition file Microsoft SQL Server TraceDefinition n.n1.n2.xml
Posted
over 2 years ago
by
Nikesh Mhatre
4
Comments
Symptoms When you open SQL Server profiler, and try to start a new trace (or when try to open an existing trace ), you get the error " Unable to read trace definition file Microsoft SQL Server TraceDefinition 9.0.1187.xml. Click OK to retreive...
Microsoft SQL Server Tips & Tricks
RESTORE DATABASE fails while trying to restore password protected backup set from SSMS
Posted
over 3 years ago
by
AmruthaVarshiniJ
1
Comments
ISSUE: I’m trying to restore a database backup from SSSMS-UI, however it fails in an initial stage with below error TITLE: Microsoft SQL Server Management Studio ------------------------------ Specified cast is not valid. (SqlManagerUI) ----...
Microsoft SQL Server Tips & Tricks
Not able to restore backup from tape for large databases on the SQL Server 2005
Posted
over 4 years ago
by
sequelguy
3
Comments
We get the below error message when we try to restore from tape for large databases. ERROR MESSAGE: ============== TITLE: Microsoft SQL Server Management Studio ------------------------------ An exception occurred while executing a Transact...
Microsoft SQL Server Tips & Tricks
Installation for SQL Server 2008 Management studio fails with the MSI error code: 0x5EBE5729
Posted
over 3 years ago
by
AmruthaVarshiniJ
0
Comments
SYMPTOMS: ========== Installation for SQL Server 2008 Management studio fails with the MSI error code: 0x5EBE5729 //////////////From Summary.txt//////////////////// Feature: Management Tools - Complete Status: Failed: see logs for details...
Microsoft SQL Server Tips & Tricks
SCAN COUNT meaning in SET STATISTICS IO output
Posted
over 3 years ago
by
AmruthaVarshiniJ
7
Comments
What does the Scan Count output in the SET STATISTICS IO output actually mean? I have seen multiple posts on the web regarding confusions and theories around this. As per Books Online , Scan Count is: Number of index or table scans performed. ...
Microsoft SQL Server Tips & Tricks
SQL Server 2008 Configuration Manager on a 64 bit machine does not display Network configuration & Native Client configuration options
Posted
over 3 years ago
by
AmruthaVarshiniJ
4
Comments
PROBLEM: When you open SQL Server 2008 configuration manager you do not see the following options : Scenario 1 (64 bit options): 1) SQL Native Client 10.0 configuration 2) SQL Server Network configuration Scenario 2 (32 bit...
Microsoft SQL Server Tips & Tricks
HOW TO IDENTIFY COMPRESSED TABLES BEFORE RESTORING/MIGRATING DATABASE to any edition other than Enterprise Edition of SQL Server 2008
Posted
over 3 years ago
by
AmruthaVarshiniJ
0
Comments
PROBLEM DESCRIPTION =================== While trying to migrate the database from sql2008 enterprise to standard you get the following error: TITLE: Microsoft SQL Server Management Studio ------------------------------ Restore failed...
Microsoft SQL Server Tips & Tricks
INFORMATIONAL: Understanding and Troubleshooting MSP Error: 29512 SQL Server Setup was unable add user <Domain\Username>, when you try to install SQL Server 2005
Posted
over 4 years ago
by
sequelguy
2
Comments
Good morning Folks! Today I will take you through a setup issue that many of you might have run into when trying to install SQL Server 2005 (especially on a cluster). I’ve tried to list down all possible solutions to the following errors one faces while...
Microsoft SQL Server Tips & Tricks
INF: SQL Security - Restricting access to public on server/database objects, its implications and ownership chains
Posted
over 3 years ago
by
AmruthaVarshiniJ
0
Comments
INF: SQL Security - Restricting access to public on server/database objects, its implications and ownership chains There are times when you need to harden the security of your SQL Server and prevent the public/guest users from having access to certain...
Microsoft SQL Server Tips & Tricks
Drop failed for Login since it has granted one or more permission(s)
Posted
over 3 years ago
by
AmruthaVarshiniJ
1
Comments
Suppose you encounter the following scenario:- SQL Server 2005 login ‘Test2’ is a member of only Public server role and is not mapped as a User in any Database, nor does it own any Schema. We can verify that the login 'Test2' is not mapped as a...
Microsoft SQL Server Tips & Tricks
How to impersonate the privileges to create a login using the Stored procedures using “EXECUTE AS” clause
Posted
over 4 years ago
by
Parikshit Savjani
1
Comments
As most of the times we do it in a simple way descirbed below. but when we try to do the same through stored procedure it fails. Just for information regarding impersonation:- http://msdn.microsoft.com/en-us/library/ms188354(SQL.90).aspx Solution...
Page 3 of 13 (315 items)
1
2
3
4
5
»