#tsql — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #tsql, aggregated by home.social.
-
No more excuses: AI-powered assistants are in SSMS, VS Code, and Fabric
#AI #ArtificialIntelligence #MicrosoftFabric #Azure #VSCode $SSMS #TSQL #GitHHubCopilot #SQLDatabase #CloudDatabases
https://blog.fabric.microsoft.com/en-US/blog/no-more-excuses-ai-powered-assistants-are-in-ssms-vs-code-and-fabric/?wt.mc_id=DP-MVP-4015656 -
Use database instructions with GitHub Copilot in SQL Server Management Studio
#ArtificialIntelligence #AI #GithHubCopilot #SSMS #SQLServer #TSQL
https://learn.microsoft.com/en-us/ssms/github-copilot/database-instructions?wt.mc_id=DP-MVP-4015656 -
TSQL Problem:
Let's say you've got one or more scalar values that are VARCHAR 'strings' and you want to determine if they can be typed more appropriately.For example '16:16:34.6733333' is data type TIME. It's easy to examine the value manually to make that determination. But how would you do it programatically (via TSQL)?
I've tried casting the VARCHAR as different types. TRY_CAST is successful for some data types. How would I know which one is 'right'?
-
Строковые константы в MS SQL
Строковые константы в MS SQL кажутся очень простыми в использовании. Но эта простота не всегда очевидна и порой приводит к тяжело выявляемым ошибкам в коде. По этой причине данная статья может оказаться полезной не только новичкам, но и тем, кто уже использует T-SQL в своей работе. Документация явно описывает два типа констант: обычные строковые и юникодные. Но на самом деле ситуация несколько сложнее, что и будет рассмотрено ниже.
-
OPENROWSET and External Tables for Fabric SQL Databases
#SQL #SQLDatabase #MicrosoftFabric #DataVirtualization #Analytics #TSQL #OneLake -
I spent some time writing up how to #unittest the creation and changing of #sql database components in #Microsoft #SqlServer 's #TSql . It's useful in restricted environments that won't allow other development tools that normally could conduct unit tests.
https://www.patreon.com/posts/148232620 -
#TodayILearned about table-valued scalar functions in Microsoft #TSql and why I should care.
These can be used in a view. If you need to run a procedure to calculate parts of the output, but use a middleware that is incapable of calling functions directly, scalar functions are your next best bet.If they return their value as a table, you can "join" them to the main rowset in the view using the operations "cross apply" (which behaves like inner join) and "outer apply" (like outer join).
-
#TodayILearned that Microsoft #TSql does NOT automatically shave off the trailing spaces of a char-typed value when reading it from a data table and inserting it into a varchar-typed column of a different table. You have to trim it or convert it explicitly. Char data types aim to preserve their padding.
-
Do you write a lot of paper checks? (I don't--typically it's just one per month.) If so, do you screw up the year when writing in the date for the first few weeks/months of the new year?
This is my TSQL version of that. I'm off to a good start. 🙄
-
Resolving Write Conflicts in Microsoft Fabric Data Warehouse
#MicrosoftFabric #DataWarehouse #TSQL #DDL
https://blog.fabric.microsoft.com/en-US/blog/concurrency-control-and-conflict-resolution-in-microsoft-fabric-data-warehouse/?wt.mc_id=DP-MVP-4015656 -
🐘 #tsql — A Modern #PostgreSQL Manager #TUI Built in #Rust #opensource #database #cli #devops
🖥️ Full-screen split-pane interface with query editor and scrollable results grid
⌨️ Vim-style keybindings for modal navigation and editing with customizable config
🎨 Syntax highlighting for #SQL and #JSON powered by tree-sitter
🧠 Schema-aware smart autocomplete for tables, columns, and keywords
✏️ Inline cell editing directly in results grid with automatic SQL generation🧵 👇
-
How To: XML-config для хранимых процедур MS SQL — создание, разбор, развёртывание
Всем привет! Меня зовут Александр Гаврилов, я архитектор баз данных и аналитических систем в GRI. Если вы когда-нибудь пытались выполнить одну и ту же операцию с похожими таблицами в разных базах, да ещё и на разных серверах, то знаете, насколько это может быть мучительно. В этой статье я покажу один из рабочих вариантов, как упростить такую задачу, и заодно расскажу про интересную функцию XQuery, которая может неожиданно помочь.
https://habr.com/ru/companies/gri/articles/975938/
#mssql #tsql #xml #запросы #XQuery #PowerShell #HowTo #deploy
-
BobSQL
Based on tsqlparser, tgpiler, and dxp
https://github.com/ha1tch/tgpiler
https://github.com/ha1tch/tsqlparser
All the pieces are there, so why not?
#tsql #bobsql #database #db #foss #golang #sql #microsoft #mssql #mssqlserver #sqlite #postgres
-
Tgpiler is a transpiler based on Tsqlparser
Tgpiler is a T-SQL transpiler that targets the Go programming language.
https://github.com/ha1tch/tgpilerThat means: you write T-SQL stored procedures, Tgpiler transpiles them to Go. Which means that with a little more luck and some astute tweaking, your old logic now scales horizontally for free.
Tgpiler is a transpiler powered by tsqlparser that parses T-SQL stored procedures, interprets T-SQL DML and compiles to Go source code with two execution paths: static and dynamic. The dynamic pathway is a genuine T-SQL runtime that executes most dynamic T-SQL code as part of your Go microservice. Newer versions also support a dual backend: DML or gRPC. The DML backend targets Postgres, Mysql, SQLite, and MSSqlServer. The gRPC backend is based on gRPC protos and using voting heuristics it maps stored procedure code to gRPC execution.
Once the vision is fully realised, it will become not a compiler, not a transpiler, not a migration tool with Go as its target, but a different category of tool for which we don't have a name yet:
Its main use is the migration of vertically scalable business logic to horizontally scalable business logic.
It's licenced under the GPL 3.0 and if you have any cool ideas about what should be done about it, feel free to call me:
[email protected]#golang #tgpiler #tsql #foss #tsqlparser #db #database #mssqlserver #mssql #microsoft #sql #sqlite #postgres
-
This is TSQLparser, a complete T-SQL parser written in Go. It's the kind of thing you use when you want to abandon Microsoft SQL Server for good (parser, lexer, and AST builder, to be exact).
And here it is, GPL 3.0 licenced, or email me if you have any other ideas:
[email protected]https://github.com/ha1tch/tsqlparser
#golang #foss #tsql #mssql #mssqlserver #db #database #parser #microsoft #sql #sqlite #postgres
-
T-SQL Mastery: Variables, IF/ELSE & CASE in 15 Mins! @JangiTech #sqlserver #tsql #foryou #database
A clear walkthrough of how to declare variables, assign values, print output, and use IF, CASE and WHILE logic in SQL Server. source
-
Announcing the release of SSMS 22 Preview 1
-
Presenting T-SQL Analyzer - live best practices analysis of your SQL scripts in Visual Studio | by Erik EJ.
https://erikej.github.io/sql/dacfx/visualstudio/2025/08/25/dacfx-visx-rules.html
-
Who in the #TSQL language implementation team at Microsoft thought it was a good idea to differentiate between INSERT INTO - SELECT and SELECT INTO? Who thought it would be reasonable to expect that us users of those statements would find it obvious that one of them creates a new table and the other doesn't, but the one that doesn't also can't be used to insert rows into an existing table? Is this a thing other #SQL dialects do too?
-
Анализ плана выполнения запроса с оконной функцией в SQL Server (+бонус)
В статье подробно разбирается план выполнения запроса с оконной функцией в MS SQL Server, проводится сравнительный тест производительности с альтернативным запросом. Статья будет полезна разработчикам, работающим с аналитическими запросами в SQL Server, а также всем, кто хочет глубже понять логику оптимизатора и влияние различных факоров на планы выполнения.
https://habr.com/ru/articles/918210/
#tsql #ms_sql_server #план_выполнения_запросов #оптимизация_запросов
-
SQL and NoSQL Query language support come to ReSharper | by Rachel Appel.
https://blog.jetbrains.com/dotnet/2025/06/10/sql-and-nosql-query-langauge-support-come-to-resharper/
-
T-SQL в .NET Core EF Core: Гибридный подход к производительности и гибкости (Переосмысление с учетом обсуждения)
Секретное оружие в .NET Core: Почему вы игнорируете мощь T-SQL? Ваши LINQ-запросы становятся громоздкими? Производительность упирается в потолок? Возможно, вы упускаете нечто важное. Эта статья — приглашение взглянуть на привычные инструменты под новым углом. Мы исследуем гибридный подход, который позволяет использовать весь потенциал Microsoft SQL Server, выходя за рамки стандартного взаимодействия через EF Core. Узнайте, как T-SQL может упростить сложные задачи, повысить производительность и сделать вашу архитектуру более гибкой. Это не просто технический трюк, а переосмысление роли СУБД в современном приложении. Готовы узнать, как использовать "скрытые" возможности MSSQL и почему это может быть именно то, что нужно вашему проекту? Читать об этом
https://habr.com/ru/articles/914378/
#net #net_core #ef #entityframework #linq #tsql #sql #mssql #mssqlserver #database_development
-
T-SQL в .NET Core EF Core: Гибридный подход к производительности и гибкости
В мире .NET разработки, работа с базами данных – неотъемлемая часть. Entity Framework Core (EF Core) предоставляет удобный способ взаимодействия с данными, но при работе с SQL Server, особенно в сложных сценариях, LINQ запросы могут уступать в производительности и гибкости T-SQL. Статья рассматривает эту дилемму, предлагая гибридный подход. Мы погрузимся в проблему: как эффективно использовать мощь T-SQL, не отказываясь от преимуществ EF Core? Обсудим интеграцию T-SQL через Raw SQL, Views, UDF и Stored Procedures. Раскроем лучшие практики: разделение ответственности, оптимизацию запросов, безопасность и тестирование. Поймем, как сочетать удобство ORM с производительностью SQL Server, применяя Data-Driven Design и, при необходимости, Domain-Driven Design. Статья – руководство для .NET разработчиков, стремящихся к оптимальному балансу между производительностью, гибкостью и удобством разработки при работе с SQL Server и EF Core. Читать об этом
https://habr.com/ru/articles/906522/
#net #net_core #ef #entityframework #linq #tsql #sql #mssql #mssqlserver #database_development
-
Раскраска листинга процедуры T-SQL значениями метрик
Сразу покажу, о чем идет речь, чтобы вы решили, нужно вам это или нет. На текст процедуры мы отображаем данные о числе выполнений, cpu, duration, о числе чтений и записей и числе обработанных записей.
-
New blog post:
30,656 Pages of Books About the .NET Ecosystem: C#, Blazor, ASP.NET, & T-SQL
When I learned lean software development, I abandoned year-long planning at work and at home. This year, I broke my rule...
Continue reading: https://kerrick.blog/articles/2025/thirty-thousand-pages-of-books-about-the-dotnet-ecosystem/
#Books #Reading #NewYearsResolution #DotNET #CSharp #Blazor #ASPNET #TSQL #FullStack #SoftwareDevelopment #ProgrammingBooks #LearningToCode #WebDevelopment #EnterpriseSoftware #TechBooks #CodeNewbie #CodingJourney #DeveloperLife
-
Рассмотрим нововведения SQL Server Data Tools, связанные со средствами разработки БД для Microsoft SQL Server
Привет, Хабр. Меня зовут Артём, я старший инженер в департаменте аналитических решений ЮMoney. Вас ждёт очень большая статья, в которой мы вместе: ✓ посмотрим на изменения формата файла проекта sqlproj; ✓ разберёмся с новой возможностью публикации dacpac в репозиторий артефактов (например, NuGet) с целью многократного переиспользования в других проектах sqlproj; ✓ напишем анализатор кода tsql на C#, опубликуем его в репозиторий и используем в проекте sqlproj. Приятного чтения! 😊
-
Presenting T-SQL Analyzer CLI - identify anti-patterns in SQL Server scripts with 140+ rules by Erik EJ.
https://erikej.github.io/sql/dacfx/2025/02/17/sql-dacfx-analyzer.html
-
T-SQL Tuesday 161: Having Fun with SQL http://dlvr.it/TJ18wf via PlanetPowerShell #TSQL #SQL #DataAnalysis #Database
-
[Перевод] Практический подход к EF Core с использованием скалярных функций
При создании приложения некоторые логические операции могут быть реализованы на стороне базы данных с использованием скалярных функций. В SQL скалярная функция — это тип функции, который работает с одним значением или небольшим количеством входных значений и всегда возвращает одно значение в качестве результата. Эти функции представляют собой переиспользуемые блоки кода, которые выполняют вычисления или манипуляции с данными.
-
Blog alert!
Writing query's is hard, sometimes you need to think outside your box or try a different approach. From CTE to Temptable or from days to minutes,
#AzureSql #tsql #cte #fifohttp://sqlreitse.com/2023/12/14/sql-server-common-table-expressions-a-tale/
-
Translating a query from #msaccess ( :blobcatmeltcry: ) to #tsql in order to troubleshoot something. The Access query uses InStr() https://support.microsoft.com/en-us/office/instr-function-85d3392c-3b1c-4232-bb18-77cd0cb8a55b in which the parameters are in exactly the opposite order than the equivalent CHARINDEX() https://learn.microsoft.com/en-us/sql/t-sql/functions/charindex-transact-sql?view=sql-server-ver16
I'm sure this is an organic evolution of disparate, yet similar technologies, but damn it took me too long to figure out why my record counts were so off.
-
http://sqlreitse.com/2023/01/20/distinct-or-group-by/
A fun test to see the differences between distinct and group by. I'd love to hear your experiences! #sqlserver #tsql #distinct #groupby #zekerweten