Viewing 15 posts - 6,076 through 6,090 (of 7,608 total)
I don't think you actually need to go thru all those gyrations; instead, try this:
;WITH allstores(storeid, doc, article) AS(
SELECT 'ALL', '0010', '001' UNION ALL
...
May 13, 2014 at 4:43 pm
Looks reasonable to me. I don't see a "better" way.
May 13, 2014 at 4:35 pm
SELECT
ProjectID,
Project_Name AS [Project_Name|UpdateDescription],
CONVERT(varchar(10), Start_date, 120) AS Start_date,
ProjectDescription
FROM #tbl_projects
UNION ALL
SELECT
...
May 13, 2014 at 4:29 pm
Since it's only three values, maybe this:
...
,isnull(cast(CASE ca1.COMM_max WHEN 1 THEN COMM1 WHEN 2 THEN COMM2 ELSE COMM3 END*QTY*1.8 as numeric(6,2)),0) as RATE
FROM dbo.yourtablename
CROSS APPLY (
SELECT...
May 13, 2014 at 12:54 pm
MysteryJimbo (5/13/2014)
ScottPletcher (5/13/2014)
May 13, 2014 at 8:25 am
You have broad control of the frequency of cdc scan processing, and can even customize it if you want. I wouldn't ever want to risk the never-ending maintenance of...
May 13, 2014 at 8:13 am
You can't use a standard CHECK constraint, as all values must be available on a single row for that.
You could easily use an AFTER DELETE, INSERT[, UPDATE ] trigger if...
May 12, 2014 at 11:16 am
CDC should perform far better than hand-written triggers on all those tables.
Make sure you have sufficient pre-allocated log space to hold the changes until CDC can process them all.
May 12, 2014 at 11:10 am
It's testing to make sure that @Num contains only "0"-"9"s and/or "-"s.
May 12, 2014 at 11:08 am
Jeff Moden (5/12/2014)
ScottPletcher (5/9/2014)
Jeff Moden (5/7/2014)
On the SORT IN TEMPDB thing... It'll only affect TEMPDB by 10 or 20% of what the largest index is.
I don't understand the rationale...
May 12, 2014 at 7:29 am
Jeff Moden (5/7/2014)
On the SORT IN TEMPDB thing... It'll only affect TEMPDB by 10 or 20% of what the largest index is.
I don't understand the rationale for that statement....
May 9, 2014 at 2:00 pm
Sean Lange (5/9/2014)
scotsditch (5/8/2014)
I want to create a computed Column in a...
May 9, 2014 at 12:46 pm
You can use a GLOBAL cursor and use dynamic SQL just to declare the cursor. You can process it in static code, including deallocating the cursor at the end.
May 8, 2014 at 4:04 pm
T-SQL and SQL certainly are different. I, therefore, would never assume someone knew TSQL just because they wrote SQL on a resume.
TSQL to me would mean the person understood...
May 8, 2014 at 4:00 pm
By default, yes, they will be stored in the same page.
Someone can, however, override SQL's default behavior, table by table, via "EXEC sp_tableoption" and force SQL to store all LOBs...
May 7, 2014 at 11:34 am
Viewing 15 posts - 6,076 through 6,090 (of 7,608 total)