Quantcast
Channel: SQL Server Database Engine forum
Browsing all 5123 articles
Browse latest View live

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 Article


Scheduled 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 Article


I/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 Article

Filestream - 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 Article

Image may be NSFW.
Clik here to view.

Install 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 Article


TIMEFROMPARTS 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 Article

Msg 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 Article

Image may be NSFW.
Clik here to view.

Page Life Expectancy

Can anyone explain a PLE chart as below? The sudden drops to zero are at midnight - 2am.

View Article


Problem 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 Article


Unable 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 Article

Logon 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 Article

A 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 Article

With 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 Article


How 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 Article

SQL 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 Article


Cannot 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 Article

Non-yielding Resource Monitor - Issue on PROD server

HiMy PROD server frequently restarting after generating below dump.Pls help me to resolve the issues  =====================================================================...

View Article


SQL 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 Article

Replace 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 Article

ActiveWorkbook.Connections(Connection).OLEDBConnection -> Subscript out of...

With ActiveWorkbook.Connections(Connection).OLEDBConnection  ' This statement is giving me a script out of range error...

View Article
Browsing all 5123 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>