Laden...
|
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
Concat Addition | |
What is the result of this code? SELECT CONCAT(1, 2, 3) + 4 | |
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) |
Trigger Order III I have created these triggers in SQL Server 2022: CREATE TRIGGER triggertest_tri_1 ON dbo.triggertest FOR INSERT AS PRINT 'one' GO CREATE TRIGGER triggertest_tri_2 ON dbo.triggertest FOR INSERT AS PRINT 'two' GOI want to be sure that the trigger with "1" runs first. I decide to run this: EXEC sp_settriggerorder @triggername = 'triggertest_tri_1', @order = 'first'What happens? Answer: I get an error since I didn't specify the type of trigger with a third parameter Explanation: There is a third parameter for sp_settriggerorder, which specifies the type of trigger (insert, update, or delete). Ref: sp_settriggerorder - https://learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-settriggerorder-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 - Development and T-SQL |
Tablock to avoid deadlock - Hi, We have 4 stps. the flow of the stored procedure (stp) is as below stp A is main stp that is called by the application. Inside A, stp B C and D are called within Begin Tran. Also in each stp B C D explicit transaction is included. Below is the flow of stp […] |
Development - SQL Server 2014 |
How to load AML files SSIS or any other option - Team, Please suggest or if you have an example please share the link for loading AML (anti moneylaundering)files into SQL Server. Meaning file having multiple recs in the .txt/.cvs file. Loaded to multiple tables .. Basically it is AML files if anyone who has done that do suggest Thanks in advance |
SQL Server 2019 - Administration |
Error Login from an untrusted domain - Hi All, I found something a little strange in my SQL Server Error Log, There is an error message: Login failed. The login is from an untrusted domain and cannot be used with Integrated authentication. [CLIENT: XXX.XXX.XXX.XXX], but I tried to access / login from the server using Management Studio and the same user has […] |
SPID is suspended but the wait type is NULL - Hello experts, I have always assumed that if there is no wait going on for a SPID, that its status would be runnable. I have seen just now with a large insert query that my assumption is wrong. Could someone explain how a SPID remains suspended if the wait type is NULL? Thanks for any […] |
backups failure - Hello All, We have a domain account running sqlserver service.this account has r/w access to a network share, but backups are still failing. what are we missing here ? Even the the said computer$ has r/w to the network share I can access the network share from the said server. But when I run the […] |
Unable to begin a distributed transaction. - create table #failover_logs ( id int identity, logdate datetime, processinfo nvarchar(100), logging nvarchar(max) ) --DROP TABLE #failover_logs insert into #failover_logs ( […] |
Capture long transact query using SQL Server performance condition alert feature - I created a SQL Alert trying to capture long query transaction under the SQL Server Agent\Agent with the options below. However, it does not have the feature to capture what query is causing the long transaction. I was thinking of adding the sp_WhoisActive to capture the long transaction query but it did not have SQL […] |
SQL Server 2019 - Development |
divided by zero error in SQL please provide solution - divided by zero error in SQL please provide solution |
SQL Azure - Development |
Azure Purview Scanner Requires Database Master Key to produce Lineage, but why? - I am studying for the Azure Data Engineer certification and the material covers Purview linage scanning of SQL Server databases. It says there must be a master key setup in the database for lineage to be produced, but I cannot find anything that explains why. |
SQL Azure - Administration |
Statistics Update being mis-triggered by OlaHallenGren - Hi Guys, I have a very problem with Azure SQL DB taking more time to update stats than index rebuild. I am trying to filter by using on update stats if modifications are 40% but I think it getting triggered even if the modifications are less than 1%. I am taking about column stats here […] |
Suggestions |
Gateway timeout when posting reply but... - I posted a reply to a topic today and, after a minute or so, received a 504: Gateway Timeout error. Seeing that error, I thought my post had failed and was going to redo it but luckily, I checked first and to my surprise my reply was posted successfully. So, this was an "error: process […] |
SQL Server 2022 - Development |
Beginner questions - Hello everyone and thank you for joining the forum. I am new to SQL and have a few beginner questions. 1. i have installed Microsoft SQL Server and SSMS as well. I just did it and got it to work and I can write queries in SSMS. Unfortunately I don't know if I forgot something […] |
talend "template" feature vs ssis - Hi we will be using a talend template shortly to abstract the schema definition of spreadsheets such that we can plug and play different excel layouts into a general talend etl "program" that lands that data into different configurable sql destinations. i believe the template is a flat file with one entry for every column. […] |
executing a proc on another server from a proc on th e1st server - Hi, this is a second post trying to help a friend on a slightly different subject. as shown at https://www.sqlservercentral.com/forums/topic/simple-linked-server-plumbing he is forced into splitting up some db's to multiple servers...without changing code. So on db Q (now on server x) he still wants to execute a stored proc that executes a stored proc on […] |
simple linked server plumbing - Hi, as a favor to a friend who needs to split databases between servers, and doesnt want to change code, he has a select on a.dbo.view that used to run from db Q easily because db A was on the same server. I havent done one of these in a long time but shouldnt he […] |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. [email protected] |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Laden...
Laden...