Viewing 15 posts - 241 through 255 (of 821 total)
To get it for each db and files:
declare @sql nvarchar(max) = 'select 0 as dbid,0 as fileid WHERE 0=1'
UNION ALL SELECT '''+RIGHT(database_id,10)+''',fileid FROM '+name+'.sys.sysfiles'
FROM...
September 1, 2015 at 2:26 am
Very interesting!
Thanks!
😀
But in the real world, if Id is uniqueidentifier, how many splits of page will occur?
August 6, 2015 at 1:37 am
BWFC (8/3/2015)
The correct answer is Query 2, with the MODIFY FILE...
August 3, 2015 at 1:29 am
I tested it. The qotd is right and also the answers are correct.
I learned something new.
I also tested placing a WITH(NOLOCK) on query 2 and 3, same results.
Query 1:
create table...
July 31, 2015 at 2:04 am
Eirikur Eiriksson (7/30/2015)
Thanks Ed for this fine piece, certain that it will be a very handy reference.😎
+1
Here, another dos command to list files, each column is separated by "*":
@for /R...
July 30, 2015 at 4:01 am
Hugo Kornelis (7/16/2015)
Koen Verbeeck (7/15/2015)
Meh, who cares about mirroringPerhaps, everyone who does not have the budget for Enterprise Edition?
If you are running an edition of SQL Server that does...
July 17, 2015 at 6:53 am
I read about TEMPORAL TABLE just two weeks ago.
Good qotd!
🙂
July 16, 2015 at 1:38 am
Correct answer:
When J is between -999,999,999 and -100,000,000 or between 1,000,000,000 and 2,147,483,647
Correct explanation:
...
If the expression is between -999,999,999 and -1(,0)00,000,000 or between 1,000,000,000 and 2,147,483,647 it's decial representation...
July 5, 2015 at 9:12 am
I'm surprised, how an "answers bad worded" qotd gets more than 60% of right answers.
:crazy:
July 2, 2015 at 1:58 am
-- Using credentials on database requires enabling traceflag
DBCC TRACEON(4631,-1)
Instead of
-- Using credentials on database requires enabling traceflag
DBCC TRACEOFF(4631,-1)
June 26, 2015 at 2:14 am
deroby (6/18/2015)
The stored procedure might be old (and indeed in need for some TLC, thumbs up for the...
June 18, 2015 at 3:41 pm
I fixed this bug in the sp_helptext in 2002 in SQL2000 in the same way. I changed the length from 255 to 4000, but the problem is not solved completely....
June 18, 2015 at 9:45 am
I thought that this statement was missing:
alter INDEX SalesArchive_CI_SalesPersonID ON dbo.SalesArchive disable
... and got it right!
😀
June 10, 2015 at 1:32 am
Viewing 15 posts - 241 through 255 (of 821 total)