Viewing 15 posts - 946 through 960 (of 1,999 total)
without seeing the table structure or the data it is returning we will struggle to help
have you thought about using Row_number() over (partition by … order by …) as rn
add...
June 11, 2019 at 3:15 pm
next you'll be telling us Santa Clause and unicorns don't exist
June 7, 2019 at 8:08 am
I hate "where 1=0" - I ..use "where @debugmode=1" and pass that in as a parameter. the number of times one of my devs has hardcoded "where...
June 5, 2019 at 2:00 pm
you could keep your existing clustered index on the publisher.
then set the article properties to not copy indexes. then create a post snapshot script that creates the clustered index to...
June 5, 2019 at 1:26 pm
what type of maintenance plan?
are you just looking for backups ? RDS handles most of this in the background, as it does with patching
you can't really backup a database to...
June 5, 2019 at 1:09 pm
Grant is 100% right
also front end developers in some cases build their child objects first, meaning they put "employee address" records into the database before they put the employee record...
June 5, 2019 at 12:51 pm
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...
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...
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...
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...
June 5, 2019 at 10:04 am
try this
looks like a simple registry change
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...
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)...
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...
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...
December 12, 2018 at 10:10 am
Viewing 15 posts - 946 through 960 (of 1,999 total)