Interesting issue with backup
Hello folks,I am having an interesting issue with backup (from a SQL2005+SP3 Instance) restore (to SQL2012+SP1).I performed DBCC CHECKDB before this in the SQL 2005 instance before this operation and...
View ArticleOracle long raw data in an oracle view were truncated when I select the view...
Hi,my issue was very strange. our SQL 2005 server needs to retrieve some data from an Oracle table, the oracle table contains a long raw datatype column. I created a linked server, run "select"...
View ArticleBest RAID for SQL Server 2008 R2 SE on SSD's
What is the best raid option for SQL Server 2008 r2 se on SSD's?I meant for ldf, mdf, tempdb. I am thinking of Raid 10 for the drives on which ldf and mdf resides and Raid 5 for the drive on which...
View ArticleTable Issue help Needed
Hi All,I have two tables. I have 55490 rows in one table and 29300 rows in another table. I have a query which joins these two table. One of the column in one table is of type Image. Now when i run my...
View ArticleDifferent query strategies with table variable and temporary table
Hi all.I'm currently writing an article for my blog entry and stumbling about a couriosity which maybe can be solved by the experts here. For the example I'm using the AdventureWorks2012...
View ArticleLine Numbers
Hi Can someone explain to me why the line numbers do not match on the sql error codes? e.g. Msg 241, Level 16, State 1, Line 3When I look at line 3 there is no issue!
View ArticleUsing DatabAse Mail System
HI Team,Want To Use DataBase MAil System. Can you Help us in sharing some perfect blogs/books/reference for the same. I want to Automatically Excel File From DataBase in SQL and Mail it through the SQL...
View ArticleIndex usage
I’ve been doing some analysis of our indexes with the thought of dropping unused indexes - and conserving space in our 1 TB database. I’m running the query below and have identified some indexes that...
View Articlespid -4 blocking the transactions
Hi All,We encountered a situation today where the spid -4 was blocking the transactions. We're not able to kill it as it was not treated as a valid spid by SQL server. We tried to get the UOW using...
View ArticleTest/Prod. Create Login With SID. Is it a good idea?
Hello everybody,I have 3 environments Prod/Test/Dev where I (and other database developers) periodically need to transfer databases from Prod to Test or from Test to Dev (using backup/restore)....
View ArticleTempdb unavailable couldnt find the error
HiI faced an issue today early morning. My instance is running on cluster, and suddenly at 3 am tempdb went unavailable. I checked the error logs, event logs and system logs but couldnt find the reason...
View ArticleError while taking SQL Bakcups..
We are getting an error few times like as stated belowBackupDiskFile::RequestDurableMedia: failure on backup device'PATH\FILE' . Operating system error 64(The specified network name is no longer...
View ArticleRestore database
Hi All,while am restoring the database, am getting following error like database backup set already exists.my backup version is sql 2000 and am restoring in sql 2008.I checked overwrite option...
View ArticleHow to make script or any other way to move or copy table with data ?
I want to move only table with data to another sql server 2008 R2 instance ?How to make one script or move more than one stored procedure to another instance of sql server ?
View ArticleSQL performance worse since moving to sql 2008 R2 from SQL 2000 sp4a
We had a SQL 2000 server on a HP GL370 G5 running Windows 2000 Advanced (awe enabled 8gb ram)We now have a HP DL580 running hyper-v core 4 Processors 16 cores per processorThe Guest that sql sits on is...
View ArticleSQL Server becomes Unresponsive
Hi, We are having this issue on our prod server from yesterday. Everytime this happens Server becomes unresponsive and I have to reboot the machine. Looks like this is being caused due to high...
View ArticleLimit memory used by DBCC CHECKDB without using resource governor.
When running DBCC checkdb it allocates over 189GB of memory as can be seen at(SELECT granted_memory_kb FROM sys.dm_exec_query_memory_grants). The server has 1TB memory and if that was the only database...
View ArticleEasy was to track and audit logon to a server?
Hi,What would be the easiest way to track and audit the login time and user IDs that are connected to a SQL server instance?Thank you,
View ArticleSQL Express 2008 r2 sp2 out of memory bug!
I have one query with 21072 individual update statements in SSMS. I am using sql express r2 sp2. I am updating only one varchar(255) text field with short strings < 100 chars. I only get partway...
View ArticleReset primary key value in sql server table
Solutions :- DBCC CHECKIDENT('Enter Your Table Name', RESEED, 0)Hope this Help...
View Article