Kill SPIDs through automated job(while restore)
Here's a script, for killing a SPIDs against a particular database, here am using BIN as the database.
2016-12-02 (first published: 2008-07-17)
1,835 reads
Here's a script, for killing a SPIDs against a particular database, here am using BIN as the database.
2016-12-02 (first published: 2008-07-17)
1,835 reads
Truncating tables with constraints always had been a pain, since we have to drop and recreate all the FKs. I created a script that takes care of dropping and recreating the foreign keys while truncating. Please use with caution! and always respect your Data !
2016-12-01 (first published: 2016-11-28)
1,424 reads
2016-11-30 (first published: 2016-11-22)
834 reads
2016-11-29 (first published: 2015-03-30)
3,952 reads
2016-11-28 (first published: 2016-11-21)
4,180 reads
Warm the cache with a particular table by reading it into memory.
2016-11-25 (first published: 2016-11-14)
933 reads
2016-11-24 (first published: 2003-07-09)
829 reads
2016-11-22 (first published: 2016-11-11)
861 reads
If you have Always On and need to stop running database backups to the stand by server, use the script.
2016-11-21 (first published: 2016-11-01)
344 reads
This query generate add/alter script for missing or different columns. Execute on source database and copy resultset. Execute generated script on any database (may be all customer databases) Missing columns will be created and different types will change as source schema.
2016-11-18 (first published: 2016-11-07)
941 reads
By Steve Jones
This is a great image from the 2012 book. You don’t need to ready...
By Brian Kelley
Annually, the IIA Palmetto Chapter puts on a 1 day on-line event in conjunction...
By Arun Sirpal
In the last post I registered AgentDBA as an MCP server in Claude Code....
Comments posted to this topic are about the item A Fun Friday
Comments posted to this topic are about the item Adding Bits III
Comments posted to this topic are about the item Power BI incremental refresh: how...
I have a table, dbo.bittest, where I am testing an application response. This has this structure:
CREATE TABLE [dbo].[BitTest] ( [insertdate] [datetime] NULL CONSTRAINT [DF__BitTest__insertd__300F11AC] DEFAULT (getdate()), [a] [bit] NULL ) ON [PRIMARY] GOMy application runs this code:
INSERT dbo.BitTest
(
insertdate,
a
)
VALUES
(DEFAULT, 9)
GO
What gets inserted for the most recent date/time value? See possible answers