Skip to main content
-1 votes
0 answers
20 views

I've heard a lot that UUID v7 is performing much better in databases, when using it as primary key, due to the nature of how B-tree works. We have a huge problem with current implementation of PK as ...
Антон Арбузов's user avatar
Best practices
0 votes
2 replies
96 views

What recommendations might be offered for the most elegant and performative way with T-SQL to evaluate whether a source value should update a target value, as part of an ETL update process in which ...
504more's user avatar
  • 495
Best practices
0 votes
4 replies
139 views

In SQL Server, I have a stored procedure that returns some sensitive data to the client, and logs that fact into a log table. The stored procedure is executed in a transaction controlled by the client,...
Branko Dimitrijevic's user avatar
0 votes
0 answers
47 views

From reading: https://docs.cloud.google.com/sql/docs/sqlserver/pre-built-tools-with-mcp-toolbox#mcp-configure-your-mcp-client-geminicli-sqlserver I get this error: ✕ Error during discovery for MCP ...
user1824433's user avatar
0 votes
1 answer
86 views

I have table defined like this: CREATE TABLE [staging].[tbPositionAssetIdentifier] ( [StageID] [int] IDENTITY(1,1) NOT NULL, [AssetId] [nvarchar](50) NULL, [SecurityDescription] [nvarchar]...
user2243643's user avatar
0 votes
0 answers
64 views

I have a .bat file that creates a duplicate of the TblPIF table and names it TblPIF_New. It runs the Replace_IC.sql file which places " around the text in a particular column that contains commas ...
Sally Parkes's user avatar
0 votes
1 answer
221 views

I'm experiencing a performance issue with the following query, specifically caused by the join condition AND edh.EmployeeCode = e.EmployeeCode After analyzing the execution plan, I noticed that SQL ...
Akillez's user avatar
  • 17
0 votes
0 answers
76 views

I have created a Glue JDBC Connection for my SQL Server running on EC2. I tested the connection with Visual ETL in the following way: Used SQL Server as source Selected my SQL Server connection in ...
Shivkumar Mallesappa's user avatar
3 votes
2 answers
147 views

Based on the table values shown below, I am trying to return all rows for each Name, Activity, and Date when 'No Activity' is not in the Activity column for those dates. I attempted the following but ...
hobosapien's user avatar
0 votes
1 answer
54 views

Set-SqlColumnEncryption keeps failing, it's trying to drop a scalar function that is completely unrelated to the table columns being encrypted, thus failing. $smoDatabase = Get-SqlDatabase -...
Greg's user avatar
  • 4,135
-3 votes
0 answers
24 views

I am experiencing an issue with Azure SQL Managed Instance where some of the long-running queries in Query Store are displayed as “Restricted Text” instead of the actual query text. Details: ...
Aditya Rangineni's user avatar
0 votes
2 answers
121 views

How to write a linq query that does the same as this SQL statement: select * from [dbo].[LitEdit] as le inner join [dbo].[LitEditJob] as lej on lej.BulkEditId = le.Id inner join [dbo].[...
mangg's user avatar
  • 63
2 votes
3 answers
170 views

Our integration team want to send a XML parameter from their Biztalk server containing values to be written to a SQL Server table using a stored procedure, and have sent me an example for me to create ...
Stephen Long's user avatar
1 vote
0 answers
164 views

Is it possible to use non hard-coded values for asserting scalar values in VS SQL Server unit test project? Below I have the variable @ResourceId that I'd like to test against the value of a column ...
user32056484's user avatar
-2 votes
1 answer
175 views

In this example I wanted to replace every NULL value in the Quantity column with the mean of the column. I'm using CASE here to achieve that but what ends up happening is instead of replacing NULL ...
Carl Mark Sibal's user avatar

15 30 50 per page