Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Administration |
Support removing a RID lookup | Different execution plan between environments - Hey all, We've made some optimization to this view and the indexing. Actually had it running quite well as of the last several weeks. As of these past couple days, the query is taking far too long to return a full data set. I can do a select * from my local 2017 instance, in […] |
SQL Server 2016 - Administration |
Always on automatic fail-over SQL 2016 Standard edition supports it ? - quick question? Always on SQL WSFC configuration , automatic fail-over SQL 2016 Standard edition supports it ? I know enterprise supports it. |
SQL Server 2016 - Development and T-SQL |
Strange Attachment Corruption for Database Mail - I wrote a SPROC to email some data. CSV file, single data string column. Between 100KB and 5MB in size Started with a Query Attachment. Opened attachment from the email and saw that after a few thousand rows, the data corrupted. Next I tried using BCP to create the file, then get Database Mail to […] |
Administration - SQL Server 2014 |
CMEMTHREAD Waits - There seems to be very little information around this wait type, besides the basic description, there's almost nothing about what actually causes it, and what can be done to resolve/reduce it. The server is SQL Server 2014 SP3 CU4, Enterprise Edition, and has 32 cores (possibly hyperthreaded, but I think not) and 265GB RAM, and […] |
Number of TempDB Files over 8 - OK, before everyone jumps on me and tells me this is settled... I have a client where the application vendor and SQL System Admin are insisting that having more than 8 TempDB files is recommended. In the DBAs words "Microsoft recommend up to 8 unless you make heavy use of TempDB". Well they have […] |
Development - SQL Server 2014 |
Import a text file into SQL Server table without BULK insert due to special char - We currently have a process to import a text file from a customer that uses BULK insert but it is now crashing due to special characters (Ñ, Ã). , in the file. Is there another way to get the text file into a table without BULK insert/BCP since this runs in a nightly batch process? […] |
SQL 2012 - General |
T-sql Syntax help needed - Question: I want to create a sequential rank. Run the code and you will understand what I mean. I need baby5 and baby6 get a 2 and so on. The idea is if we have 8 people with 1oo score all of them get a 1 Then the 2 folks with 98 get a 2 […] |
SQL Server 2019 - Administration |
Table, Stored Proc, DB Last Used Date? - Has it become any easier in recent releases to see when a table, stored procedure, database was last used ? I have been working on the IMBi recently, and each object has a Last Used date in the description, so it's just a couple of clicks to get the information. We have SQL 2019 on […] |
Looking for the cmd to Recompile ALL procs across ALL DBs on a single SQL Server - This command will update ALL stats on ALL DBs on a single SQL Server: exec sp_MSForEachDB 'use ?; if DB_ID(''?'') > 4 exec sp_updatestats;' I'm looking for a similar, powerful command to RECOMPILE ALL procs across ALL DB's on a single SQL Server. I know this cmd recompiles ALL procs for 1 DB: USE [myDatabase]; […] |
SQL Server 2019 - Development |
2 questions - Hi Eeveryone. I have a pretty simple test to do, just want to make sure i got it right! Attaching the test with my results, please confirm that i have it correctly! THANK YOU! Given you have 2 tables Students: contain the details for the student in the University StudentID StudentName StudentStatus Registrations: […] |
SQL Server 2008 - General |
OVER() and NULL values - The column [hrsfacil] contains many NULL values, still the sum of [hrsfacil] is correct using the OVER clause. Why don't I need to use ISNULL(hrsfacil,0) ? Cheers, Julian SUM([hrsfacil]) OVER() AS Facil |
Powershell |
Cleanup Sysmail -items from msdb - I took over a SQL instance that never did a cleanup of MSDB. The SysmailItems has close to 25gig of space used storing old email attachments. I know there is a system SP that does a cleanup using begin date \end date. I was looking for a wrapper using PS that would delete 10,000 records […] |
Security and Auditing |
Audit who (account) stopped or started SQL services (Agent/MSSQL) - Dears, The only way I've found up until today is to audit this externally on Windows level. But I'd like to do this within SQL. I cannot find anything in the default trace that explains who did it, nor in the sql errorlog. So I'm a bit stuck here; Anybody ever set this up? Thanks, […] |
SQLServerCentral.com Website Issues |
Lack Of User Options - If there are any settings or options a user can make to the forums I can't find them. If there are and I'm just not seeing them please point out how to access them. I'm looking for options that allow those with visual issues to change things like color and contrast to make it easier […] |
COVID-19 Pandemic |
Daily Coping 13 May 2020 - Today’s tip is to be grateful for the little things, even in difficult times. My thoughts: http://voiceofthedba.com/2020/05/13/daily-coping-13-may-2020/ |