SQL Server useful but less known features
-
Checking who is connected to the database
sp_who
SELECT
NULL as [Connections by Database],
[host_name] AS [Client Machine],
db.name AS [Database],
[program_name] AS [Client Program],
COUNT(*) AS [Open Connections]
FROM sys.dm_exec_sessions s (nolock)
LEFT JOIN sys.dm_exec_requests r (nolock) ON r.session_id = s.session_id
LEFT JOIN sys.databases db (nolock) ON db.database_id = r.database_id
WHERE s.session_id >= 50 -- Ignore SQL Server processes
GROUP BY [host_name], db.name, [program_name]
ORDER BY [Client Machine], [Database], [Client Program] -
Adjusting connection pooling settings
By default pool size is 100 per database with a command timeout (effectively a connection timeout) of 15 seconds. To increase add following to the connection string:
Connection Timeout=30;Pooling='true';Max Pool Size=200
-
Checking the size of column's contents
To check how much data the column contains:
SELECT *, DATALENGTH([column]) AS ColumnSizeInBytes FROM table
-
Using SQL Server profiler
Profiler is a powerful way to debug application performance problems, to check query execution time. If you're developing any application using SQL Server as a database, running it at least once for every application release can help with pinpointing possible performance issues. Remember the rule - there should be a constant number of queries regardless of the amount of records fetched - that way application will scale better. Sometimes it's better to replace a single complex query with more simpler queries because for each result row, columns shared by joins are repeated and delivered to client for processing many times.
Comments
gzaqpqzgtd (not verified)
Tue, 01/10/2019 - 19:00
Permalink
Good Locality cReme
cialis usa side effects of nexium cialis vs viagra
gzaqpqzgtd (not verified)
Tue, 01/10/2019 - 18:57
Permalink
Good Locality cReme
cialis usa side effects of nexium cialis vs viagra
gvwxtikzir (not verified)
Tue, 01/10/2019 - 17:42
Permalink
Good Locality cReme
cialis from canada tadalafil tablets 20 mg acheter cialis
gvwxtikzir (not verified)
Tue, 01/10/2019 - 17:35
Permalink
Good Locality cReme
cialis from canada tadalafil tablets 20 mg acheter cialis
ceyyssrrda (not verified)
Tue, 01/10/2019 - 15:59
Permalink
Close in on Plat cReme
generic cialis online buy cialis cialis daily
ceyyssrrda (not verified)
Tue, 01/10/2019 - 15:56
Permalink
Close in on Plat cReme
generic cialis online buy cialis cialis daily
ceyyssrrda (not verified)
Tue, 01/10/2019 - 15:54
Permalink
Close in on Plat cReme
generic cialis online buy cialis cialis daily
ceyyssrrda (not verified)
Tue, 01/10/2019 - 15:50
Permalink
Close in on Plat cReme
generic cialis online buy cialis cialis daily
Brettirrix (not verified)
Mon, 30/09/2019 - 10:48
Permalink
mskjur4v
do men use viagra for porn movies
Stewartskist (not verified)
Mon, 30/09/2019 - 03:43
Permalink
rjnou0mb
levitra generic available 60 mg
benefits of taking cialis and giseng together?
propecia cost walmart
tetracycline 500mg for sale
metformin 1,000 mg
Brettirrix (not verified)
Sat, 28/09/2019 - 13:31
Permalink
3ssqxbh4
propecia 1 mg precio
Brettirrix (not verified)
Fri, 27/09/2019 - 05:12
Permalink
0aczfryp
lexapro ask a patient
oral prednisone and alcohol
acyclovir injection price
xenical venta online
can i get a cialis prescription online
allopurinol without prescription
furosemide generic name
buy ventolin hfa online without prescription
allopurinol 100 mg is non prescription
cialis 10 mg precio walmart
side effects of lexapro 20 mg
sildenafil citrate otc
can sunlight interact with valtrex
is viagra available genericallyt
buy levitra online 24 hours
Brettirrix (not verified)
Fri, 27/09/2019 - 04:42
Permalink
tb3oe8kd
tetracycline 250 mg uses
Michelebuh (not verified)
Tue, 24/09/2019 - 09:56
Permalink
лимузин напрокат красноярск
- Проверить транспорт «вживую». После выбора авто по снимкам из каталога, его необходимо проверить на наличие возможных отклонений: внешний вид, салон, дополнительные аксессуары и т.д.;
Торопитесь оформить заказ - лимузин на свадьбу Одесса по специальной цене, ведь наши люксовые машины расхватывают как горячие пирожки! Не упустите свой шанс!
Лимузин на свадьбу Одесса Excallibur Phantom.
Прокат лимузинов Одесса Lincoln Towncar 2008.
Авто на свадьбу Одесса Ferrari F 430.
лимузин аренда красноярск цены
прокат лимузина водителем 46018f0
Michelebuh (not verified)
Tue, 24/09/2019 - 09:52
Permalink
лимузин напрокат красноярск
- Проверить транспорт «вживую». После выбора авто по снимкам из каталога, его необходимо проверить на наличие возможных отклонений: внешний вид, салон, дополнительные аксессуары и т.д.;
Торопитесь оформить заказ - лимузин на свадьбу Одесса по специальной цене, ведь наши люксовые машины расхватывают как горячие пирожки! Не упустите свой шанс!
Лимузин на свадьбу Одесса Excallibur Phantom.
Прокат лимузинов Одесса Lincoln Towncar 2008.
Авто на свадьбу Одесса Ferrari F 430.
лимузин аренда красноярск цены
прокат лимузина водителем 46018f0
Michelebuh (not verified)
Tue, 24/09/2019 - 09:44
Permalink
лимузин напрокат красноярск
- Проверить транспорт «вживую». После выбора авто по снимкам из каталога, его необходимо проверить на наличие возможных отклонений: внешний вид, салон, дополнительные аксессуары и т.д.;
Торопитесь оформить заказ - лимузин на свадьбу Одесса по специальной цене, ведь наши люксовые машины расхватывают как горячие пирожки! Не упустите свой шанс!
Лимузин на свадьбу Одесса Excallibur Phantom.
Прокат лимузинов Одесса Lincoln Towncar 2008.
Авто на свадьбу Одесса Ferrari F 430.
лимузин аренда красноярск цены
прокат лимузина водителем 46018f0
Michelebuh (not verified)
Tue, 24/09/2019 - 09:42
Permalink
лимузин напрокат красноярск
- Проверить транспорт «вживую». После выбора авто по снимкам из каталога, его необходимо проверить на наличие возможных отклонений: внешний вид, салон, дополнительные аксессуары и т.д.;
Торопитесь оформить заказ - лимузин на свадьбу Одесса по специальной цене, ведь наши люксовые машины расхватывают как горячие пирожки! Не упустите свой шанс!
Лимузин на свадьбу Одесса Excallibur Phantom.
Прокат лимузинов Одесса Lincoln Towncar 2008.
Авто на свадьбу Одесса Ferrari F 430.
лимузин аренда красноярск цены
прокат лимузина водителем 46018f0
Brettirrix (not verified)
Mon, 23/09/2019 - 19:03
Permalink
lwebtc70
buy allopurinol online uk
xenical
tadalafil 5mg coupon
propecia site:ebay.com
is viagra dose weight dependent
is kamagra better than generic viagra?
sildenafil sandoz 50 mg precio
t3 prescription
who manufacturers sildenafil
how much does it cost to get a propecia prescription
ventolin inhaler buy online
cafergot without a prescription
tetracycline generic name
compare tadalafil with generic
interactions for levitra
Brianabipt (not verified)
Sun, 22/09/2019 - 08:01
Permalink
milf porn videos
watch a lot of MILF sex videos at http://milfporno.space
Brianabipt (not verified)
Sun, 22/09/2019 - 07:52
Permalink
milf porn videos
watch a lot of MILF sex videos at http://milfporno.space
Stewartskist (not verified)
Sat, 21/09/2019 - 18:58
Permalink
qkf75l1c
tadalafil lowest price
Brettirrix (not verified)
Fri, 20/09/2019 - 00:45
Permalink
u5dt2vnv
define ventolin
can too much lasix cause tremors
new york physician for generic sildenafil
repeated outbreaks after stoppin valtrex
tadalafil 5 mg daily generic best prices
doxycycline wine
how long before cialis starts working
kamagra oral jelly canada
antabuse 400 mg tablets
tadalafil from india
lexapro jitters
tetracycline bacteremia
tadalafil troche 20mg effects
how much is 60 mg
can i purchase tadalafil tablets???
Ellarem (not verified)
Fri, 13/09/2019 - 10:14
Permalink
Unidox Solutab In Usa Elloringe
Abuso De Kamagra Baclofene Nantes Buy Nosipren Prednisone 20mg Priligy Revenue
Cindyram (not verified)
Sun, 08/09/2019 - 14:48
Permalink
Seemly Install cReme
discount cialis cialis generic cialis online
Cindyram (not verified)
Sun, 08/09/2019 - 14:44
Permalink
Seemly Install cReme
discount cialis cialis generic cialis online
Cindyram (not verified)
Sun, 08/09/2019 - 14:35
Permalink
Seemly Install cReme
discount cialis cialis generic cialis online
Cindyram (not verified)
Sun, 08/09/2019 - 14:34
Permalink
Seemly Install cReme
discount cialis cialis generic cialis online
Cindyram (not verified)
Sun, 08/09/2019 - 12:57
Permalink
Honourable Locality cReme
generic cialis lipitor medication cialis 10mg
Cindyram (not verified)
Sun, 08/09/2019 - 12:55
Permalink
Honourable Locality cReme
generic cialis lipitor medication cialis 10mg
Cindyram (not verified)
Sun, 08/09/2019 - 12:55
Permalink
Honourable Locality cReme
generic cialis lipitor medication cialis 10mg
Cindyram (not verified)
Sun, 08/09/2019 - 12:54
Permalink
Honourable Locality cReme
generic cialis lipitor medication cialis 10mg
Cindyram (not verified)
Sun, 08/09/2019 - 11:21
Permalink
Meet Site cReme
cialis without a prescription sildenafil citrate order cialis
Cindyram (not verified)
Sun, 08/09/2019 - 11:17
Permalink
Meet Site cReme
cialis without a prescription sildenafil citrate order cialis
Cindyram (not verified)
Sun, 08/09/2019 - 11:15
Permalink
Meet Site cReme
cialis without a prescription sildenafil citrate order cialis
Cindyram (not verified)
Sun, 08/09/2019 - 11:13
Permalink
Meet Site cReme
cialis without a prescription sildenafil citrate order cialis
RandyJex (not verified)
Wed, 04/09/2019 - 21:45
Permalink
Weight Loss
If you’re upset about your weight and want to lose a little more, get this…
An overweight mother with pre-diabetes has just SHOCKED the medical
community by losing an unheard of 22lbs pounds in just 13 days…
....Without starving herself, she lost a total of 37lbs in the first month!
-> CLICK HERE to see her Transformation Pics!
...Even without exercising, she went on to burn off 84lbs (almost a pound a day)
and eliminated any sign of diabetes or any other life-ending diseases.
And the amazing thing is…
All she did was this D.I.Y. “carb-pairing” trick that reconditions your 3 female
weight-loss hormones to drastically accelerate fat-burning while still eating the
foods you love.
Check it out for yourself…
“Carb-Pairing” Melts Away 37 Pounds in Just 20 Days (WOMEN ONLY)
Enjoy!
RandyJex (not verified)
Wed, 04/09/2019 - 21:40
Permalink
Weight Loss
If you’re upset about your weight and want to lose a little more, get this…
An overweight mother with pre-diabetes has just SHOCKED the medical
community by losing an unheard of 22lbs pounds in just 13 days…
....Without starving herself, she lost a total of 37lbs in the first month!
-> CLICK HERE to see her Transformation Pics!
...Even without exercising, she went on to burn off 84lbs (almost a pound a day)
and eliminated any sign of diabetes or any other life-ending diseases.
And the amazing thing is…
All she did was this D.I.Y. “carb-pairing” trick that reconditions your 3 female
weight-loss hormones to drastically accelerate fat-burning while still eating the
foods you love.
Check it out for yourself…
“Carb-Pairing” Melts Away 37 Pounds in Just 20 Days (WOMEN ONLY)
Enjoy!
RandyJex (not verified)
Wed, 04/09/2019 - 21:37
Permalink
Weight Loss
If you’re upset about your weight and want to lose a little more, get this…
An overweight mother with pre-diabetes has just SHOCKED the medical
community by losing an unheard of 22lbs pounds in just 13 days…
....Without starving herself, she lost a total of 37lbs in the first month!
-> CLICK HERE to see her Transformation Pics!
...Even without exercising, she went on to burn off 84lbs (almost a pound a day)
and eliminated any sign of diabetes or any other life-ending diseases.
And the amazing thing is…
All she did was this D.I.Y. “carb-pairing” trick that reconditions your 3 female
weight-loss hormones to drastically accelerate fat-burning while still eating the
foods you love.
Check it out for yourself…
“Carb-Pairing” Melts Away 37 Pounds in Just 20 Days (WOMEN ONLY)
Enjoy!
LarryJourn (not verified)
Wed, 04/09/2019 - 17:23
Permalink
walgreen pharmacy online 125 mg
online pharmacy tech programs with financial aid cheap online pharmacy canada drugs coupon code
LarryJourn (not verified)
Wed, 04/09/2019 - 17:20
Permalink
walgreen pharmacy online 125 mg
online pharmacy tech programs with financial aid cheap online pharmacy canada drugs coupon code
LarryJourn (not verified)
Wed, 04/09/2019 - 17:17
Permalink
walgreen pharmacy online 125 mg
online pharmacy tech programs with financial aid cheap online pharmacy canada drugs coupon code
LarryJourn (not verified)
Wed, 04/09/2019 - 17:09
Permalink
walgreen pharmacy online 125 mg
online pharmacy tech programs with financial aid cheap online pharmacy canada drugs coupon code
Haroldguics (not verified)
Wed, 04/09/2019 - 11:42
Permalink
mexican pharmacy online 453 mg
pharmacy technician classes online prescription drugs online pharmacy technician class online
Haroldguics (not verified)
Wed, 04/09/2019 - 11:39
Permalink
mexican pharmacy online 453 mg
pharmacy technician classes online prescription drugs online pharmacy technician class online
Haroldguics (not verified)
Wed, 04/09/2019 - 11:32
Permalink
mexican pharmacy online 453 mg
pharmacy technician classes online prescription drugs online pharmacy technician class online
Haroldguics (not verified)
Wed, 04/09/2019 - 11:29
Permalink
mexican pharmacy online 453 mg
pharmacy technician classes online prescription drugs online pharmacy technician class online
LarryJourn (not verified)
Mon, 02/09/2019 - 08:49
Permalink
us online pharmacy 125 mg
pharmacy degrees online pharmacy tech schooling online online pharmacy viagra
LarryJourn (not verified)
Mon, 02/09/2019 - 08:43
Permalink
us online pharmacy 125 mg
pharmacy degrees online pharmacy tech schooling online online pharmacy viagra
Josephmaymn (not verified)
Mon, 02/09/2019 - 08:42
Permalink
french pharmacy online 232 mg
mexican online pharmacy cvs pharmacy online online pharmacy viagra
Josephmaymn (not verified)
Mon, 02/09/2019 - 08:41
Permalink
french pharmacy online 232 mg
mexican online pharmacy cvs pharmacy online online pharmacy viagra
Pages