sql server performance report
Hi Everyone,I got a SQL Server 2k5 instance. Now I want to get some performance report including the average memory usage, average CPU usage, active connections on a weekly basis. Is it possible to...
View Articlesp_send_dbmail problem
I am trying to send an email with the results in the body of the message. Below is the code and below that is the error. DECLARE @mailprofile VARCHAR(200) declare @query nvarchar(max) SET @query =...
View ArticleSnapManager for SQL Backups
Hi Folks:Is any one configured SnapManager for SQL Server backups in virtual enviornments.If yes: Please let us know the Advantages and Dis-advantages of this.Thanks for your help...!Satish...
View ArticleCursor in userdefined function
Hi All,Please help me this is a urgent requestI have a oracle function that has been created now i wanted that to be created in sqlserver. Can u pelase suggest me any link or script where i can use the...
View ArticleSQLSERVER Function with cursor
Hi All,Am basically from oracle, i have a function with cursor here i have created in oracle. May you please help me in modifying this into sqlserver. FUNCTION fun_din (id IN NUMBER, dim IN VARCHAR2...
View ArticleMsg 6522, Level 16, State 1, Procedure sp_printstatement, Line 0
Hello. we got a problem after patching our Windows server 2008R2 on which SQL 2012 cluster is built. when we run sp_browsereplcmds it gives following message. when SQL server on unpatched node, there...
View ArticlePerformance issues with change tracking
HI ,We ahve change tracking enabled on one of our server an year back (SQL Server 2008 + SP1), we are seeing the "'sys.syscommittab'" is 50 GB in size and anything running on that instance is very slow...
View ArticleRegarding the Batch file running the stored proc to backup the Databases
Hello,I have a SQL Server 2008 R2 Express edition.I created a batch file at c:\SQLServer\Backups . This Batch file contains the Stored procedure which takes the Backup of all the Databases and places...
View ArticleMultiple Partition on one Filegroup in SQL Server 2008
Hi Experts,My business requires to create the filegroup year base and partition on quarter base which resides in that year base filegroup.Ex: 2010 (FG) --> Q1,Q2,Q3,Q4 (Partitions).I google it but...
View ArticleDB Server Freezing!!
Dear Gurus, I am not even able to log in to the SQL Server machine!! Any ideas why that happens? Any way to find out more details when the machine lets me back in? Do you think it is the machine or the...
View ArticlePowerShell script to delete BAKs from mulitple child folders on a UNC share
Afternoon,I have been trying to roll my own ps script to accomplish a cleanup task but I am rather new to ps and am not getting the results I am needing.Here are the criteria I am shooting for:1....
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 ArticleSQL Server management studio is not showing the entire data
Hi Team,There is varchar(max) column in a table when i do select on that column in management studio it is not showing entire data it is only showing 4000 characters. How to enable to show the entire...
View ArticleStart with Connect by prior
Hi All,Can anyone please help me in making this oracle sequel statement into Sql Server. select name from (select id, info_id from wp_tasks start with id = task_id connect by...
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 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 Article