Viewing 15 posts - 601 through 615 (of 2,648 total)
if copying from SSMS you can also go to tools->options->Query Results->SQL Server->Results to Grid and tick option "Retail CR/LF on copy or save"
February 1, 2023 at 11:06 pm
4GB is way way too low for anything that includes SQL Server and other software running on same pc.
on a new laptop I would not have chosen anything with less...
February 1, 2023 at 3:28 pm
all your sys.... tables are specific to the database you run this code on.
do do what you need you either use full dynamic sql (where you add "use [@DatabaseName]" before...
February 1, 2023 at 11:37 am
based on what the OP said above it is "rate of return" - can be done in SQL but not quite as presented above on the example.
https://towardsdatascience.com/calculating-internal-rate-of-return-irr-in-bigquery-75e6703e8ec3 or https://social.msdn.microsoft.com/Forums/sqlserver/en-US/868f5c56-bb32-4e8b-975b-ba72710c2215/using-sql-to-calculate-the-irr?forum=transactsql
January 29, 2023 at 6:23 pm
can you give us the original unchanged Excel formula - if it is made up of multiple steps ask your analyst to aggregate it into one, and then give the...
January 28, 2023 at 9:04 am
what exactly are you trying to calculate? would be good if you could supply the original required formula as well as the english instructions of what it is its intention.
the...
January 27, 2023 at 11:04 pm
sorry too busy at work.
Regarding plan - can you get an ACTUAL explain plan? the one supplied is just an estimated one which does not necessarily reflect the actual execution.
but...
January 25, 2023 at 2:03 pm
this looks like a CRM style app - likely doing queries on single entities each time, likely using views on top of views to implement things like row security based...
January 20, 2023 at 7:49 pm
that is just a normal where clause you would add as in any other case.
where p.x <> 0 or p.y <> 0 -- this processes the row if either has...
January 20, 2023 at 3:21 pm
simple outer apply is the better option I think
select p.CustNo
, amt.ExpenseType
, amt.Amount
from #p p
outer apply (select 1...
January 20, 2023 at 12:13 am
it keeps surprising me that people still build stuff that is supposed to run on a server, were Excel/Office is neither licensed neither supported, and expect everything to work fine.
or...
January 17, 2023 at 10:26 pm
any of the SQL Clients allows you to setup a command execution timeout - that is for the full execution of either a single query or the whole of a...
January 17, 2023 at 8:03 pm
as per manuals you can upgrade to either - 2022 has significant functionality which would make it the desired target for me.
January 13, 2023 at 10:50 am
don't you you can find it elsewhere if it does not show on those dm views.
another thing you will not catch with those is tables used within dynamic sql. this...
January 12, 2023 at 9:53 pm
for anything being kicked off by the users against the server the user will require access to the server and to the database - access can be restricted to exactly...
January 11, 2023 at 12:22 pm
Viewing 15 posts - 601 through 615 (of 2,648 total)