DAX CASE Statement Functionality with IF, SWITCH and SWITCH TrueThe post DAX CASE Statement Functionality with IF, SWITCH and SWITCH True appeared first on SQLServerCentral. 3 avril 2023 dans Sites anglophones étiqueté CASE Equivalent / DAX / t-sql / Uncategorized par sqlservercentral.com
Passing parameters to query without TVFsProblem Statement You have a need to extract data from a table or view with 1 or more […] 27 mars 2023 dans Sites anglophones étiqueté t-sql / Table Valued Function (TVF) / Table-Valued Parameter par sqlservercentral.com
ChatGPT in SQL Server – Practical examplesIntroduction ChatGPT in SQL Server In this article, we will learn some basic examples of ChatGPT in SQL […] 6 mars 2023 dans Sites anglophones étiqueté Artificial Intelligence (AI) / ChatGPT / MS SQL Server / t-sql par sqlservercentral.com
Can You Nest Transactions in SQL Server?To find out, let’s set up a simple status log table: DROP TABLE IF EXISTS dbo.StatusLog; CREATE TABLE […] 28 février 2023 dans Sites anglophones étiqueté t-sql par brentozar.com
Find 40 Problems in This Stored Procedure.Aaron Bertrand posted a challenge: We’re going to use the AdventureWorks sample database (get your copy here), where […] 24 février 2023 dans Sites anglophones étiqueté t-sql par brentozar.com
3 Ways to Debug T-SQL CodeWriting new code = bugging. That part’s easy. Taking those bugs back out, that’s the hard part. Developers […] 10 janvier 2023 dans Sites anglophones étiqueté t-sql par brentozar.com
How to Find Missing Rows in a TableWhen someone says, “Find all the rows that have been deleted,” it’s a lot easier when the table […] 5 janvier 2023 dans Sites anglophones étiqueté t-sql par brentozar.com
Should You Use SQL Server 2022’s STRING_SPLIT?SQL Server 2022 improved the STRING_SPLIT function so that it can now return lists that are guaranteed to […] 21 décembre 2022 dans Sites anglophones étiqueté t-sql par brentozar.com
Should You Use SQL Server 2022’s DATETRUNC?SQL Server 2022 introduced a new T-SQL element, DATETRUNC, that truncates parts of dates. For example: SELECT DATETRUNC(year, […] 20 décembre 2022 dans Sites anglophones étiqueté t-sql par brentozar.com
Getting started with ROUND() and Its Use CasesIn this article, I will explore one of the SQL Server mathematical functions, ROUND. The T-SQL ROUND() function […] 2 décembre 2022 dans Sites anglophones étiqueté t-sql / Transact SQL par sqlservercentral.com
Slow “Having” Query? Try Pre-Filtering.I was helping a client with a query, and I’m going to rework the example to use the […] 29 novembre 2022 dans Sites anglophones étiqueté t-sql par brentozar.com
How to get IO statistics of SQL Server database filesSQL Server is a resource-intensive database system that requires adequate CPU and memory capacity to run transactions with […] 18 novembre 2022 dans Sites anglophones étiqueté DMV / t-sql / Transact SQL par sqlservercentral.com
SQL Cheat Sheet for Basic T-SQL CommandsThe post SQL Cheat Sheet for Basic T-SQL Commands appeared first on SQLServerCentral. 31 octobre 2022 dans Sites anglophones étiqueté t-sql / Uncategorized par sqlservercentral.com
SQL Server Engineering Using Free ToolsYou can master engineering for your SQL Server databases, on premises or in the cloud, with a FREE […] 28 octobre 2022 dans Sites anglophones étiqueté Free tools / Performance / t-sql par sqlservercentral.com
Data Lineage Scripts for Microsoft SQL Server and Azure SQLData Lineage is a process of understanding data’s lifecycle, from origin to destination. It tracks where data originates, […] 19 octobre 2022 dans Sites anglophones étiqueté Azure SQL Database / Azure Synapse Analytics / data governance / data lineage / MS SQL Server / t-sql / Uncategorized par sqlservercentral.com
#tsql2sday: Start Your Dynamic SQL with a Comment.When you write dynamic SQL, start like this: CREATE OR ALTER PROC dbo.MyProc AS BEGIN DECLARE @StringToExecute NVARCHAR(4000); […] 11 octobre 2022 dans Sites anglophones étiqueté t-sql par brentozar.com
Generating Repeatable Sets Of Test RowsIn order to test graph structures, I needed a large set of random data. In some ways, […] 30 septembre 2022 dans Sites anglophones étiqueté Blogs / Generating Data / Randomness / SQL Server / t-sql / Transact SQL par simple-talk.com
T-SQL Language Changes in SQL Server 2022 Part 2SQL Server 2022 is in preview and I wrote a previous article on the T-SQL language changes. This […] 30 septembre 2022 dans Sites anglophones étiqueté t-sql par sqlservercentral.com
SQL WHERE TutorialThe post SQL WHERE Tutorial appeared first on SQLServerCentral. 16 septembre 2022 dans Sites anglophones étiqueté t-sql par sqlservercentral.com
Understanding the System Function FILEPROPERTY()The SQL Server system function, FILEPROPERTY(), is used to retrieve database file properties. I will show you use […] 9 septembre 2022 dans Sites anglophones étiqueté Administration / FILEPROPERTY() / system functions / t-sql par sqlservercentral.com
SQL WAITFOR Command to Delay SQL Code ExecutionThe post SQL WAITFOR Command to Delay SQL Code Execution appeared first on SQLServerCentral. 2 septembre 2022 dans Sites anglophones étiqueté t-sql par sqlservercentral.com
Manage Your Business Rules in T-SQL QueryMotivation At some point in the carrier, we have come across the problem of hard-coded values in SELECT […] 2 septembre 2022 dans Sites anglophones étiqueté Business Rules / Framework / Parameters / t-sql / Transact SQL par sqlservercentral.com
T-SQL Language Changes in SQL Server 2022SQL Server 2022 is in preview in August 2022. I assume this version will be released later this […] 31 août 2022 dans Sites anglophones étiqueté t-sql par sqlservercentral.com
Understanding the Metadata Function DATABASEPROPERTYEX()SQL Server offers various metadata functions to return metadata information about databases and its objects. Today, I will […] 29 août 2022 dans Sites anglophones étiqueté system functions / t-sql / TSQL par sqlservercentral.com
INSERT EXEC statement cannot be nested, the Simple SolutionIf you use the tSQLt unit testing framework for long enough, you will eventually run into the “An […] 19 août 2022 dans Sites anglophones étiqueté CLR / Common Language Runtime (CLR) / INSERT EXEC / SQL / SQL CLR / SQLCLR / t-sql / tSQLt / TSQLUnit / Unit Test / Unit Testing par sqlservercentral.com
Create a Table in Microsoft SQL ServerThe post Create a Table in Microsoft SQL Server appeared first on SQLServerCentral. 19 août 2022 dans Sites anglophones étiqueté t-sql par sqlservercentral.com
[Video] Fundamentals of Stored Procedures at SQLBitsAnybody can write a stored procedure with a little help from Google. This session is about how to […] 27 juillet 2022 dans Sites anglophones étiqueté t-sql / Videos par brentozar.com
Generate Random Dates in T-SQLThe post Generate Random Dates in T-SQL appeared first on SQLServerCentral. 27 juillet 2022 dans Sites anglophones étiqueté t-sql par sqlservercentral.com
T-SQL Comment Best Practices for SQL ServerThe post T-SQL Comment Best Practices for SQL Server appeared first on SQLServerCentral. 18 juillet 2022 dans Sites anglophones étiqueté t-sql par sqlservercentral.com