Viewing 15 posts - 1,561 through 1,575 (of 2,643 total)
Log files don't automatically truncate.
Might just be a difference in lingo here but they DO automatically "truncate". They just don't automatically shrink. Is that what...
May 17, 2019 at 5:40 pm
Log files don't automatically truncate.
The reason you can't shrink it might be because there is a stuck transaction, maybe someone has some code with a begin transaction but no commit...
May 17, 2019 at 1:29 pm
You have SUM in the wrong place.
Also, should not be ELSE '0' but ELSE 0 or ELSE NULL
Also, only need to group by CT.LINTCUSTOMERNUM
SELECT CT.LINTCUSTOMERNUM AS CUSTID,
...
May 17, 2019 at 1:23 pm
I decided to try to push some buttons on this, and sent an email to the relevant European commissioner, saying The latest "upgrade" of the Microsoft Winows 10 operating...
May 14, 2019 at 9:51 pm
Thank you I will try this.
You'll also need to identify how many foreign keys there are. We had a table where it took over 5 minutes to...
May 12, 2019 at 7:40 pm
Before deleting I create a view vwToDeleteSelect that selects 1000 rows at a time -- this is to delete in batches delete vw from vwToDeleteSelect vw inner join #tempTable1...
May 10, 2019 at 8:02 pm
Here is an alternative way to get the results. I think it should perform quite well if you have appropriate indexes on the tables.
Do you have a "Persons" table? If...
May 10, 2019 at 8:47 am
Not sure if this is what you want. If you supply the actual code it might be easier to work out what it's doing.
CREATE VIEW xx AS
...
May 10, 2019 at 8:18 am
It might be easier for us if you describe what the script is doing.
What is the purpose of that part of the script? Is it to update the temporary table...
May 10, 2019 at 8:02 am
Another method which could be used if an intermediate table is required is to create a table valued function, with table variables instead of temporary tables, these behave a lot...
May 9, 2019 at 8:57 am
The normal way to do with is by performing an UPDATE followed by an INSERT if no rows were updated, this is sometimes referred to as an upsert:
May 8, 2019 at 7:25 pm
I've got no idea why the stored procedure would be slower when called from SSIS instead of SSMS. But when I get a SQL statement like that I try to...
May 8, 2019 at 7:01 pm
SELECT *
FROM AMilestone
WHERE AMilestone.SCHOOLYEAR = (SELECT MAX(ASemester.SCHOOLYEAR) FROM ASemester);
May 8, 2019 at 5:44 pm
The code from Google is actually quite a lot slower than the OP's original code.
If you want to keep with your original code there are a few things you can...
May 8, 2019 at 4:53 pm
Maybe you could provide the code you have written so we could see why it's taking so long and see if there are any improvements that could be made?
I think...
May 8, 2019 at 3:10 pm
Viewing 15 posts - 1,561 through 1,575 (of 2,643 total)