|
|
|
|
|
|
|
| Question of the Day |
Today's question (by Thomas Franz): | |
Adding new column with DEFAULT | |
Which number will the COUNT() return after executing the following statements:
DROP TABLE IF EXISTS #test; CREATE TABLE #test (id INT) INSERT INTO #test (id) SELECT * FROM GENERATE_SERIES(1, 3) AS gs ; ALTER TABLE #test ADD flag BIT CONSTRAINT DF_#test_flag DEFAULT 0; go UPDATE #test SET flag = 0 WHERE id = 1 UPDATE #test SET flag = 1 WHERE id = 2 INSERT INTO #test (id) VALUES (4) SELECT COUNT(*) FROM #test AS t WHERE flag = 0 | |
Think you know the answer? Click here, and find out if you are right. | |
| Yesterday's Question of the Day (by Steve Jones - SSC Editor) |
Hyperscale Replicas I What types of secondary replicas are available for the Azure SQL Database Hyperscale edition? Answer: HA replicas, Geo-replicas, and named replicas Explanation: There are 3 types of replicas available for Hyperscale, as of Sep 2026: High Availability (HA) replicas, Geo-replicas, and named replicas. HA replicas are for high availability in the event the primary fails. Geo replicas ensure data is replicated to other geographical locations. Named replicas are for read-only scale out. Ref: Hyperscale secondary replicas - https://learn.microsoft.com/en-us/azure/azure-sql/database/service-tier-hyperscale-replicas?view=azuresql-db |
| Database Pros Who Need Your Help |
Here's a few of the new posts today on the forums. To see more, visit the forums. |
| Editorials |
| Preserving Data - Comments posted to this topic are about the item Preserving Data |
| When the Token Meter is Zero - Comments posted to this topic are about the item When the Token Meter is Zero |
| Collecting Data Is Hard - Comments posted to this topic are about the item Collecting Data Is Hard |
| Admin Rights for Everyone - Comments posted to this topic are about the item Admin Rights for Everyone |
| Article Discussions by Author |
| Demo Tracking Dropped Objects - Comments posted to this topic are about the item Demo Tracking Dropped Objects |
| Randomly Selecting Columns and Rows from a Table or View - Comments posted to this topic are about the item Randomly Selecting Columns and Rows from a Table or View |
| How Can SQL Server Detect Application Errors When Developers Can’t? - Comments posted to this topic are about the item How Can SQL Server Detect Application Errors When Developers Can’t? |
| Getting Database MaiL Profiles - Comments posted to this topic are about the item Getting Database MaiL Profiles |
| Understanding Temp Tables and Table Variables in SQL Server - Comments posted to this topic are about the item Understanding Temp Tables and Table Variables in SQL Server |
| The Data API Builder MCP Server Tools - Comments posted to this topic are about the item The Data API Builder MCP Server Tools |
| Kerberos Authentication for Aurora PostgreSQL: Mapping AD Groups to Database Roles - Comments posted to this topic are about the item Kerberos Authentication for Aurora PostgreSQL: Mapping AD Groups to Database Roles |
| RegEx Functions I - Comments posted to this topic are about the item RegEx Functions I |
| SQL Server 2022 - Administration |
| Alamat BCA KCU Rawamangun Telp:0821-815-4374 - Telp/WA +62 821-815-4374 Jl. Paus No.81, RT.1/RW.8, Wil, Kec. Pulo Gadung, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13220 |
| Alamat BCA KCP Permata Ujung Menteng Tlp:0817-825-533 - Telp/WA +62 817-825-533 Jl. Raya Bekasi Km. 25 Blok A/17, RW.18, Ujung Menteng, Wil, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13960 |
| Alamat BCA KCP Matraman Telp:0821-755-5651 - Telp/WA +62 821-755-5651 Jl. Matraman Raya No.14-16, RT.2/RW.1, Kb. Manggis, Kec. Matraman, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13150 |
| |
| ©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |