|
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
Dropping a Logon Trigger | |
I created this trigger for testing on SQL Server 2022:
CREATE TRIGGER checksteve ON ALL SERVER FOR LOGON AS BEGIN IF ORIGINAL_LOGIN()= N'ARISTOTLE\Steve' PRINT 'Steve logged in' END; GONow I want to drop it. What do I run? | |
Think you know the answer? Click here, and find out if you are right. |
Yesterday's Question of the Day (by Steve Jones - SSC Editor) |
A Lack of Memory Grant Feedback Persistence SQL Server has added an Intelligent Query Processing feature called Memory Grant Feedback. In SQL Server 2022, this can be persisted across queries to improve the performance of future executions. In SQL Server 2022, when is memory grant feedback not persisted if the plan is evicted from cache? (choose 2) Answer: When query store is not enabled, When the query store is not in read write mode Explanation: Feedback is not persisted when the query store is not enabled or when it is not in read write mode. Ref: Memory Grant Feedback Persistence - https://learn.microsoft.com/en-us/sql/relational-databases/performance/intelligent-query-processing-memory-grant-feedback?view=sql-server-ver16#percentile-and-persistence-mode-memory-grant-feedback |
Database Pros Who Need Your Help |
Here's a few of the new posts today on the forums. To see more, visit the forums. |
SQL Server 2017 - Administration |
Canot connect to Prod1 - Tried using SQL authentication but getting below error. A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (Provider : TCP Provider, error: 9 - The specified network name is no longer available) Microsoft SQL server, Error: 64) |
Cabot connect to Prod1 - Tried using both Windows & SQL authentication but getting same error. A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (Provider : TCP Provider, error: 9 - The specified network name is no longer available) Microsoft SQL server, Error: 64) |
SQL Server 2016 - Development and T-SQL |
Flexable/Effective means to join the Nth record - I have no doubt this has been covered many times and has many answers but I'm hoping by now this has been refined down to where you can get not just teh 1st or last record but the Nth record. Let say I has a join like the below and I want just teh first […] |
Development - SQL Server 2014 |
“user_scans” of table “sys.dm_db_index_usage_stats” - I am trying to find answer to the below. What exactly the scan means for the field "user_scans" being with the table "sys.dm_db_index_usage_stats" ? Like, there are tables in our prod which aren't used for sure as the module is shutdown 4 years back but the DB holds all the tables related to that module. […] |
SQL Server 2019 - Administration |
SQL SSRS license info - hello, i am trying to find where SSRS edition and product key information are stored in SSRS 2019 and above version. until 2016 i was ablet to pull information from registry for some reason it is not available from 2019 and above versions. HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\($instance)\SSRS\Reporting Services\ReportServer |
SQL Server 2019 - Development |
Is Solution PIVOT? - Would appreciate some help. I'm trying to convert the 2-column list which is 2 columns to a flat record for each "MyId" ... the header names on the flat record are for example purposes and not important. I'm going to insert this into a table. The example has a max of 3 PayeeId for any […] |
sp_whoisactive filtering - I am experiencing difficulty filtering the results in the sp_whoisactive stored procedure when attempting to apply multiple filters. Can someone please provide assistance or guidance? |
Strange behavior passing a variable in XML.value - Hi, anyone would know why as soon as I add a WHERE statement (even WHERE 1 = 1) I would get an error? Declare @Language nvarchar(10) = 'en' DROP TABLE IF EXISTS #Temp CREATE TABLE #Temp (TestName varchar(100),TestDescription varchar(max)) INSERT INTO #Temp values ('Test1','English DescriptionFrench Description') SELECT TestName, CAST(TestDescription […] |
General |
Have you seen this in the news today? - You might want to look into this issue: Windows flaw lets hackers sneak into your PC over Wi-Fi | Fox News I don't know how serious this might be, but maybe should be checked out. |
SQL Server 2022 - Administration |
how to find the cpu memory disk and network of the OS where RDS is residing. - hi, i have one RDS, but i do not have any other permissions, and i need to know the cpu , memeory disk and network staus of the OS where RDS is residing. if i had sqlserver on my machine it was so easy for me to press alt ctrl del to find the status […] |
Contained Availability Groups and Replication - Hi, I have a couple of questions around contained AOAG: Is it still the case that you cannot replicate a database within a contained AOAG? Are you able to replicate to the nodes involved in the cluster outside of the contained AOAG? TIA |
SQL Server 2022 - Development |
how to assign studentid from one table to other one? please - Good Morning, how to assign query one results to query 2 student id, each record should have each value, rather assigning one to all 20k students. please advise. i tried one but it is assigned same id to all STG_Student. please -- Query 1 SELECT STATESTUDENTID FROM DEV_SLDS.LEGACY.STUDENTIDPOOL WHERE IDSTATUS = 'UNASSIGNED' AND […] |
How to run custom python module on SQL Server? - I am working on a small test script on SQL server 2022 using python module. The module does the simple calculation of pi * 2 (3.1415926 * 2). The test script does not work with MouleNotFoundError when using the custom module. While the test script worked fine when same python code was directly imbedded in […] |
Upgrade to SQL2019 from 2012 Query is taking time, Need Query Optimization steps - Upgrade to SQL2019 from 2012 Query is taking time, Need Query Optimization steps and Pre requisites to optimize Query Performance and CPU Usage |
What happened to my SSMS shortcuts in 20.1? - I installed SSMS 20.1 and all my trusted keyboard shortcuts don't work anymore... E --> Execute R --> Toggle result pane It seems to always wait for the second character in the sequence... I tried to reset keyboard settings in tools/options but no change Is my install broken? |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |