Viewing 15 posts - 5,251 through 5,265 (of 7,597 total)
In effect, yes, you could add a "signature" using extended properties. It could be anything you want, just an entry to show that you created the proc.
March 26, 2015 at 11:19 am
Roughly normal, yes. The rebuild process requires additional disk space.
But, after the rebuild, more of that 102G is unallocated and could, theoretically, be released to disk by shrinking the...
March 26, 2015 at 9:01 am
No, but you must alias it so SQL can recognize the difference between a scalar variable one a table. I think it's a parsing issue if you don't use...
March 25, 2015 at 4:08 pm
Not automatically. When pages are freed from a table, they are basically as marked as "not in use" within that db, but they remain in that db and are...
March 25, 2015 at 3:00 pm
You'd want the flag column(s) to key the index, not column1. Start with whichever flag is more selective. So, either: (flag1, flag2) or (flag2, flag1).
But, as Grant noted,...
March 25, 2015 at 2:15 pm
Maybe it's a case-sensitive db and the literal's case doesn't match the case stored in the table??
March 25, 2015 at 2:10 pm
I don't see a clustered index on the table (but maybe I just missed it).
If you most often / always query the table based on YrMo, cluster the table on...
March 25, 2015 at 2:08 pm
Something like below I guess. I can't test it (and thus also can't review the query plan to check potential performance) because I don't have data with which to...
March 25, 2015 at 1:59 pm
pwalter83 (3/25/2015)
ScottPletcher (3/25/2015)
Otherwise it's difficult to re-write because there are no...
March 25, 2015 at 11:36 am
If I understand the query correctly, I think this will do it:
DECLARE @SearchId INT = 100
SELECT Customer.*
FROM Customer
WHERE
NOT EXISTS(
...
March 25, 2015 at 11:02 am
You should get rid of the DISTINCT in the subquery; since you're GROUPing on BL_ID, you don't need it anyway.
Otherwise it's difficult to re-write because there are no aliases on...
March 25, 2015 at 10:53 am
You can specify a longer length on the SUBSTRING and it won't hurt anything, so you skip calculating the length; for example:
SELECT SUBSTRING(string_value, CHARINDEX('-', string_value) + 1, 100)
March 25, 2015 at 10:47 am
CA ERwin has a free tool now, although that version does limit the number of objects. The full ERwin is a fantastic modeling tool (my favorite of the many...
March 25, 2015 at 9:11 am
The READPAST hint is very helpful in those types of situations. I believed it was designed to help handle these types of "queue assignment" queries.
March 23, 2015 at 4:13 pm
Detach can get messy, esp. with the file security changes that occur.
I'd just restore the backup 20 times. You could bundle the entire process into a master job and...
March 23, 2015 at 10:21 am
Viewing 15 posts - 5,251 through 5,265 (of 7,597 total)