A simple script on how to setup and work with file tables in MS SQL Server. This basically does the bare minimum to setup and create filetables in […]
How to reset password for all users in WordPress site within MYSQL databases
A typical installation of WordPress usually has MySQL database as the backend, recently I found a need to reset the password for multiple users in one go. Here […]
SQL 2019:- sp_estimate_data_compression_savings
This procedure allows us to estimate the potential space savings on a table before we apply a compression algorithm. It’s not exactly a new feature of SQL 2019 […]
SQL 2019:- sys.dm_db_page_info
So we have a new DMF to allow us to view details for the page something I do very often during trainings using the DBCC Page Utility. I […]
SQL 2019:- APPROX_COUNT_DISTINCT
A function that might prove useful when querying very large datasets, it provides a count of distinct values for any column in the database except text,ntext , image […]
To accomplish this action, set property PartitionScheme
SSMS 18.X error when creating NonClustered index This seems to be a bug in SSMS as the index can be created using TSQL just fine here is the […]
Installing SQL 2019 CTP 2.0
It’s finally out and it’s going to be awesome but there is only one way to find out, so here is the very first step, installing SQL SERVER. […]
Why does the query throw NULL and Schrödinger’s cat?
An interesting problem came up in #SQLHelp today. The query is fairly simply and aims to generate a random distribution of value 1,2 and 3. I am not […]
The use of table valued parameters and its performance impact – analysis
I read a very informative post today on Linkedin about how developers sometime don’t understand the impact of using table valued parameters in a stored procedure. A table […]
RECOMPLE behavior the difference between OPTION ( RECOMPILE ) AND WITH RECOMPILE
An interesting problem was posted on #SQLHelp the other day about using the QueryHint OPTION(RECOMPILE). If you are not sure about how recompile works here is a quick […]