Viewing 15 posts - 481 through 495 (of 754 total)
I have seen temporary shortages of specific instance configurations in specific regions, but It seems odd that AWS couldn't supply the EC2 instances you need in the long run. Are...
April 5, 2022 at 2:03 pm
"else 0"
Try changing 0 (zero) to '0' or some other string
April 4, 2022 at 1:21 pm
I'm not aware of any TSQL functions, since it involves nslookup, telnet & SMTP EHLO commands. You can certainly do email address syntax validation in TSQL, but that doesn't guarantee...
April 1, 2022 at 2:21 pm
The error is telling you the problem -- all the columns used in a foreign key must be all the columns in a unique index on the primary table. If...
March 31, 2022 at 1:15 pm
If it's only that combination we want to exclude, I think we'd want
SELECT ...
FROM t
WHERE NOT (EMPLOYEE_ID = 123 AND WORKSITE_ID = 22)
(EMPLOYEE_ID != 123 AND WORKSITE_ID...
March 30, 2022 at 8:34 pm
Use LEFT OUTER JOIN to the lookup tables.
March 30, 2022 at 6:57 pm
In the past, table variables would have been another red flag. But SQL Server 2019 did improve row estimates for table variables, so they aren't automatically suspect.
Temp tables created in...
March 29, 2022 at 9:22 pm
With cursors, I think it's usually not about unpredictable plans so much as whether it's more efficient to do many, many small transactions vs. a few larger transactions. That said,...
March 29, 2022 at 5:51 pm
Is it critical that it completes in 12 seconds instead of 24? Are you experiencing blocking or other issues due to the longer execution time? If not, and especially if...
March 29, 2022 at 4:13 pm
Parameterize your subcategory parameter available values query to use CategoryID parameter as a filter:
SELECT SubCategoryID, CategoryDesc
FROM #sc
WHERE CategoryID = @CategoryID
You will set the Dataset parameter @CategoryID parameter...
March 28, 2022 at 7:08 pm
Here's an approach using SSIS that looks promising: https://social.msdn.microsoft.com/Forums/SECURITY/en-US/8c114455-19c3-405f-8234-c83690dc3450/ssrs-export-separate-pdfs-from-ssrs-generated-report-subscriptions?forum=sqlreportingservices
And an approach using Powershell: https://www.sqlservercentral.com/forums/topic/ssrs-export-to-separate-pdfs
Because, as far as I know, SSRS can't export pages as separate files, if you want to...
March 28, 2022 at 4:51 pm
The right answer would indeed be to have <Entity>Note tables. I wouldn't make those tables just an association table to Note table w/ a NoteID -- I would actually put...
March 25, 2022 at 9:26 pm
Viewing 15 posts - 481 through 495 (of 754 total)