Viewing 15 posts - 2,041 through 2,055 (of 2,905 total)
SELECT CAST(ROUND(COLUMN_A*100.0/(CASE WHEN COLUMN_B = 0 THEN -1 ELSE COLUMN_B END),2) as decimal(5,2)) as "Percentage"
You lost the ROUND() function's length parameter in that version
Good catch. That's what I get...
April 14, 2020 at 9:24 pm
So, if I understand correctly, if it is going to divide by 0, then you want it to return 0 instead. Then none of the solutions I provided will help...
April 14, 2020 at 9:17 pm
My expectation is that COLUMN_B has 0 values. So you need to exclude those or do something with them such as setting them to 1. how you handle it depends...
April 14, 2020 at 7:52 pm
Quick google brought me to this page:
https://docs.microsoft.com/en-us/archive/blogs/sqltips/ordering-guarantees-in-sql-server
which states in point number 4:
INSERT queries that use SELECT with ORDER BY to populate rows guarantees how identity values are computed but not...
April 14, 2020 at 2:45 pm
Have you tried creating an alias on server B?
Where I work, we have the SQL aliases pushed out through the logon script (VBScript) to each end user machine. Putting an...
April 9, 2020 at 5:37 pm
One thing to watch out for is with your linked server, are you passing your credentials along OR using a hard-coded username and password?
If it is hard coded, that account...
April 9, 2020 at 5:34 pm
If I am looking at that execution plan correctly, the left-most operation is a cursor. Cursors will impact performance as they are row based operations. If you can remove that...
April 8, 2020 at 7:31 pm
that is, as far as I can see, an older paper.
Visual Studio Subscriptions (formerly MSDN subscriptions) - latest licensing whitepaper here.
from it
Different Licensed Users Can Run the Same...
April 8, 2020 at 6:59 pm
Quick thing about MSDN licensing - End users who are doing acceptance TESTING do not require a license. To quote Microsoft's licensing terms:
Acceptance Testing and Feedback. Your end users may...
April 8, 2020 at 4:57 pm
This would probably be written better as an "IF" statement rather than a CASE... something along the lines of:
IF EXISTS (SELECT 1 FROM [ITRM_ITBF].[Dflt].[MANUAL_LSV_PERMISSIONS] WHERE USERNAME =...
April 8, 2020 at 4:45 pm
Blanks are a bit harder to deal with. One way would be to add a UNION onto the query... something like:
UNION
SELECT NULL
WHERE NOT EXISTS(SELECT 1
FROM <table>
WHERE SSN...
April 8, 2020 at 3:36 pm
My preference is to avoid maintenance plans wherever possible. I have run into issues with them and when a problem comes up, it can be tricky to reproduce and debug. ...
April 8, 2020 at 3:27 pm
I've not used developer edition, but we also run SQL Server Standard at my workplace. I am just offering a different option: Visual Studio subscription licensing for your test/dev environment. Everyone...
April 8, 2020 at 3:07 pm
Hello JSB_89,
Have you checked the logs? That would be my first step. Check PBI logs and IIS logs and windows event logs. One of them should have something useful in...
April 7, 2020 at 8:52 pm
Your max memory is set way too high. I would drop that down to a more reasonable value.
As Frederico_fonseca said, you should have at LEAST 1 GB free for the...
April 6, 2020 at 2:37 pm
Viewing 15 posts - 2,041 through 2,055 (of 2,905 total)