Viewing 15 posts - 1 through 15 (of 68 total)
While it is maybe not technically a system database, things skipping system databases should probably also exclude [distribution]. In recent versions of SSMS (SQL Server Management Studio), Object Explorer groups...
May 5, 2025 at 11:26 pm
While it is maybe not technically a system database, things skipping system databases should probably also exclude [distribution]. In recent versions of SSMS (SQL Server Management Studio), Object Explorer groups...
May 5, 2025 at 11:25 pm
Dang! I just implemented some bitmapped stuff in SQL Server 2019, and I had to write similar functions myself. It will be a while before the non-profit I work for...
February 20, 2025 at 2:44 am
Hi,
On my server, srvid from master.dbo.sysservers is definitely NOT the source for distribution.dbo.MSsubscriber_info.subscriber_id.
November 21, 2024 at 12:57 am
I found this discussion because I was looking for a way to get the default value for an int column. Here is what I came up with:
declare
...
October 27, 2022 at 12:11 am
This is in response to Jim's aversion to cursors. As a lead DBA, I advised my team to avoid cursors unless necessary. There are times where set based processing is...
October 16, 2021 at 5:59 pm
Reading between the lines, given the 18 decimal points, I'm assuming that you are storing Ether (or some other cryptocurrency). Based on @william Rayer's explanation, maybe you should store balances...
July 29, 2021 at 2:13 am
Well, that's disappointing.
July 28, 2021 at 6:18 am
Testing and Results
I used the UDF from the script I contributed .
Please fix link to script so I can compare my gaps query.
April 17, 2021 at 1:02 am
We always use template SQL scripts to create tables, and for temporal tables, the HISTORY_TABLE clause is there.
CREATE TABLE dbo.TheTableName
...
( SYSTEM_VERSIONING = ON ( HISTORY_TABLE = dbo.TheTableName_hst...
March 30, 2021 at 12:50 am
These days with large SANs and LUNs, you might not do as much of that as in the past.
That's what I was wondering about. When SQL Server is running...
February 19, 2021 at 6:23 am
I work to have scripts be idempotent where feasible. However, it is not always feasible. So.... what do we call those scripts that are not idempotent? That is, what is...
February 18, 2021 at 9:58 pm
It looks like something weird happened when copying and pasting the "SQL script to initiate a backup of a database."
SELECT @MyFileName='C:\PS\SQLScript\Backup\' + REPLACE(cast(cast(convert(nvarchar(20) as nvarchar(max)) as nvarchar(max)),cast(cast(GetDate()...
December 22, 2020 at 6:32 pm
Hi. Here are a few points from me...
December 21, 2020 at 5:23 pm
Hi,
I posted a request to fix this at Microsoft's User Voice forum:
https://feedback.azure.com/forums/908035-sql-server/suggestions/41700883
October 21, 2020 at 8:23 pm
Viewing 15 posts - 1 through 15 (of 68 total)