Viewing 15 posts - 1,321 through 1,335 (of 1,409 total)
According to the link provided in the answer, the query with the GROUPING SETS equals the query with the GROUP BY and UNION ALL.
The correct answer of QotD should be...
September 23, 2008 at 1:12 am
suhas.kanade (9/22/2008)
Is there any other way to recover it?
What way(s) did you try? Didn't it work? What errors did you encounter?
September 22, 2008 at 4:43 am
I will start with a combination of two approaches. First I will run a trace for a week or two that captures all statements with the tablename(s). If no statements...
September 18, 2008 at 11:59 pm
Steve Jones - Editor (9/18/2008)
I'd rename the table. That will tell you if it's still being used.Quick.
If you suggest this, I know another approach. Rename all tables and change it...
September 18, 2008 at 11:52 pm
I also thought of triggers. The downside of triggers is that they don't act on SELECTs. So if a table is only accessed by SELECT statements (for reference or archive...
September 18, 2008 at 11:19 am
If you have a snapshot, you can recover the table from the snapshot. Else I suggest to restore the database with another name and export the table to the original...
September 18, 2008 at 7:11 am
Maybe you can use the WITH (NOLOCK) hint in your SELECT statement. This will read the data even if an exclusive lock is set on the record.
:exclamation:But beware: a query...
September 17, 2008 at 6:32 am
It's a bit hard to understand your question. Can you post the complete query?
You can try to use the computed phrase to fill your column:
For instance if your computed column...
September 17, 2008 at 6:23 am
Doesn't give the description of the error a clue what the source is?
Can you post more information so we can help you better...
September 17, 2008 at 6:06 am
This is not easy for a numeric value, because you have to code '00'+@number everywhere in your code (see post of Nary). Better to convert to a string.
declare @number char(10)
set...
August 28, 2008 at 1:23 am
All values in a DMV will be removed. After the restart of SQL all logging of index-usage etc. will start from scratch.
August 28, 2008 at 1:01 am
To select all SP's with a specific versionnumber:
select * from sys.objects where type = 'P' AND name LIKE '%_268000'
To see all used versions (including how many SP's are available in...
August 26, 2008 at 1:15 am
Did you allready fill your table with data?
If so, are the values in the varchar() column unique? --> required for PK!!
August 26, 2008 at 1:01 am
For performance it is better to NOT shrink the LOG-file. It takes lots of I/O for the log-file to expand each time. When a full- or logfile-backup is taken, completed...
August 25, 2008 at 6:38 am
Or, with the sample you are giving, you can just use a nested REPLACE function in your query...
REPLACE(
REPLACE(
Table2.CategoryCode
...
August 13, 2008 at 11:56 pm
Viewing 15 posts - 1,321 through 1,335 (of 1,409 total)