Viewing 15 posts - 2,011 through 2,025 (of 7,608 total)
After the other REPLACEs, you might as well replace all multiple spaces with a single space, to avoid any possible issues with, for example, " AS ". The actual REPLACEs...
December 31, 2020 at 4:01 am
Even if the db is not normally in SIMPLE mode, you would certainly want it to be in SIMPLE for these rebuilds, to drastically reduce logging requirements.
If the...
December 31, 2020 at 3:55 am
With a table that large, say you have a total of 6 indexes, 1 clus and 5 nonclus.
I'd expect it to be faster to do a REBUILD...
December 31, 2020 at 3:54 am
ONLINE rebuilds must be fully logged. Make sure you have pre-allocated enough log space to handle the ONLINE rebuild before issuing the command.
Then, try an ONLINE rebuild on an index. ...
December 30, 2020 at 4:33 pm
Even if the db is not normally in SIMPLE mode, you would certainly want it to be in SIMPLE for these rebuilds, to drastically reduce logging requirements.
If the db is...
December 30, 2020 at 4:31 pm
Btw, I suggest not using the term "magical tables" in your interview. It sounds rather unknowledgeable about relational dbms's.
December 29, 2020 at 10:01 pm
Oh, virtual tables. Yeah, SQL has lots of virtual tables.
Yes, you could easily be asked about the inserted and deleted tables. You can treat these as regular (physical) tables in...
December 29, 2020 at 9:59 pm
I intended that you would get a specific row's(s') actual physical length(s) based on the input to the function.
You specify a unique key or key range for any existing unique...
December 29, 2020 at 8:58 pm
With a table that large, say you have a total of 6 indexes, 1 clus and 5 nonclus.
I'd expect it to be faster to do a REBUILD ALL than to...
December 29, 2020 at 8:40 pm
If a job has only 1 step, then that step started when the job itself started, and you already know how to tell that.
December 29, 2020 at 8:35 pm
It's long past time that SQL Server should provide a ROWLENGTH function that gives you the physical length of a row(s). But that's likely just wishful thinking on my part.
December 29, 2020 at 8:28 pm
Use REBUILD ALL, it will (should) be more efficient.
But pre-grow the log first to the total size you will need for the REBUILD. It's a very slow process when the...
December 29, 2020 at 8:13 pm
Of course the lazy way to get an accurate avg row size, if you have the time to let it run, is using:
EXEC sys.dm_db_index_physical_stats
specifying 'DETAILED'. SQL will then calc the...
December 29, 2020 at 4:37 pm
I don't know your data. In the original q, you stated "each day of the week". So I guessed one week.
If you only need two days, then change the ending...
December 29, 2020 at 4:28 pm
I've been a SQL Server DBA for 20 years, I've never heard of "magic tables" in SQL Server. You need to be clearer and more specific about what you're trying...
December 29, 2020 at 4:23 pm
Viewing 15 posts - 2,011 through 2,025 (of 7,608 total)