Viewing 15 posts - 946 through 960 (of 1,993 total)
Query said: ...WHERE 1=0... Comment in front of the query said: -- WHERE 1 = 0 No explanation for it at all.
I hate "where 1=0" - I ..use "where...
MVDBA
June 5, 2019 at 12:28 pm
Table value functions have quite a few restrictions and can certainly affect performance if used incorrectly.
you could try using a table value parameter instead of @table, but you would have...
MVDBA
June 5, 2019 at 10:47 am
Each solution has it's advantages.
I personally use transactional replication as it's usually only 3 or 4 seconds latency and both copies of the data are queryable. Plus you can filter...
MVDBA
June 5, 2019 at 10:22 am
easy
exec sp_msforeachdb ' SELECT TOP 1 * FROM ?.dbo.sysindexes ORDER BY rowcount desc'
if you really want , you could stick an inner join on ?.dbo.sysobjects into it, so that you...
MVDBA
June 5, 2019 at 10:04 am
try this
looks like a simple registry change
MVDBA
June 5, 2019 at 9:58 am
If there are no Foreign keys then all of the bullet points you listed will be true.
was the database created by some form of "code first" method where the application...
MVDBA
June 5, 2019 at 8:54 am
I came across a stored procedure recently where there were 2 developers clearly arguing
we didn't have source control for sql at the time of the argument (way before I started)...
MVDBA
June 5, 2019 at 8:33 am
There is another slightly ugly way of doing it (I just hate triggers so I find stupid ways of getting round them)
aside from baking the logic of the count into...
MVDBA
April 5, 2019 at 9:35 am
This reminds me of my studies of normalisation.. one of the rules of normalisation is that you should not design your database to accomodate any specific query pattern..
But...
MVDBA
December 12, 2018 at 10:10 am
jasona.work - Wednesday, October 31, 2018 6:32 AMSince they got their first TI99 4/A
You are showing your age... I had one of...
MVDBA
October 31, 2018 at 7:19 am
I work in a company with over 800 employees. we have well over 50 developers.
Our company takes a slightly novel approach to apprentices.
In the UK we...
MVDBA
October 31, 2018 at 2:27 am
For me, it was the day after weeks of trying to make service broker, NoSQL and a petabyte sql server system deliver a system that exceeded everything our internal customers...
MVDBA
August 17, 2018 at 4:01 am
MVDBA
July 30, 2018 at 9:34 am
This reminds me of a conversation in a nightclub about 20 years ago
… a group of girls approached us and asked what we did for a living... unfortunately...
MVDBA
July 30, 2018 at 8:09 am
is it possible that the login used in your linked server is the owner of the database that you are seeing ?
MVDBA
July 20, 2018 at 6:43 am
Viewing 15 posts - 946 through 960 (of 1,993 total)