Viewing 15 posts - 1,441 through 1,455 (of 3,500 total)
FFS, how about some real tables? Since you didn't provide consumable data, here's my best guess.
SELECT CM.cust_no
, loc_No
FROM Cust_Master CM
WHERE...
August 30, 2017 at 7:32 am
With a tally table, this is pretty easy:
DECLARE @max-2 INT;
SELECT @max-2 = MAX(Quantity) FROM #Test;
SELECT ID
, ProductCode
, Quantity
FROM #Test te
August 29, 2017 at 5:22 pm
DelimitedSplit8K would work, if you want that returned as a table (so each day of the week would be a record)...
August 23, 2017 at 12:40 pm
That's what I was gonna say... If I had the option, I'd do this in SSRS.. .Could do this in about 20 seconds.
August 23, 2017 at 8:13 am
Are you doing your analysis is Excel or PowerBI? (You can use DAX for that... I'd check on Ferrari & Russo's website(s) for answers on DAX... I know there's one...
August 21, 2017 at 6:38 pm
Oh fun... I think you have to use Availability Groups... Mirroring is deprecated.
Here's an introductory article to it.
August 19, 2017 at 7:02 pm
Oh, like mirroring. (That's what mirroring does - executes the transaction log against more than one database .. where the second is a copy of the first.). The second copy...
August 19, 2017 at 1:53 pm
Triggers are written against tables, not stored procedures.
What's your ultimate goal? When DB1 is updated, do something in the other database? (add records, update?)
You could do both in...
August 18, 2017 at 6:38 pm
I just installed that add-in as if it were a 2016 Add-In. Seems to have worked. I expected it to faceplant, but it didn't. =)
August 18, 2017 at 1:45 pm
This depends on whether each Person has his own Goal value or everyone has one combined Goal value. If they all have a single goal, say "1000 units", you could...
August 18, 2017 at 12:49 pm
Maybe you're leaving something out, because your question doesn't make sense. 100% of WHAT? Do they all contribute to some grand total or something? Adding percentages makes sense if it's...
August 18, 2017 at 10:26 am
CREATE TABLE & INSERT scripts?
Feel free to explain more. I'm not sure I know how to determine what is approved.
Please read this and post again: http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 15, 2017 at 7:02 pm
You need Jeff Moden's DelimitedSplit8K function for this...
DECLARE @MyString VARCHAR(200) = 'Department =''test'' AND Branch = ''Yankee'' AND city = ''Brooklyn'' AND State =...
August 15, 2017 at 1:04 pm
Neither. fn_CalculateNetPay is a function, and that's how you join a table to a table-valued function - by using APPLY
August 13, 2017 at 10:44 pm
sys.dm_exec_procedure_stats
does that.
August 3, 2017 at 4:03 pm
Viewing 15 posts - 1,441 through 1,455 (of 3,500 total)