|
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
Nested Triggers | |
Which types of triggers can be nested and how far can they be nested in SQL Server 2022? | |
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) |
Dealing with Deadlocks I have two pieces of code that run separately from our client application, but they sometimes deadlock. When something goes wrong, I want to ensure Code Batch 1 is killed, not Code Batch 2. What should I do? Answer: Set the deadlock priority lower for Code Batch 1 Explanation: You can set a deadlock priority for code batches to low, medium, or high. In this case, to ensure Code Batch 1 is killed, set that lower than code batch 2. Ref: SET DEADLOCK_PRIORITY - https://learn.microsoft.com/en-us/sql/t-sql/statements/set-deadlock-priority-transact-sql?view=sql-server-ver16 |
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 2016 - Administration |
convert mongodb collection structure in SQL Server - Hi. I am new in mongoDB. I have mongoDB all collection structure, I want create tables in SQL Server from collections. Please help me. how convert into SQL Server database from mongoDB collections JSON format. Thanks |
SQL Server 2016 - Development and T-SQL |
Grouping Same ID's with different Names - Hello All, I have a issue where I am looking to get a list of customers with a different names or date of births with a same ID. Please find some sample data. There are 2 records (A123450, X111111) are the correct and the others need to be retuned in the list. create table #tst […] |
I have an odd situation that I just can't wrap my head around - I have been away from SQL and programming for 9 years due to a severe illness. An old client asked me to do him a favor by designing an application for him. I can't seem to come up with a clean database design. I don't know if it's because I am rusty or because he […] |
Administration - SQL Server 2014 |
Migrating from SQL Server 2014 to 2019 - Hi Experts, We have a 3 Node SQL Server cluster with Always On, the setup is such that the first two nodes are created with traditional windows cluster & SQL server cluster, the third node is added later to the windows cluster and setup always on. Now I need to upgrade the OS and SQL […] |
SQL 2012 - General |
Looking for help installing Sql express 2012 - So I normally have no issues with installing this software but I popped open some new systems that came in. Windows 10 pro x64 on HP probook6450b. All solid state drives, and i5 processors. All attempts to install express 2012 fail. I can launch the program without issue. Select fresh install. But while going through […] |
SQL Server 2019 - Administration |
Upgrade from SQL Server 2019 Standard Edition to Developer - Hi all Quick question - is it possible to upgrade from Standard Edition to Developer? We have server that is due to go into Production in the new year but we are still testing performance. We have discovered some performance issues that we expect will be resolved in Enterprise, but want to upgrade to Developer […] |
SQL Azure - Development |
Substitute of trigger in a merge statement. - Hello Everyone I hope you all are rocking. My question is regarding the merge statement. I am using Microsoft SQL Azure (RTM) - 12.0.2000.8. I am transferring users' data from one table to another table with some manipulation of data. Everything works fine without any issues. Now I have another table that maps the user […] |
SQL Azure - Administration |
Move Azure SQL Managed Instance across subscriptions - Hi, Is there a way ( with less downtime ) to move Azure SQL Managed Instance across subscriptions? One way to do it would be to take a COPY-ONLY backup to an URL and then restore to the new subscription. But this can require significant downtime for cases where the database is huge. |
General Cloud Computing Questions |
Silly Cloud computing story - A few years ago I was interviewing for a position. Roughly 2016. I was speaking with the IT director (fairly small company, located in the N Chicago suburbs). One of the things he told me was that when he joined, the company was using a cloud service based in Texas. The first thing he did […] |
Reporting Services |
RS.exe is having issue while subscription is completing the report. - Hi We have a report that is running via rs.exe utility and it errors out, but when we execute it via subscription it is completing. The error is below, the report is executing an oracle stored procedure runningjobs!ReportServer_0-18!14cc!12/08/2022-08:37:28:: i INFO: RunningJobContext.IsClientConnected; found orphaned request 35ybh2mbnhiom22ugojqi52l processing!ReportServer_0-18!14cc!12/08/2022-08:37:28:: i INFO: DataPrefetch abort handler called for Report […] |
SSRS 2016 |
List all data sources - Hi is there a way to list all the data sources in SSRS 2016, and if possible which reports use them? Cheers Alex |
Connecting |
Recent changes to Azure Data Studio requiring a certificate to connect to SQL - Over the weekend I was doing some development on a project at home. I've use SQL Server 2019 Developer edition on an old machine. Anyway, I was presented with a notice as I got into Azure Data Studio, about an update to ADS, which affects connections to SQL Server using ADS and also affecting Microsoft.Data.SqlClient, […] |
Disaster Recovery |
log shipping monitor instance - I tried to setup log shipping on two data centers. Server A in location A, serverB in nearby location B. On the server there are multiple databases, I created the first logshiping database, I created the monitor instances on ServerB. It works well. I then tried to create another log shipping for another database, when […] |
SQL Server 2022 - Administration |
SQL 2022 - Contained AlwaysOn restore - Hi, Ive been playing around with the new SQL Contained AlwaysOn, and its looking really promising so far! But one thing im missing from the documentation / my PoC, is how to restore the master database of the contained availability group. Like we normally can do, with a bit of twerks. The best […] |
SQL Server 2022 - Development |
Update value SQL table from another table - I have this tables: I need to update sum_ok and avg_ok considering values from table 1 like this: I have this code SQL Architecture, but don't work fine: update t2 set sum_ok = sum(case when t2.[status]='OK' then 1 else 0 end ) ,avg_ok = avg(case when t2[status]='OK' then status end ) from t1 inner join […] |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |