Viewing 15 posts - 1 through 15 (of 540 total)
Thank you all for responding and taking time to help.
Many thanks,
Phil.
__PRESENT
August 1, 2024 at 5:56 am
I did try:
SUBSTRING(Name, CHARINDEX('(', Name) +1, CHARINDEX(')', Name) - CHARINDEX('(', Name) -1)
This returned:
Msg 537, Level 16, State 3, Line 1
Invalid length parameter passed to the LEFT or SUBSTRING function.
Thanks,
Phil.
<object id="__symantecMPKIClientMessenger"...
July 31, 2024 at 3:13 pm
Hi. I am unclear how to update my query to use CROSS APPLY. My query below now returns the value with the ()
(abc.mydomain.com)
SELECT
UserGroup.[Name]As GroupName,
UserGroup.[Description]As GroupDescription,
SUBSTRING(Name,CHARINDEX('(',Name) +0,CHARINDEX(')',Name) -...
July 31, 2024 at 3:10 pm
Thank you very much. That is perfect. I thank you both for responding.
Phil.
July 30, 2024 at 10:26 am
Hi. After upgrade users were removed from groups. I would like to list only the groups names + users that are no longer listed in the Production database but are...
July 30, 2024 at 9:59 am
Hi Johan Bijnens. Based on my response to Phil EXCEPT does not return the results I am looking for.
<object id="__symantecMPKIClientMessenger" style="display: none;" data-supports-flavor-configuration="true" data-extension-version="1.2.0.158"></object>__PRESENT
July 30, 2024 at 8:41 am
Hi. Thanks for the responses. By compare I mean there are results returned in RestoredDatabase that are not in ProductionDatabase. I want the query to output values from RestoredDatabase that...
July 30, 2024 at 8:37 am
Thanks, I am a little rusty!
Phil.
February 1, 2022 at 6:48 pm
I amended to smallint.
Phil.
February 1, 2022 at 11:38 am
Hi. Thanks for the response.
"On a side note, you declare @Size as bigint."
I am showing my lack of understanding 🙂
What would you suggest?
HAVING SUM([FileSize]) /1048576.0 > @Size - This returns...
February 1, 2022 at 11:32 am
Doh. it should have been:
HAVING SUM([FileSize]) /1048576.0 > @Size
So I think I am all set.
Feel free to offer a better approach.
Phil.
February 1, 2022 at 10:10 am
Thank you all for your expert input. As always greatly appreciated.
Phil.
January 28, 2022 at 9:48 am
Thanks very much for your responses. I will amend what i have.
Point duly noted regards using functions in WHERE clause.
Many Thanks,
Phil.
January 27, 2022 at 8:24 pm
Hi Jeff. I changed my approach and formatted within the SSRS report rather than the code.
SQL query now SUM([FileSize]) AS SumOfFileSize
Many Thanks,
Phil.
January 27, 2022 at 4:43 pm
--This did the trick
ROUND(SUM(CAST([FileSize] AS BIGINT)/1048576.0),2)) AS [FileSizeMB],
ROUND(SUM(CAST([FileSize] AS BIGINT)/1073741824.0),2) AS [FileSizeGB]
Thanks,
Phil.
January 25, 2022 at 3:18 pm
Viewing 15 posts - 1 through 15 (of 540 total)