Email when High SQL Disk IO
Hi,Is there anyway I can setup an alert/email on my SQL server to fire email as it detect high DiskIO. we are having disk latency more often now and I can't narrow it down, as soon as tech team inform...
View ArticleScheduled Jobs and Server Maintenance
Hi All,Running SQL 2012. We have a series of scheduled jobs that run once per day, with no retry interval set. I was informed by IT today that they need to perform unscheduled maintenance on the...
View ArticleI/O Frozen message in the Error logs
I see very often this message, do I need to take care any precautions, is it going to effect in long run?I/O is frozen on database master. No user action is required. However, if I/O is not resumed...
View ArticleFilestream - SqlFileStream constructor throws "Access is denied"
SQL Server 2012, IIS 7.0, .Net 4.5Everything is fine when I stream a document on my dev machine (IISExpress), but on the staging server I getSystem.ComponentModel.Win32Exception (0x80004005): Access is...
View ArticleInstall second SQL instance onto existing cluster role
Hi,We have a 3 node cluster running Windows Server 2012 R2 with 5 SQL clustered roles running SQL 2012 spread across them. For certain reasons we have a requirement to install a second SQL named...
View ArticleTIMEFROMPARTS is not a recognized function in 2008 r2 mssql
I have three fields - starttime, duration (in hours), and endtime in mssql 2008 r2. Starttime and duration are entered in a form by endusers and I attempted to define trigger to insert/update endtime...
View ArticleMsg 1792, Level 16 on ALTER TABLE .. ALTER COLUMN
Hi, The following code result in warnings with MS SQL 2008, and fails with MS SQL 2012 (Msg 1792, Level 16): drop table test_error_1792 go create table test_error_1792 (LongChar char(8000), vc...
View ArticlePage Life Expectancy
Can anyone explain a PLE chart as below? The sudden drops to zero are at midnight - 2am.
View ArticleProblem setting up data collection for a performance problem
We have a performance problem on our production environment: there is a query that is long to display specially on specific records involving a lot of détails. I had the idea to set up data collection...
View ArticleUnable to open the physical file "D:\Program Files\Microsoft SQL...
hi,am running the below command for moving sql serevr mdf and ldf files from one drive to another : c drive to d drive:but am getting the below errorSQL...
View ArticleLogon trigger
Hi Expert, I am using below code for disabling user for from access through Management Studio:- SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TRIGGER [blocker] ON ALL SERVER FOR LOGON AS...
View ArticleA network-related error has occurred where Connecting to Hive ODBC by Linked...
1) I have created Hive ODBC Driver (Succesfully Tested) 2) I have created Linked Server on SQL Server 2014 (Succesfully Tested) 3) SELECT * FROM OpenQuery([SQLHive], 'SELECT * FROM hivesampletable;')...
View ArticleWith 2008 - What would be the 'best practice' approach for giving a principal...
I want to setup a job that runs a few select statements from several system management views such as those listed below. Its basically going to gather various metrics about the server, a few different...
View ArticleHow to avoid shared locks when validating foreign keys?
I have a table with a FK and I want to update a row in that table without being blocked by another transaction which is updating the parent row at the same time. Here is an example:CREATE TABLE...
View ArticleSQL Server Unexpected Restart - Checklist
We have pretty big databases on the SQL Server and as such we would not be able to run full DBCC, is the state_desc in sys.datbases shwoing online for the database good enoguh. Should we checking...
View ArticleCannot remove 2nd log file on AlwaysOn database
Hi all,I have a database, member of an availability group. This database has 2 log file, I want to remove the unsed secondary log file, I try to run this command to empty the second lofg file:USE...
View ArticleNon-yielding Resource Monitor - Issue on PROD server
HiMy PROD server frequently restarting after generating below dump.Pls help me to resolve the issues =====================================================================...
View ArticleSQL Server stopped responding suddenly....
Hi, Yesterday evening we observed very unusual behavior of one of our production server having SQL server 2008 R2 Enterprise Edition 64 Bit.Suddenly the server stopped responding and we are even not...
View ArticleReplace sql job definition without changing the schedule
Hello,I need to prepare a script to check if a job exists and if it does then it should replace just the job definition (steps), and keep the current state and schedule(s)Any ideas ?ThanksJavier...
View ArticleActiveWorkbook.Connections(Connection).OLEDBConnection -> Subscript out of...
With ActiveWorkbook.Connections(Connection).OLEDBConnection ' This statement is giving me a script out of range error...
View Article