Viewing 15 posts - 31 through 45 (of 129 total)
I've always implemented constraints to keep me, my devs and data analysts from getting sloppy
yes - especially when you are evolving the application (and doubly so when making online updates)
anyway...
July 24, 2010 at 5:54 pm
because the proc had to select the user account to check the balance already
the foreign key constraint was unnecessary
a single check constraint is quick but that isn't a common scenario
checking...
July 24, 2010 at 4:21 pm
I'd be interested to know more about your scenario and why you think the probability of the constraint failing was "microscopic"
plenty of validation at the application level
plenty more at the...
July 24, 2010 at 2:58 pm
1) that is the default port for sftp so no need to specify
2) try space: servername<space>22
to be clear: "sftp" = the ssh ftp protocol?
that trace looks like actual "ftp" -...
July 23, 2010 at 2:21 pm
I get a little tingle of excitement everytime I use "goto" in CSharp
July 23, 2010 at 2:09 pm
I like to have very tight control of my data - with many constraints and triggers etc.
but, saying that, I have built systems without any of the usual constraints
because:
- it...
July 23, 2010 at 12:54 pm
I like the rule "never do anything you can't undo"
if, after dropping the database your restore had failed ...
... a safer approach would be to: detach db, rename mdf/ndf/ldf, restore
July 23, 2010 at 12:40 pm
OP: use the deadlock xml to determine the statements and resources involved in the deadlock
but to understand the deadlock you have to work backwards (possibly across multiple procedures / views...
July 23, 2010 at 3:12 am
FWIW, when I started my job a bit over a year ago, we were getting regular deadlocks. After some work to set up traces to trap all deadlocks, and to...
July 23, 2010 at 3:04 am
Dynamic SQL
build a SQL string and execute it
July 22, 2010 at 2:59 am
if you truncate the time to nearest 30 minutes (hh:00 or hh:30)
and then group by that:
declare @now datetime
set @now = {ts'2010-01-01 00:59:00'}
selectdateadd(day, datediff(day, 0, @now), 0)
+ dateadd(hour, datepart(hour, @now), 0)
+...
July 22, 2010 at 1:23 am
wayne: that is very handy bit of sql
it is impossible / unreasonable and unnecessary to stop all deadlocks
as long as there is correct retry logic
they are irrelevant
if you have an...
July 21, 2010 at 9:50 am
it is not easy to answer without knowing more, but ...
change either:
dbo.proc_MSS_ProcessDelete
-- or --
dbo.proc_MSS_UpdateHostStats
to access tables:
WSS_Search_NIHR-MOSS1.dbo.MSSCrawlHostList
-- and --
WSS_Search_NIHR-MOSS1.dbo.MSSCrawlQueue
in the same order
if the existing logic doesn't lend itself to a re-ordering
consider...
July 21, 2010 at 8:29 am
I plan to one day soon
Even though I use it everyday, it is still a work in progress - and not ready for general consumption
(It is a Windows Application -...
July 20, 2010 at 2:23 am
Viewing 15 posts - 31 through 45 (of 129 total)