Viewing 15 posts - 541 through 555 (of 1,193 total)
Nice question, thanks. Missed that the rebuild would re-enable the index, duh!
March 5, 2013 at 2:59 am
SQL Server Installation Centre (should be on your start menu) has a 'Installed SQL Server features discovery report' option in the Tools menu.
March 4, 2013 at 8:21 am
GregoryF (3/4/2013)
as soon as I use a variable, I get a syntax error
I think you've answered your own question there 🙂
A way around it would be to use dynamic sql...
March 4, 2013 at 8:15 am
Interesting, it should be able to be granted at the database or server scope!
Don't think compatibility level should affect it, and the VIEW DEFINITION securable was introduced with SQL 2005...
March 4, 2013 at 4:13 am
Hi, what SQL are you running at the moment and what error are you getting?
Thanks
March 1, 2013 at 8:22 am
Agreed, shrinks should definitely be avoided except in certain circumstances.
In answer to you questions:
Shrinkdatabase attempts to shrink all files, but only returns data for those that were actually shrunk.
Values are...
March 1, 2013 at 4:48 am
Hi, yeah CountDistinct will do that, if every value in the column is the same, which it looks like it is (year?).
One solution would be to change the column in...
March 1, 2013 at 4:21 am
Hi, the securables list shows objects by default - you need to search for database-level permissions.
(Search... All objects of the types... select database.. ok)
sp_helpprotect doesn't show information for all securables...
March 1, 2013 at 4:16 am
Hi, how is it not working - error, wrong count, something else?
Cheers
Gaz
March 1, 2013 at 3:38 am
Hi,
At this point, it might be easier to tell us exactly what date you're trying to get from the table 🙂
Kingston's solution seems to correct to me but if that's...
February 27, 2013 at 3:16 am
Your ascending ordering in the subquery means they're logically the same. If you were ordering by date descending then that would be a different matter.
February 27, 2013 at 2:49 am
Looking at your table structure, I'm tempted to agree with those that have said you need to UPDATE the table rather than INSERT.
Is the data already there and you just...
February 26, 2013 at 9:51 am
You're not providing a value for OrganizationID in your insert statement, and it's a not null field.
Unless it's an identity field the insert will fail.
Need something like this:
BEGIN
SET @sql =...
February 26, 2013 at 9:28 am
Hi Ben,
Yep, understood what you meant after I thought about it a bit.
You can't average the value for a given page - the value at 1 hour isn't comparable to...
February 22, 2013 at 10:57 am
ben.brugman (2/22/2013)
The average time a page remains in the cache is two times the time it has been in the cache at any moment.
Is it?
Edit: actually, I see how...
February 22, 2013 at 10:16 am
Viewing 15 posts - 541 through 555 (of 1,193 total)