Instead of...
ALTER TABLE dbo.table ADD col int NOT NULL DEFAULT (0)
... use...
ALTER TABLE dbo.table ADD col int NOT NULL CONSTRAINT DF_table_col DEFAULT (0)
And if you forgot, here's a script for you to help fix the database.
Instead of...
ALTER TABLE dbo.table ADD col int NOT NULL DEFAULT (0)
... use...
ALTER TABLE dbo.table ADD col int NOT NULL CONSTRAINT DF_table_col DEFAULT (0)
And if you forgot, here's a script for you to help fix the database.
Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.
🔗 https://github.com/auraphp/Aura.SqlQuery
Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.
🔗 https://github.com/auraphp/Aura.SqlQuery
#java27 #datascience #sqlserver
#java27 #datascience #sqlserver
buff.ly/IYkFHYg
#dewdrop #newsletter #cloud #aspnetcore #azure #javascript #css blazor #cpp #xaml #windowsdev #csharp #dotnet #ai #mcp #agile #devops #python #appdev #podcasts #m365 #sqlserver #data #terminal #cli #devtools
buff.ly/IYkFHYg
#dewdrop #newsletter #cloud #aspnetcore #azure #javascript #css blazor #cpp #xaml #windowsdev #csharp #dotnet #ai #mcp #agile #devops #python #appdev #podcasts #m365 #sqlserver #data #terminal #cli #devtools
#SQLServer tip: TABLESAMPLE samples pages, not rows.
Our 10% sample: 187 runs of ~56 adjacent rows. A cluster sample.
For random rows (full scan + sort):
SELECT TOP (10) PERCENT *
FROM t
ORDER BY NEWID();
#SSMS #Statistics
#SQLServer tip: TABLESAMPLE samples pages, not rows.
Our 10% sample: 187 runs of ~56 adjacent rows. A cluster sample.
For random rows (full scan + sort):
SELECT TOP (10) PERCENT *
FROM t
ORDER BY NEWID();
#SSMS #Statistics
Find in Files: Ctrl+Shift+H
Back to grid: Ctrl+D
RenSQL for SSMS: run SQL without selecting, query history, SQL library. rowdyne.com/rensql
#SSMS #SQLServer
Find in Files: Ctrl+Shift+H
Back to grid: Ctrl+D
RenSQL for SSMS: run SQL without selecting, query history, SQL library. rowdyne.com/rensql
#SSMS #SQLServer
Are blogs still relevant?
I asked my analytics dashboard, but it declined to comment.
vladdba.com/2026/11/10/t...
#sqlserver #tsql2sday #sqldba #microsoftsqlserver #mssqlserver #mssql #mssqldba #sql
Are blogs still relevant?
I asked my analytics dashboard, but it declined to comment.
vladdba.com/2026/11/10/t...
#sqlserver #tsql2sday #sqldba #microsoftsqlserver #mssqlserver #mssql #mssqldba #sql
youtu.be/t7v-4nDWIJk
#MicrosoftFabric #FabricWarehouse #FabricInsider #GPU #DataWarehouse #SQLServer #TPCH #SIGMOD #AIAgents #DataEngineering #Performance #PowerBI #DataAnalytics #Microsoft #RADACAD
youtu.be/t7v-4nDWIJk
#MicrosoftFabric #FabricWarehouse #FabricInsider #GPU #DataWarehouse #SQLServer #TPCH #SIGMOD #AIAgents #DataEngineering #Performance #PowerBI #DataAnalytics #Microsoft #RADACAD
buff.ly/V898RSn
#sqlserver #database #azuresql #mcp #ai #cloud #azure #docker #containers
buff.ly/V898RSn
#sqlserver #database #azuresql #mcp #ai #cloud #azure #docker #containers
TencentCloudApi php sdk sqlserver
🔗 https://github.com/tencentcloud-sdk-php/sqlserver
TencentCloudApi php sdk sqlserver
🔗 https://github.com/tencentcloud-sdk-php/sqlserver
In which I cover ANSI_NULLS and QUOTED_IDENTIFIER, two potentially dangerous SET options that stored procedures inherit from your session when created.
vladdba.com/2025/03/03/d...
#sqlserver #sqldba #microsoftsqlserver #mssqlserver #mssql #mssqldba
In which I cover ANSI_NULLS and QUOTED_IDENTIFIER, two potentially dangerous SET options that stored procedures inherit from your session when created.
vladdba.com/2025/03/03/d...
#sqlserver #sqldba #microsoftsqlserver #mssqlserver #mssql #mssqldba
🕘Sign up here: www.meetup.com/vancouver-po...
🕘Sign up here: www.meetup.com/vancouver-po...
#SQLFamily #SQLServer #SQL #Data #AzureSQLServer #Azure #MicrosoftFabric #Fabric #Analytics #PerformanceTuning #AI #MVP #MicrosoftMVP #DataPlaform
#SQLFamily #SQLServer #SQL #Data #AzureSQLServer #Azure #MicrosoftFabric #Fabric #Analytics #PerformanceTuning #AI #MVP #MicrosoftMVP #DataPlaform
SQLserverなどの一部のRDBMSでは、(トランザクション内なら)TRUNCATE TABLEはロールバックできるんですね。
知りませんでした。
blog.k-bushi.com/post/tech/da...
SQLserverなどの一部のRDBMSでは、(トランザクション内なら)TRUNCATE TABLEはロールバックできるんですね。
知りませんでした。
blog.k-bushi.com/post/tech/da...
SET NOEXEC ON;
GO
at the top and hit F5. SQL Server compiles every batch but executes nothing. Typos and wrong column names show up; no data changes.
It stays on for the session: run SET NOEXEC OFF; before the real run.
#SQLServer #DBA
SET NOEXEC ON;
GO
at the top and hit F5. SQL Server compiles every batch but executes nothing. Typos and wrong column names show up; no data changes.
It stays on for the session: run SET NOEXEC OFF; before the real run.
#SQLServer #DBA
In RenSQL: put the cursor anywhere in the statement, press Ctrl+Shift+E. It finds the statement and runs just that one.
#SSMS #SQLServer
In RenSQL: put the cursor anywhere in the statement, press Ctrl+Shift+E. It finds the statement and runs just that one.
#SSMS #SQLServer