RESTORE DATABASE WITH REPLACE Fails in SQL 2012 (Works in 2005/2008)
I have a commercial application that installs a database instance and restores a database from a .BAK file. I must be able to support SQL 2005/2008 and 2012. The instance of the database is created...
View ArticleWindows Azure Table Service Signature Access From Program
Hi, Am trying to access the GET Query Tables operation in Windows Azure through Rest API from Objective C. Am getting a 403 Forbidden error. Am suspecting the issue might be with the format of the...
View ArticleException happened when running extended stored procedure 'xp_delete_file' in...
I have gone through the related posts. However not found the answer to this problem.Environment: - OS Version: - 2003 R2 (SP2) 64 Bit SQL version: - Microsoft SQL Server 2008 (SP3) - 10.0.5788.0 (X64)...
View ArticleSequence Object Duplicate Values
Has anyone had an issue with getting duplicate values from a sequence object?We are using SQL Server 2012 SP1 and ran into an issue this weekend. We had patches applied to our SQL Server server and it...
View ArticleLocal temp table created inside stored procedure does not drop automatically...
Here I just want to play with local temp table behavior inside a stored procedure. I still create and drop temp table inside the same proc.Below is the sample...
View ArticleHow to attach a database in standby mode(SQL 2012)?
Hi experts, Let's assume I build log shipping in standby and my OS disk fail. I reinstall a new OS and due to some reasons, I want to read the data in standby DB(allow data loss). How do I attach a...
View ArticleSingle Out a Specific SQL Process
Guru's Is it possible to specifically identify a process belonging to SQL Server Processes category in a given machine(computer or server)?If it is possible can you show me the steps I should take to...
View ArticleTempDB blocking... finding the culprit......
We are starting to experience a growing number of exclusive locks in tempdb. 7am things look fine, 8 am lots of locks. Some of our sql tools are complaining about queries taking longer to run than in...
View ArticleSPpolicy_purge_history Jobs in progress for more than 9 hours. How to kill...
Dear All,I open the Job history and found that sppolicy_purge_history job was in progress for more than 9 hours and still its in progress. I stop the job but it still in progress.The step 3 is not able...
View ArticleNot all colums are getting updated with "WITH (ROWLOCK)" is used in a update...
Hi we are using following query in our code ; except DESC1 all other values are getting updatedSTATEMENT : "Update Table1 with (ROWLOCK) set DESC1 = ?, DESC2 = ?, INSTR =?, GRP =? where ID = ? "Can you...
View ArticleSQL 2012 filetable fileshare, cannot open Outlook msg file
I have mapped a filetable fileshare to a local drive. I am able to open most file types except an Outlook msg file. I get the standard "Cannot open file T:\etc..etc.msg. The file may not exist, you...
View ArticlePowershell invoke-sqlcmd calls stored procedure second time after Query...
We have a very strange issue. We have noticed that a single stored procedure is executed twice when is called by Powershell invoke-sqlcmd command.When we trace it we can see the procedure starts...
View ArticleSQL Server limits rows added to a table
Hi,I need to append over 50 million rows to a table in a database. Problem is, as soon as it reaches 3.6 million rows, it just stops inserting rows. There is no error raised. We have to manually...
View ArticleHow to migrate extended store procedure 64x DLL from SQL 2005 to SQL 2008 R2 ?
Hi! all,I need to migrate a database with extended store procedures from SQL 2005 64 bit EE to SQL Server 2008 R2 EE, the targuet os is Windows 2008 R2 EE.I went trought the...
View ArticleThe advantage of clustered index on primary key?
From MSDN documentation on primary keys and clustered indexes,PRIMARY KEY constraints create clusteredindexes automatically if no clustered index already exists on the table...
View ArticleMount Point drives are not visible in SQL Server cluster?
Mount Point drives are not visible in SQL Server cluster?
View ArticleDeadlocking analysis help needed..
Today I was approached by a developer whose app was deadlocking during testing. To emulate a user load he invoked a webservice in a loop with each loop having 10 invocations (each with different input...
View ArticleSQL Server 2012 TempDB ballooning to more than 75 GB
Hi,In one of our database while executing a procedure serving an important business logic, which has 11 joins, then a filtering on a specific column, sorting using order by on a specific column. In the...
View ArticleAWE memory high in RamMAP tool for Windows 64-Bit version?
I am trying to debug memory pressure on SQL Server 2008 Enterprise Edition running on Windows 2008 Standard 64-Bit. 1. AWE is not enabled.2. SQL Server agent and service accounts are added to "Lock...
View Articlehow to move database with snapshot?
i have a database for which i have created a database snapshot. how can i move the database files (and the snapshot file) to a different disk location? i cannot detach / attach because detach is not...
View Article