Writing an Efficient QuerySQL is easy to start writing. The basic syntax to start returning data is very simple. This […] 19 octobre 2024 dans Sites anglophones étiqueté Back to Basics / Blogs / SQL / T-SQL Programming par simple-talk.com
Effective Strategies for Storing and Parsing JSON in SQL ServerLike XML, JSON is an open standard storage format for data, metadata, parameters, or other unstructured or […] 23 août 2024 dans Sites anglophones étiqueté Featured / JSON / SQL Server / T-SQL Programming par simple-talk.com
Days of the Week, Bitwise EditionI recently had to help support synchronization and distribution of workloads between multiple servers. Some of this […] 2 août 2024 dans Sites anglophones étiqueté Featured / SQL Server / T-SQL Programming par simple-talk.com
Index cleanup : Harder than it looksI’m not the first person to write about cleaning up unused or redundant indexes. You can read […] 22 juillet 2024 dans Sites anglophones étiqueté Homepage / SQL Server / T-SQL Programming par simple-talk.com
XML Performance Tuning and Added OptionsSQL Server provides a variety of ways to tune XML so that it provides consistent performance, consumes […] 21 juin 2024 dans Sites anglophones étiqueté Homepage / SQL Server / T-SQL Programming par simple-talk.com
Effective Strategies for Storing and Parsing XML in SQL ServerXML is a common storage format for data, metadata, parameters, or other semi-structured data. Because of this, […] 3 juin 2024 dans Sites anglophones étiqueté Homepage / T-SQL Programming par simple-talk.com
Snake draft sorting in SQL Server, part 4In the previous posts in this series (part 1, part 2, part 3), I described how I […] 27 mai 2024 dans Sites anglophones étiqueté Database Administration / Homepage / SQL Server / T-SQL Programming par simple-talk.com
Snake draft sorting in SQL Server, part 3In part 2 of this series, I showed an example implementation of distributing a long-running workload in […] 15 mai 2024 dans Sites anglophones étiqueté Database Administration / SQL Server / T-SQL Programming par simple-talk.com
Snake draft sorting in SQL Server, part 2In my previous post, I showed how to borrow a snake draft concept from fantasy football, or […] 15 avril 2024 dans Sites anglophones étiqueté Database Administration / Homepage / SQL Server / T-SQL Programming par simple-talk.com
Snake draft sorting in SQL Server, part 1I recently had a restore job where I needed to split the work up into multiple parallel […] 12 avril 2024 dans Sites anglophones étiqueté Database Administration / Homepage / SQL Server / T-SQL Programming par simple-talk.com
Pagination and ordering by large valuesPagination is a technique for limiting output. Think of Google search results, shopping the electronics category on […] 25 mars 2024 dans Sites anglophones étiqueté Homepage / T-SQL Programming par simple-talk.com
Find and Replace Text in Strings in T-SQLString manipulation is an inevitable task for developers and data professionals alike. Despite all the best efforts […] 29 février 2024 dans Sites anglophones étiqueté Homepage / T-SQL Programming par simple-talk.com
The Importance of RetentionIt is always an afterthought. New objects are created that start off small and current. New feature […] 19 janvier 2024 dans Sites anglophones étiqueté Database Administration / Homepage / T-SQL Programming par simple-talk.com
Two-Dimensional Interval Packing ChallengePacking intervals is a classic SQL task that involves packing groups of intersecting intervals to their respective […] 2 janvier 2024 dans Sites anglophones étiqueté Homepage / T-SQL Programming / Theory and design par simple-talk.com
Counting more efficientlyNearly a decade ago, I wrote a post called “Bad habits : Counting rows the hard way.” […] 20 décembre 2023 dans Sites anglophones étiqueté Homepage / metadata / T-SQL Coding / T-SQL Programming par simple-talk.com
When an update doesn’t updateTell me if you’ve heard this one before: I changed data from my application, but when I […] 27 novembre 2023 dans Sites anglophones étiqueté Homepage / T-SQL Coding / T-SQL Programming / Theory and design par simple-talk.com
Strategies for queries against bit columnsRecently someone posted a question where they couldn’t quite figure out how to construct a predicate based […] 20 novembre 2023 dans Sites anglophones étiqueté BIT / Homepage / t-sql / T-SQL Programming par simple-talk.com
Exporting and Importing Data into SQL Server Using FilesThere are plenty of applications and tools available that allow for the movement of data in and […] 23 octobre 2023 dans Sites anglophones étiqueté Homepage / T-SQL Programming par simple-talk.com
Don’t use DISTINCT as a “join-fixer”I’ve quietly resolved performance issues by re-writing slow queries to avoid DISTINCT. Often, the DISTINCT is there […] 16 octobre 2023 dans Sites anglophones étiqueté Homepage / t-sql / T-SQL Programming par simple-talk.com
Normalize strings to optimize space and searchesWhile this article is specifically geared to SQL Server, the concepts apply to any relational database platform. […] 2 octobre 2023 dans Sites anglophones étiqueté Homepage / Normalization / Performance / T-SQL Programming par simple-talk.com
T-SQL Fundamentals: Controlling DuplicatesWhen people start learning a new field, for example T-SQL, it’s tempting to spend very little time […] 28 septembre 2023 dans Sites anglophones étiqueté Homepage / SummitSpeaker2023ItzikBenGan / T-SQL Programming / Theory and design par simple-talk.com
Alternatives To SQL-2022 Built-in function GREATESTIf you haven’t already heard, SQL 2022 has introduced a new built-in system function called GREATEST. Simply […] 18 septembre 2023 dans Sites anglophones étiqueté Homepage / stateofdatabaselandscapesurvey / T-SQL Programming par simple-talk.com
GENERATE_SERIES() Breaks Minimal Loggingtl;dr The title says it all. Prologue One of the keys to my personal learning is that, very […] 18 septembre 2023 dans Sites anglophones étiqueté bulk logged / Data Generation / Database Performance / GENERATE_SERIES() / Jeff Moden / Minimal Logging / software testing / t-sql / T-SQL Programming / Test Data / Transact SQL par sqlservercentral.com
Yet Another Reason to Not Use sp_ in your SQL ...In 2012, Aaron Bertrand said most everything I knew (and a bit more) about the issues with […] 25 août 2023 dans Sites anglophones étiqueté Blogs / T-SQL Programming par simple-talk.com
Working around schema drift in SQL ServerAt Stack Overflow, our environment has multiple implementations of a largely – but not 100% – identical […] 14 août 2023 dans Sites anglophones étiqueté Homepage / stateofdatabaselandscapesurvey / t-sql / T-SQL Programming par simple-talk.com
Using a Subquery in a SELECT statementThis article is part of Greg Larsen’s continuing series on Learning T-SQL. To see all 10 items […] 26 juin 2023 dans Sites anglophones étiqueté Homepage / Learn SQL Server / T-SQL Programming par simple-talk.com
T-SQL Gap-Filling ChallengeA student of mine sent me a T-SQL challenge involving gap-filling of missing dates and balances. I […] 29 mai 2023 dans Sites anglophones étiqueté Homepage / T-SQL Programming par simple-talk.com
Changing log growth strategy in SQL Server 2022When I first saw a bullet item stating SQL Server 2022 would support instant file initialization for […] 15 mai 2023 dans Sites anglophones étiqueté Database Administration / Homepage / T-SQL Programming par simple-talk.com
Ordered Columnstore Indexes in SQL Server 2022 7 avril 2023 dans Sites anglophones étiqueté Homepage / T-SQL Programming par simple-talk.com
GENERATE_SERIES: My new go-to to build setsI have come across a lot of use cases for manufacturing rows on the fly, aside from […] 31 mars 2023 dans Sites anglophones étiqueté Homepage / SQL Server 2022 / T-SQL Programming / Transact SQL par simple-talk.com
Paging Data in T-SQLSometimes when working with very large sets of data, you may not want to return all of […] 20 mars 2023 dans Sites anglophones étiqueté Homepage / Learn SQL Server / T-SQL Programming par simple-talk.com
Optional Code in T-SQL Scripts using SQLCMDWhen you are writing T-SQL scripts to save away, for example one to create a new database, […] 6 mars 2023 dans Sites anglophones étiqueté Blogs / T-SQL Programming par simple-talk.com
Find 40 Problems in this SQL Server Stored ProcedureI’ve been at this for a while now, and have a very particular set of rules and […] 23 février 2023 dans Sites anglophones étiqueté Homepage / T-SQL Programming / Transact SQL par simple-talk.com
Using TOP clause in a SELECT statementThis article is part of Greg Larsen’s continuing series on Learning T-SQL. To see all 9 items […] 6 février 2023 dans Sites anglophones étiqueté Homepage / Learn SQL Server / T-SQL Programming par simple-talk.com
Dealing with the Bits of a Binary Value in SQL ...How you used to do it For example, say you want to find all the read-write database […] 4 décembre 2022 dans Sites anglophones étiqueté Blogs / T-SQL Programming par simple-talk.com
Converting Data Across Time Zones: An In-Depth PrimerIf only the entire world used UTC, wouldn’t life be so much easier? We can dream, can’t […] 21 novembre 2022 dans Sites anglophones étiqueté Homepage / T-SQL Programming par simple-talk.com
The Basics of Deleting Data from a SQL Server TableGreg Larsen’s series on Learning T-SQL so far: The basic T-SQL Select Statement Ordering a result set […] 7 novembre 2022 dans Sites anglophones étiqueté Homepage / Learn SQL Server / T-SQL Programming par simple-talk.com
The Basics of Updating Data in a SQL Server TableEntry in Greg Larsen’s series on Learning T-SQL. The series so far: The basic T-SQL Select Statement […] 21 octobre 2022 dans Sites anglophones étiqueté Homepage / Learn SQL Server / T-SQL Programming par simple-talk.com