Viewing 15 posts - 376 through 390 (of 921 total)
Apply the locking override properties with sp_indexoption.
The creation options DROP_EXISTING and SORT_IN_TEMPDB are only relevant during creation, so they're not stored anywhere other than if you save the...
December 5, 2003 at 11:40 am
Use the PASSWORD option when backing up.
--Jonathan
December 5, 2003 at 10:50 am
As your column widths cannot sum to more than 8060 bytes, there's something wrong with your examples. A row's size cannot exceed one page (BLOBs, of course, being a...
December 5, 2003 at 10:49 am
Sounds like the statistics differ between the two servers. If the "slow" server has stale (or missing) statistics, it could easily choose a sub-optimal plan methodology.
--Jonathan
December 5, 2003 at 10:43 am
quote:
Using third-party backup tools, can require you to put the database in SINGLE user mode and kick users out.
December 5, 2003 at 10:32 am
You need to correlate the existence subquery, e.g.
...
AND EXISTS (SELECT *
FROM A04Code
...
December 5, 2003 at 10:13 am
quote:
For long strings with more than a small percentage of characters that must be stripped, the overhead of the PATINDEX and STUFF...
December 5, 2003 at 10:05 am
quote:
Quick brainteaser for our beginning DBA's: what's the quickest method to strip out the time from a DATETIME field (returning only...
December 5, 2003 at 9:59 am
This should be easy to do. It's essentially just three statements.
UPDATE TimeOff
SET Code = 50
WHERE Code = 45
AND NOT EXISTS
(SELECT *
FROM TimeOff t
WHERE...
December 5, 2003 at 9:00 am
Congrats, Frank! Have a "real" Budweiser on me!
quote:
Hey, I expanded my vocabulary today with two new ones.That's too much, I need...
December 5, 2003 at 8:26 am
If I understand your need, this is difficult in T-SQL but easy in any programmable front-end. If you can't manage this on the front-end, then perhaps just using some...
December 5, 2003 at 8:16 am
quote:
Forget it, I had a typo when searching my online dictionaryFrank
Just...
December 5, 2003 at 7:11 am
quote:
Jonathan,I believe yours will not select anything or the wrong results.
Correction, it will if cust is the same for each account.
December 5, 2003 at 7:06 am
quote:
Thanks a lot Jonathan ! The script helps me to solve the problem. But if I want use the top 10 drug...
December 5, 2003 at 6:49 am
SELECT c.Class, c.Account, c.Cust, c.Doc_Type
FROM Documents c LEFT JOIN Documents o ON o.Account = c.Account AND o.Doc_Type IN ('ORIG1','ORIG2')
WHERE c.Doc_Type IN ('COPY1','COPY2')
AND o.Account IS NULL
--Jonathan
December 5, 2003 at 6:22 am
Viewing 15 posts - 376 through 390 (of 921 total)