Viewing 15 posts - 1,561 through 1,575 (of 2,645 total)
I think my initial confusion was the OP said "log file should automatically truncate" It's not the log file that truncates but the transaction log that truncates which is just...
May 17, 2019 at 7:24 pm
Yes, I think I read the question it too quickly and subconsciously thought the OP meant shrink. I can see now truncate is an official MS term for it but...
May 17, 2019 at 6:21 pm
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
Viewing 15 posts - 1,561 through 1,575 (of 2,645 total)