Viewing 15 posts - 61 through 75 (of 2,645 total)
Setup some test data
CREATE TABLE TestCardData (
s_Result NVARCHAR(255),
s_credit_card_type NVARCHAR(50),
s_credit_tran_type NVARCHAR(50),
c_amount DECIMAL(18,...
September 16, 2024 at 11:06 am
.
September 11, 2024 at 1:39 pm
You could use NULLIF
or SET ARITHABORT OFF; SET ANSI_WARNINGS OFF;
SET ARITHABORT OFF;
SET ANSI_WARNINGS OFF;
DECLARE @x as int = 1,
...
September 11, 2024 at 1:38 pm
I used to be a front-end Developer... that's why I don't rebuild indexes all the time ... The page splits that came after the rebuilds would slow down the...
September 11, 2024 at 10:24 am
I've written the script in the link above query and am using it. I've found that for a few of the of the rows it occasionally reports negative statistics. i.e....
August 28, 2024 at 7:03 pm
It's difficult to say without seeing the actual query.
You could insert the data into a temporary table, create helpful indexes on the temporary table, then query the temporary table. So...
August 28, 2024 at 2:25 pm
To date, I'm the least impressed with BING AutoPilot and Claude 3.5 Sonnet. I'm especially disappointed in Claude 3.5 Sonnet because it doesn't seem to provide references like the...
August 26, 2024 at 7:35 pm
SQL Server uses memory to cache data, if you don't set a maximum it is likely to use all the memory on the machine, including memory required by the operating...
August 23, 2024 at 8:42 pm
We are adding Java BigInteger support and hence we need underlying database to support this. Oracle supports this and has no issue. I assuming SQL Server's BIGINT is equivalent...
August 19, 2024 at 7:20 pm
It is preferable to use SCOPE_IDENTITY() instead of @@IDENTITY
SCOPE_IDENTITY() returns the last identity value generated within the same scope (i.e. within the stored procedure)
CREATE procedure GetCounter @tableName...
August 19, 2024 at 2:38 pm
deleted duplicate
July 23, 2024 at 6:28 pm
Using UPDLOCK and HOLDLOCK
This approach allows you to acquire the necessary locks to ensure serialization without using the SERIALIZABLE isolation level.
CREATE PROCEDURE dbo.sp_GenerateNextNumber (
@SequenceKey nvarchar(10),
@ReferenceNumber nvarchar(25) =...
July 23, 2024 at 6:27 pm
Install this TVF.
Then this SQL will do the job
select x.value value1, x.value+1000001 value2
from dbo.GENERATE_SERIES(-999999999,+999999999,1) x
;
The first 3 rows out of...
July 18, 2024 at 10:30 am
Install this TVF.
Then this SQL will do the job
select x.value value1, x.value+1000001 value2
from dbo.GENERATE_SERIES(-999999999,+999999999,1) x
;
July 13, 2024 at 12:35 am
Here you are courtesy of ChatGPT
Heh... Ok... since you brought it up, what prompt(s) did you use?
The key here is, again, the folks answering the questions shouldn't have...
July 12, 2024 at 7:41 pm
Viewing 15 posts - 61 through 75 (of 2,645 total)