Viewing 15 posts - 856 through 870 (of 1,993 total)
I think the real question is why you are using float.
float is an approximation, comparing it to a fixed decimal type (such as money) is always going to have issues.
can...
MVDBA
September 27, 2019 at 7:12 am
I used to work for a company using HES and SUS data from different NHS sources in order to provide statistics back the NHS Trusts on performance

MVDBA
September 23, 2019 at 8:02 am
the redgate tool is awesome.... you won't be disappointed
disclaimer - I don't work for Redgate 🙂
but the licencing is tricky, if you want to backup 3 servers then it's 3...
MVDBA
September 20, 2019 at 3:52 pm
although in your example order 789 contains 3 items, do you only want where there are 2 items? both of which are 1 and 2? or if you have 50...
MVDBA
September 20, 2019 at 3:43 pm
drew is correct (I mean his code is the right way to do it)
MVDBA
September 20, 2019 at 3:39 pm
so you are having to put the FK back using WITH NOCHECK?
I can't really see why you have the foreign key in place (unless you are modifying their values to...
MVDBA
September 20, 2019 at 3:31 pm
you could set the foreign keys to cascade on delete
then all of your child objects would be deleted when you delete the parent row
MVDBA
September 20, 2019 at 3:27 pm
what's your growth settings on the files?
and are you in full recovery mode? where is the bulk of the data? is it in the log?
MVDBA
September 20, 2019 at 3:15 pm
I think you will have to manually tune that query
maybe there are a few missing indexes and your data size has got to a point where it can't find a...
MVDBA
September 20, 2019 at 3:09 pm
are you doing this for a job interview/school exam?
MVDBA
September 20, 2019 at 3:02 pm
PAGEIOLATCH_SH
Occurs when a task is waiting on a latch for a buffer that is in an I/O request. The latch request is in Shared mode. Long waits may indicate problems...
MVDBA
September 20, 2019 at 2:53 pm
this is going to be painfull
my advice would be to do it manually
BUT if you query msdb.dbo.sysjobsteps there is a column called "command".. you could try and scrape proc and...
MVDBA
September 20, 2019 at 10:52 am
write it up as an article for the site, it's quite an interesting find. I'm sure steve would love it
MVDBA
September 20, 2019 at 9:41 am
Hi thomas
we're restoring to a dev server, so filegroup restores would be a nightmare.
i've found the best way is redgate source control and GIT with sql compare if needed
MVDBA
September 20, 2019 at 8:05 am
is it a heap? (does it have a clustered index)
if you process things nightly and delete data then the space can remain allocated but the data content is a lot...
MVDBA
September 19, 2019 at 3:39 pm
Viewing 15 posts - 856 through 870 (of 1,993 total)