Viewing 15 posts - 376 through 390 (of 2,610 total)
Can't remember where I got this script from but it will generate insert statements for all the rows in a table:
To generate inserts from a table just call it something...
May 5, 2023 at 10:35 am
CREATE TABLE MyTable (
ID INT IDENTITY(1,1) PRIMARY KEY,
Value INT,
DateTimeColumn DATETIME
);
INSERT INTO MyTable (Value, DateTimeColumn)
VALUES
...
April 25, 2023 at 1:47 am
DECLARE @StartDate datetime = '20221001';
DECLARE @EndDate datetime = '20221031';
SELECT *
FROM #t1
WHERE PrgFld LIKE 'BAS%'
AND PrgVal BETWEEN CONVERT(varchar,@StartDate,112) AND CONVERT(varchar,@EndDate,112);
April 15, 2023 at 12:05 am
Try inserting the rows that need to be deleted into a temporary table then another step to delete the rows:
SELECT DEM.NUM_DEM
INTO #RESULTS_TO_DELETE
FROM...
April 12, 2023 at 2:37 pm
vsamantha35 wrote:Can anyone explain what this mean?
ChatGPT is really good at explaining things like that. Just paste the error message into it.
This isn't...
April 8, 2023 at 6:26 pm
I think the first thing to do is to try to optimise the query to make it run faster as frederico suggested.
April 8, 2023 at 6:25 pm
Can anyone explain what this mean?
ChatGPT is really good at explaining things like that. Just paste the error message into it.
April 8, 2023 at 6:15 pm
If the index doesn't already exist you need to remove DROP_EXISTING = ON
from the index creation or set it to OFF
.
April 8, 2023 at 3:41 pm
That would happen if you did not have ord.Amount wrapped in the aggregate SUM function.
It should work w/ the query listed.
It can't... there's no ORDER_ID column in the...
April 4, 2023 at 7:17 pm
I would guess one or maybe both of these indexes would fix your problem:
CREATE INDEX IX_c_b_party_comm_1
ON dbo.c_b_party_comm(ROWID_OBJECT, COMM_TYP_CD)
INCLUDE (COMM_TYP_CD,...
April 4, 2023 at 11:11 am
Okay I am not understanding your comment "I have a feeling it is taking it literally as a string" -- how else should it take it? I mean you...
April 3, 2023 at 5:31 pm
So it it the case that there is an AD account that you can remotely connect but the SQL login cannot remotely connect?
April 3, 2023 at 1:54 pm
and yet: "The SQL login works when I remote to the SQL host and log in locally"
So probably not locked out.
If it works when they remote to the host...
April 3, 2023 at 12:38 pm
Viewing 15 posts - 376 through 390 (of 2,610 total)