Viewing 15 posts - 1 through 15 (of 1,427 total)
You could generate the code as dynamic SQL to cope with different numbers but you would need to check carefully how efficient a value of 100 was.
Whatever you are trying...
December 20, 2024 at 9:18 pm
1. I hope you are not using floats for prices!
2. Do you really use reserved names for columns?
3. Are you really writing new code with the depreciated order by column...
December 20, 2024 at 12:58 pm
This smells like a permissions issue for the SP. I am not anywhere I can test this but I suspect you will need to sign the SP and then have...
December 19, 2024 at 8:31 pm
Or combine with the unique ordering column:
SELECT UNIT, PURCHASE_DATE, METRIC1
,CAST( SUBSTRING( MAX (
CONVERT(char(8), PURCHASE_DATE, 112) + CAST(Metric1 AS varchar(20))
)
OVER (
PARTITION BY Unit
ORDER BY PURCHASE_DATE
ROWS BETWEEN UNBOUNDED...
December 16, 2024 at 4:52 pm
My limited experience with AI at the moment, with regards to code, is that it is not very good. It can, however, provide a good starting point if you have...
December 14, 2024 at 10:46 am
For large volumes of data, I find BCP to binary files works well enough for me
You could try:
1. BCP out to binary files using the partition conditions.
2. BCP in again...
December 13, 2024 at 10:18 am
I'm getting frequent blockage.
What makes you think this?
Will using SET XACT_ABORT ON can help?
Nothing to do with locking.
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
Will not affect UPDATE locks...
December 12, 2024 at 8:26 am
You should know how to use date functions by now!
1. DATEADD(minute, -15, CURRENT_TIMESTAMP)
2. ROW_NUMBER() OVER (PARTITION BY DATEDIFF(minute, '2000', datevalue), floatvalue ORDER BY datevalue) AS rn
December 10, 2024 at 5:20 pm
I do not expect much of it to reach on-premises SQL Server anytime soon as it would not surprise me if Microsoft announced it was moving to five year...
November 24, 2024 at 7:23 pm
I suspect a lot of AI for analytics especially for security and BI on Azure.
I do not expect much of it to reach on-premises SQL Server anytime soon as it...
November 6, 2024 at 11:50 am
Typically, the query takes around 15 minutes to execute
Why?
What reseach have you done?
What methodology did you use?
October 23, 2024 at 10:36 am
October 22, 2024 at 9:29 pm
We have a Production/Live version with up-to-date data and a Test version with older data where we have added new columns to tables and created new tables.
All this should...
October 15, 2024 at 8:16 pm
Are you using Windows authentication to connect to the database?
If so you might have a Kerberos double hop problem.
If you do, try checking the SPNs with the Kerberos Configuration...
October 11, 2024 at 3:36 pm
Viewing 15 posts - 1 through 15 (of 1,427 total)