Viewing 15 posts - 166 through 180 (of 424 total)
My worst conversion/import was from a database using a couple generic tables; most other tables were defined as data in the generic tables. This metadata style design had to...
January 26, 2016 at 11:27 am
Sql Server will always write to the log for the current transactions, otherwise it would not be a sql database. This is the foundation of a transactional database implementing...
January 26, 2016 at 11:10 am
Wow, lots of work to try to programatically figure out keys!
Thank heavens other companies don't use any constraints or unique indexes or normalization; they eventually provide customers to me.
Having done...
January 26, 2016 at 10:58 am
Excellent links! As I suspected, fragmentation does result in several more levels in the index tree that must be navigated. Also, I think my co-worker can get more...
January 21, 2016 at 11:13 am
Yes you will see a great improvement in performance by specifying UNIQUE for a CLUSTERED index. Back in sql 6.5 I saw a 4X improvement. Not sure if...
January 21, 2016 at 10:34 am
I think the OP should go with a calendar table. I did take it 90% of the way to show him how to manipulate dates. His implementation will...
January 14, 2016 at 9:05 am
DECLARE @days TABLE (dt date not null primary key);
DECLARE @dt date;
SET @dt = '20160101';
WHILE @dt < '20170101'
BEGIN
INSERT into @days VALUES (@dt);
SET @dt = DATEADD(DAY,1,@dt);
END
SELECT DATEPART(MONTH,dt) MonthNbr, DATEPART(week,dt) WeekNbr, MIN(dt) MinDT,...
January 14, 2016 at 8:25 am
Prediction is really hard, especially about the future!
I tried to explain customers will adapt and change how they use the app on a daily basis. Watching monthly growth trends...
January 13, 2016 at 12:35 pm
I release my app to many different customers and each uses it differently; some attach huge files to each transaction while others don't. Doing a calculation on each table's...
January 13, 2016 at 11:08 am
Two disk channels is twice the pipes! If you're writing mostly to an SSD, you're idle on the second pipe.
I only run logs on SSDs since nothing gets changed...
December 8, 2015 at 1:19 pm
If a database consists of mostly binary attachments, do not compress it when backing it up; it will take twice as long and you won't save any space.
To find out...
November 25, 2015 at 7:51 am
I've never experienced dropping two objects when trying to drop one.
My guess is that using something like the sp_MSforeachtable stored procedure would drop all matching objects if you don't specify...
November 17, 2015 at 8:31 am
I also use version numbering to control which script gets run next. To allow any script to run in any order would be pure insanity (a utopia that will...
November 17, 2015 at 8:24 am
In early versions of sql server one could think of the database as a container for tables and other objects. I'm guessing that changed with sql 2005 or 2008...
November 13, 2015 at 1:38 pm
I could be wrong but I'm pretty sure there is no nesting of schemas...so there is no such thing as a sub-schema. And I think setting a default schema...
November 13, 2015 at 12:22 pm
Viewing 15 posts - 166 through 180 (of 424 total)