Viewing 15 posts - 481 through 495 (of 748 total)
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
Why do you need a separate calendar for each student?
Couldn't you just make Student_id a parameter for the report & query?
March 25, 2022 at 8:44 pm
Is SETPARM your own stored procedure? I have never heard of "SETPARM" in TSQL.
It's possible manually, of course.
You could probably script out all stored procedures as ALTER scripts, & then...
March 25, 2022 at 3:21 pm
When you say "PDF is within a SQL Database" do you mean as a blob (e.g., varbinary column)? You can't hyperlink to a location that doesn't exist. Or are you...
March 21, 2022 at 3:27 pm
Your company appears be addicted to out-of-support SQL versions. SQL Server 2014 reached its end of life on July 9, 2019 and its extended support will end on July 9,2024.
The...
March 18, 2022 at 3:59 pm
However, when running on a big dataset I start getting an error "Conversion failed when converting date and/or time from character string."
Unfortunately it means what it sounds like -- there...
March 18, 2022 at 3:48 pm
Looks like it: https://docs.microsoft.com/en-us/sql/relational-databases/track-changes/about-change-data-capture-sql-server?view=sql-server-ver15
It appears to leverage some of the same processes... but this may refer to the publisher rather than the subscriber:
The logic for change data capture process is...
March 17, 2022 at 6:11 pm
Viewing 15 posts - 481 through 495 (of 748 total)