Viewing 15 posts - 61 through 75 (of 1,491 total)
1. If RT.coloumnC etc are strings, you could try something like:
RT.coloumnC='something' COLLATE <RT.coloumnC collation>
2. If #lt is not too big, you could try creating a remote SP and passing the...
January 6, 2025 at 5:46 pm
¿Qué?
Just send an html email with the table in the body text.
December 31, 2024 at 4:19 pm
Why are you trying to install SQL Server 2005 when the lowest supported version is SQL Server 2016?
What version of Windows are you trying to install SQL 2005 on? I...
December 27, 2024 at 2:30 pm
It is the SQL Server VSS Writer service which writes details of VSS backups to MSDB so that is where to start trouble shooting. Check the service account, check the...
December 26, 2024 at 8:32 pm
The SQL Server VSS Writer service is probably disabled. It might have been disabled if it was interfering with SQL Server backups.
Before relying on someting like Veem, make sure you...
December 26, 2024 at 7:25 pm
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
Viewing 15 posts - 61 through 75 (of 1,491 total)