Viewing 15 posts - 271 through 285 (of 424 total)
Hardest proc? Its the report proc where 10 different managers want their department's performance statistics to outperform all other departments. And the final version needs approved by all...
January 8, 2015 at 9:47 am
-- this better not be a school homework problem
UPDATE b
SET begin_date = a.setup_date
from tableA a
JOIN tableB b ON a.cust_code = b.cust_code AND a.proj_code = b.proj_code
WHERE b.begin_date IS NULL
;
January 7, 2015 at 1:30 pm
As a development DBA who designs for projects exclusively using one philosophy or the other, I can say that GUID PKs are vastly superior to the non-ANSI Identity PKs in...
December 18, 2014 at 7:12 am
Interesting! I think I'd prefer a conversion table with lots of columns such as conversion type (area, mass, etc), long names, abbreviations, descriptions, SI standard names, accepted approximate conversion...
December 16, 2014 at 12:19 pm
My frustration with SQLComplete is due to being unheard month after month. I submitted these as bugs and enhancements many times. Their consistent canned response is to upgrade...
December 10, 2014 at 6:29 am
For those considering buying SQL Complete from dbforge DevArt, I'd just like to say that I've been having serious issues with it for the past year and they do not...
December 9, 2014 at 8:30 am
CELKO (12/4/2014)
December 4, 2014 at 2:23 pm
I did some Azure stuff a couple years ago so forgive me if I've forgotten something important. Last year I switched a whole database from int to guid primary...
November 25, 2014 at 9:01 am
Maybe some programmers will appreciate my attempt at a simpler version.
DECLARE @i int, @c varchar(10);
SET @i = 133;
SET @c = RIGHT('0000000000'+CAST(@i AS varchar(10)),10);
SELECT @c,
REPLICATE('M',CAST(LEFT(@c,7) AS int))
+CASE substring(@c,8,1) WHEN '1' THEN...
November 24, 2014 at 1:20 pm
I'd love to see INSERT/EXECUTE have the ability to designate which resultset to insert.
November 17, 2014 at 10:40 am
How interesting! Knowing the last datetime SELECTed is irrelevant to me but I think I might be able to use the last_user_update column as a way to know when...
November 13, 2014 at 12:28 pm
Does anyone have an answer for this? I strictly control all ANSI settings so that is not the issue for me. I have a similar problem with deleting...
November 12, 2014 at 4:03 pm
I can't really see what you're trying to do. Maybe try this:
SELECT
wo.id as 'WORKSORDER',
wo.partid as 'PART',
ro.machine as 'PROCESS',
bom.bomqty as 'RATIO',
wo.actualstartdate as 'STARTDATE',
wo.actualfinishdate as 'ENDDATE',
DATEDIFF(MINUTE,actualstartdate,actualfinishdate) / 60.0 as 'TOTAL RUNTIME',
wo.actualbookedtime...
November 4, 2014 at 8:43 am
I just learned the hard way how to "move" rows from one table to another 3x faster. I'm migrating rows from a heap table with a nonclustered PK on...
October 30, 2014 at 1:17 pm
If it is an OLTP database, I suggest you updated the current status in a transaction table and have its trigger write history rows to a statuses table. That...
October 27, 2014 at 5:27 am
Viewing 15 posts - 271 through 285 (of 424 total)