Viewing 15 posts - 136 through 150 (of 430 total)
I would create a second schedule that runs at 6:15 on the first and assign it to all seven jobs. The jobs will now have two active schedules.
Create another job...
January 6, 2023 at 4:19 am
Do you have two different schedules? What are those schedules like? Does it run multiple times per day or does it run once, but at a different time if it's...
January 4, 2023 at 9:06 pm
I think you need the expressions ellipsis in the For Each Loop Editor under the Enumerator.
Choose the FileSpec property and set it to a variable or expression.
WITH exclude AS
( SELECT airport_city
FROM dbo.Airports
WHERE airport_city IN ('New York City','Los Angeles')
)
SELECT *
FROM dbo.Airports AS a
WHERE NOT...
December 5, 2022 at 7:48 pm
There are airports with NULL city names which are not returned by the original query.
For this example I would probably use ISNULL(airport_city, '') not in
but generally I avoid NOT IN...
December 5, 2022 at 7:02 pm
The table needs the same CCI. When I need to do large updates to columnstores I switch one partition into a table with the same clustered columnstore, then create a...
November 29, 2022 at 6:29 pm
Edit. cross apply may be more efficient.
Do you want to join to a single row in the second table? the one with the latest dt_mev? If so, you can add...
November 21, 2022 at 10:04 pm
If you try running the alter table command, check whether it is being blocked. I think alter the table requires a SCH-M lock which may not be possible if the...
November 18, 2022 at 4:58 pm
I think the trigger fails on error despite the presence of the try catch block. I believe that try catch causes transactions to enter an uncommittable state so the entire...
November 11, 2022 at 3:41 pm
I don't see the cursor code. Maybe paste it into a code block.
What is there in the business logic that requires a cursor? Does the cursor load the table that...
November 10, 2022 at 9:50 pm
It looks like you are attempting to create the new schema after it has already been created.
I modified the trigger to just create the @SchemaName schema and it failed because...
November 10, 2022 at 4:29 pm
Can you simply divide the month number of the date by two? Dividing an integer by an integer causes rounding, so if the month is 5, the result is 2,...
November 9, 2022 at 5:12 pm
I tried and replicated the issue. I read somewhere that using numeric instead of decimal solves the problem, but that made no difference for me. The only thing I can...
November 9, 2022 at 4:38 pm
Do you have 15-20 3TB databases on a test server and one of the databases is production?
How much storage do you have? It sounds like you have 30-60 TB in...
November 7, 2022 at 7:58 pm
This is the same answer as above, but someone has written line by line instructions.
November 7, 2022 at 7:55 pm
Viewing 15 posts - 136 through 150 (of 430 total)