How do I see the full SQLl/Query text of a spid?
How do I see the full SQLl/Query text of a spid?I use different ways to get the query, the problem is it truncates the end, so I cannot see the entire query/sql text. Is there another way to a...
View ArticleEncountered fatal system assertion check involving CLR UDF, calculated...
We encountered a situation where a table has a calculated column that uses a scalar user-defined function (UDF) defined AS an EXTERNAL NAME (is contained in a custom assembly) that returns an...
View ArticleSQL Server Agent Job Notifications Not Working
We have successfully setup Database Mail, and I am able to right click and 'Send Test E-Mail' and it works perfect. We have a few jobs setup in SQL Server Agent, and if the job fails it should e-mail...
View ArticleSQL CTE with 8 million rows and PIVOT
--Trying to see if there is a better way of handling this SQL code. This view will be leveraged in a Power BI report but we are trying to query over 8 million rows and never returns. We have added...
View ArticleConnecting to SQL Server without instance name
This is probably something basic I'm overlooking, but... I have a 2017 database engine on a named instance with non-default port. So connection string should be ServerName\InstanceName, xxxx. I can...
View Articlehigh logical fragmentation on disk but the disk is 99% empty
hi, I'm not sure if its the right forum and if it is not the right one, please point me to the right forum.I have a server with os 2012 R2 & SQL server 2012, used for small application with a...
View ArticleHow to add new db to existed maintenance plan
Hi,I am using sql2014. Created transaction log backup back maintenance plan for some of the databses. now i would like to add one more new database to existing tlogbackup maintenance plan. when i tried...
View ArticleNon-clustered indexes as Primary Keys
Hi everyoneI have noticed on a newly acquired instance that there are a number of tables with primary keys that have non-clustered indexes on them.What would be the use case and/or reason for this to...
View Articlecan one sql agent start two tasks in parallel?
Hi we run 2016 enterprise. I'd like one sql agent item to start tasks a and b so that a and b run in parallel. Is that possible?
View ArticleFunctions and Recompile
All,We have a database on SQLServer 2012 which is more of a Decision Support System. Users submit huge amount of data that needs to be processed by the database engine.Given the nature of the...
View ArticleUnicode/chinese characters in audit log
I have a Microsoft SQL Server 2016 (SP2-CU2-GDR) (KB4458621) - 13.0.5201.2 (X64) with change tracking enabled for several tables.Sometimes I see an expected error message like this a valid table name...
View ArticlePerformance Counter Alerts - Which Counters and their thresholds?
I know there are many counters for creating data collector sets in PerfMon, both SQL-specific counters and general system ones. But for Performance Counter Alerts, what is the short list of counters...
View Articleobfuscating automatically
Hi we run 2016 enterprise. I see a pretty good article at https://www.red-gate.com/simple-talk/sql/database-administration/obfuscating-your-sql-server-data/ (a bit dated) and cant help but wonder if...
View ArticleMerge on temporal table fails with Attempting to set a non-NULL-able column's...
Workflow:Create temporal table with default history table in a data warehouseCreate an index on the history tablePerform merge statements against the temporal table on an hourly basisNotice sometimes...
View ArticleFunction call through Linked Server returns wrong value
I have a SQL Server agent job that runs daily, and the first step is to check that a required process finished on another server. This check is done through a function, which I'm calling through...
View ArticleHow to get list of columns in the server that has at least one NULL or BLANK...
Hello there,I am trying to find all the columns that has at least one NULL or BLANK values. My output should be DB Name, Table Name, Column Name. This will be related to data in the table and not a...
View Articledeadlock frequently happen
deadlock happen V.frequently, how to prevent from this, deadlock grap xml attached<deadlock><victim-list><victimProcess id="process55c2667468"...
View ArticleDatabase is getting too big
We're currently running into some performance problems since our database is getting too big. Due to db size is increasing application cannot handle load and getting hang sometimes. Database size:...
View ArticleSQLServer 2017 Developer edition engine service stopped working after the...
SQLServer engine service stopped working after windows update for April Update installed that path...
View ArticleHigh consumed 99% CPU on SQL server
Hi I have been notice that SQL Server 99% touching . Checked dead lock. some of SQLs consumed CPUS but ave cpu ms is very law . (reports->Standred reports->top sql total cpu time). Check with...
View Article