(Tracy McKibben) I assume that by now you’ve tried the script from Part 1, and have seen how easy it is to script out your database objects using Powershell. The resulting scripts are the standard DDL scripts that you can generate from Management Studio, and for most of us, are just fine right out
Tag: sql server
Usage of DBCC OPTIMIZER_WHATIF for SQL Server Query Tuning
(Daniel Farina) You need to tune a query on a non-production server. To do this, you have exported database statistics and loaded them onto a development environment.
How to kill a negative SPID (like SPID -2 or -3) in SQL Server?
(Rohit Garg) Today, I face issue during one database restore. I am not able to restore because “Database is in use, Not able to take exclusive lock”. I have killed all the user sessions & stop the application but still we are facing this issue.
The amazing never shrinking heap
(Kenneth Fisher) This is a quick demo of a little “trick” with heaps I’ve known about for a couple of years. However until recently I could never duplicate it on purpose. (You can read that as I’ve had a production problem bite me in the …. repeatedly.)
Application High Availability and Disaster Recovery for SQL Server, Part 1
(Thanh “OJ” Ngo) IT is all about configuring and maintaining computer hardware and software to support business needs. That means you need to utilize, maximize, and capitalize on the fastest and most powerful hardware and software available.
SQL SERVER – How to See Active SQL Server Connections For Database
(Pinal Dave) Another question received via email –
Create Your Own RANDBETWEEN Function in T-SQL
(Dallas Snider) There are several functions that are included with Excel that I use on a regular basis that are not included with SQL Server. The RANDBETWEEN function is one of these. Is there a way to recreate this functionality in T-SQL code?
SQL SERVER – How to Force New Cardinality Estimation or Old Cardinality Estimation
(Pinal Dave) After reading my initial two blog posts on New Cardinality Estimation, I received quite a few questions. Once I receive this question, I felt I should have clarified it earlier few things when I started to write about cardinality.
How to Create In-Memory Database Tables in SQL Server 2014
(Rob Tiffany) RAM is cheap and it’s finally time to reap the benefits of 64-bit computing.
Is_ms_shipped Property in SQL Server
(Vishwanath Dalvi) Most of the time, we need to search for objects using metadata (data about data) to get information about SQL Server. For example, we use a query to find which version of SQL server is running on a particular machine. Metadata helps us to find settings and configurations for vario
