Performance 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 ArticleAre you very knowledgeable about SQL Server Database Engine? Win love and...
TechNet Wiki is looking for and celebrating the best of the best!Is that you? Do you consider yourself an expert, authority, or just pretty good at this technology?Show us your forum solutions and...
View ArticleHelp tracking down T-SQL changes needed to up compatibility level
I have a set of databases with several hundred SPs. They were originally on SQL 2000 and are now running on SQL 2008 R2, with compatibility mode 80.Since going to 2012 is only a matter of time and 80...
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 Articleunincremental table and its query with incremental tables
Hallo i am total New to ms sql And i have been giving an assignment to Create a Database with 4 tables and After then Create an App. for Users, which i did´with MS Access. One of this tables is like...
View Articlehow to send alert from sql server to a group for job failure?
hi friends,Can any one help me in this issue.I am working in MSSQL Server 2012. I do not have any monitoring tool in my server. Is there any way so that me and my colleague's must be notified for the...
View ArticleIP addresse blocked for a specific database in the same named instance.
Hello, Please can you help me? I have a big problem with SQL server 2012 installed on the windows server 2012 : I have three Databases on a named instance 192.168.1.1\BIOUGNACH2012SP1 and some time the...
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 ArticleData Type for a REPLACE statement
Hi,May I know what is the data type of this query after REPLACE is applied? Date or string? declare @date as datetime2(0) set @date = '2013-10-13 23:54:02.32365' print replace(convert(date, @date,...
View ArticleConvert a datetime to YYYYMMDD
Hi,Is there a way to convert a date (e.g. 2013-10-13) to int ( 20131013) without converting the date to varchar first and then to int?cherriesh
View ArticleHow to call a sql server stored procedure
Hi, I have a stored procedure parameters are emp_no, avgsal.numberi have data in a table.my request is take emp_no from table and pass parameter to procedure .For this one i want create a procedure and...
View ArticleSQL Srever multiple instance on same server
Hi Everyone, To maintan multiple version of sql server I have intalled sql server 2005/2008 R2 and sql server 2012 on same developement server. When I am opening any of the SSMS (2005/2008 r2/2012)...
View Article2012 sql cluster / maintenance job - update statis is slow
2012 sql cluster when using maintenance plan for update stats, it takes about 10 minutes. When using script from the plan, it takes a second. No error. Any checking that we should do? Thanks,
View Articlesql 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 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 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 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 Article