Reputation
2,141
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
7 29
Impact
~112k people reached

Jan
26
comment Shrinking a SQL Server Transaction Log
AFAIK, there is not point to being in full recovery mode if you are not doing log backups. If you are not planning to do log backups then just leave it in simple mode. Your full backups will still be restorable either way, you just won;t be able to do a recovery/roll-forward, but you cannot do that anyway without log backups.
Jan
25
comment Shrinking a SQL Server Transaction Log
The usual reason for out-of-control log files like this are 1) failure to take regular full backups, 2) failure to take regular transaction log backups, or 3) some setting in your full or log backups (such as copy-only) that is preventing the normal backup marks from being set.
Jan
25
comment Shrinking a SQL Server Transaction Log
As soon as you switch it to Simple mode, you can no longer do transaction log recovery past that point, until your next full backup. Even if you switch it back to Full Recovery Mode, transaction log backup/restore-recover won't start working again until you take another full backup. So be sure to take a full backup immediately after you switch it back to full recovery.
Jan
6
comment SQL Query is getting progressively slower
This sounds very much like a network problem. Specifically, I would look for things like "data shaping" and adaptive network scheduling parameters, that can perform pathologically for database connections.
Jan
6
comment Cities and States (a few data): single table or splitted?
It depends entirely on what you do with them. But in any event, you should not be doing DB design worrying about performance at this step. You design the DB first, according to the data relations. Do this right and the performance will take care of itself 90% of the time. Only later when you know if you have a performance problem, should you start worrying about it.
Dec
23
comment Why doesn't “As SYSDBA” work from SQL Developer?
@BalazsPapp So I have created a password file with ORAPWD FILE=../database/PWD<dbname>.ora ENTRIES=40 PASSWORD=<pasword> and that has fixed the problem, at least wrt explicit sys/<pwd> as sysdba logon with SQL Developer. If you want to post that as an answer, I will accept it.
Dec
23
comment Why doesn't “As SYSDBA” work from SQL Developer?
@BalazsPapp OK, thanks. I've been out sick the last two days, but I am back now, and I have some of this information.
Dec
21
comment Why doesn't “As SYSDBA” work from SQL Developer?
Oh, and how do I find that database parameter?
Dec
21
comment Why doesn't “As SYSDBA” work from SQL Developer?
Yeah, one of the problems here is that this server has 3 Oracle Homes, two of them Oracle 11G (i have no idea why), and I am not sure which one is being used for this database (i wouldn't mind help figuring out directions to figure that out either). In any event i can't just post the config files for security reasons, I will have to clean them first, and of course that will take some time ...
Nov
21
comment How can I get individual rowcounts like SSMS?
Agreed. I have been in the hospital the past week (severe vertigo) and will not get to post the question myself anytime soon, so please go ahead.
Nov
9
comment How can I get individual rowcounts like SSMS?
Maybe SSMS is reading the TDS directly?
Nov
9
comment How can I get individual rowcounts like SSMS?
The mystery to me is how SSMS sorts it out correctly.
Nov
9
comment DDL trigger permission Error
What does "Now M trying to create a table through user2" mean? Be specific and give examples.
Nov
9
comment How to automatically shrink a SQL Server transaction log only if it exceeds a certain limit (e.g. 20 GB)
When you shrink or truncate your Log file, you are breaking your Log recovery chain. This means that any Log backups taken after that point are no good until your next FULL backup. I strongly urge you to find another solution to your problem.
Nov
9
comment How can I get individual rowcounts like SSMS?
I have tried this and it does work for me. Oddly, the StatementCompletions and the InfoMessages from PRINT statements in the stored procedures don't seem to be synchronized wrt each other (I get a bunch of StatementCompletions, then a bunch of PRINT statement outputs, though they are supposed to be interleaved) But I guess that's an SSMS trick for another day...
Oct
27
comment How can I get individual rowcounts like SSMS?
If you had read my question, you would have seen that I am already doing that. It is not in there.
Oct
27
comment How can I get individual rowcounts like SSMS?
I cannot modify these procedures. I can modify the client code, including using something other than ExecuteNonQuery.
Sep
18
comment Help required with query (join) optimization
The function is 90% likely to be the problem here. You should convert it to an inline table-valued function and also declare it to only receive a specific datatype for its parameter.
Sep
18
comment Help required with query (join) optimization
What datatype are you passing into that function? DATETIME?
Sep
11
comment SQL Server - comparing PageSplits/sec with Batch Requests/Sec
OK, so Avg BatchRequests/Sec is 217.431 and avg PageSplits/sec is 182.274. That would make PageSplits about 85% of BatchRequests, so according to the article, that could be too high. (it really depends on the situation though)