Viewing 15 posts - 376 through 390 (of 1,464 total)
I suppose that if you don't want the LOB data in the temporal table, you could move all LOB data to an extension table with the same PK as the...
December 28, 2019 at 7:17 am
The Above sample one works fine as it is. When I include it in my SP. It throws the below error.
The conversion of a nvarchar data type to a...
December 17, 2019 at 6:02 pm
In most cases, performance issues are in the actual code. If you post the ACTUAL execution plan, we might be able to see where the pain points are.
December 17, 2019 at 12:34 pm
I'm not a DBA, but there are a few alarm bells right off the bat.
December 17, 2019 at 9:37 am
Hi Jeff,
Hi took a four column data set containing waiting times measurements with 1,006,934 rows and then used the median function to calculate the median wait. The query execution...
December 16, 2019 at 6:03 am
You haven't give us the table structure as requested. Also your examples are not readily consumable sample data.
So, maybe this guess about your data will help
CREATE TABLE...
December 13, 2019 at 7:51 am
You cannot pass a #Table as a param, but what you can do is declare a #Table in proc 1 and then call proc2 from proc 1, and it will...
December 12, 2019 at 10:27 am
If you are stuck with the delimited strings, I would start bu using one of the locally produced high-speed string splitters
/****************************************************************************************************************
*** SOURCE: http://www.sqlservercentral.com/articles/SQL+Server+2012/106903/
*** ...
December 4, 2019 at 2:58 pm
You can turn the code into a function
CREATE FUNCTION dbo.itvfGetDays(@TheDate date)
RETURNS TABLE WITH SCHEMABINDING AS
RETURN SELECT TheDay = CASE DATEDIFF(dd, 0, @TheDate) %7
...
December 4, 2019 at 8:10 am
Something like this
DECLARE @TheDate date = '2019-12-17';
SELECT TheDay = CASE DATEDIFF(dd, 0, @TheDate) %7
...
December 4, 2019 at 7:49 am
Now, all those in the room that have actually used this function in production, please raise your hand! 😀
We have a lot of legacy code that was written loooong...
December 3, 2019 at 6:20 am
Darnit Jeff
Where does you mind go to come up with such perlers?
November 29, 2019 at 4:38 am
This sounds like a good use for rownumber() over (partition by … order by …)
But how do you persist the numbers already used?
If you use a SEQ object, SQL...
November 28, 2019 at 2:17 pm
You have not given us much to work with.
Here is a generic pattern that should get you started
DECLARE @StartDate date = '2019-11-02';
DECLARE @EndDate date =...
November 28, 2019 at 2:06 pm
Considering that you only have 4 digits for your number, I am assuming that this is a low volume system.
In that light, you could use a watermark table to create...
November 27, 2019 at 8:12 pm
Viewing 15 posts - 376 through 390 (of 1,464 total)