Viewing 15 posts - 47,161 through 47,175 (of 49,552 total)
I'm so used to the output of 1204 that it's not a challenge to read anymore. Could be that this is not a good thing.
Is the output of 1222...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 17, 2008 at 1:39 pm
Do you have a previous database backup?
Run the following and see what it says.
DBCC CHECKDB ('MyDB') with no_infomsgs
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 17, 2008 at 1:36 pm
Ack. That should be the very last resort when all else fails, not the first thing to try.
The system tables should not be updated. Doing so can have nasty consequences.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 17, 2008 at 5:44 am
It's a fairly big topic. Books online has a good coverage. Have a look through that, then if you have specific questions, post them here.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 17, 2008 at 1:02 am
Jeff Moden (3/17/2008)
There's a whole lot of minor differences but the big difference is, table variables do not and cannot be made to use statistics.
Yup. And that, along with the...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 17, 2008 at 12:28 am
If yu're using SQL 2005, you should avoid extended stored procs. They are deprecated. use CLR instead.
What does your extended proc do?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 17, 2008 at 12:26 am
Is that account in the local administrators group?
Are you sure something else isn't connecting in? SQL Agent, MOM, anything like that?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 17, 2008 at 12:08 am
Sure it's necessary. CheckDB checks to see if there's any corruption of any form in the database. Invalid checksums, bad page linkage, out of range column values, etc
I would suggest...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 16, 2008 at 2:01 pm
You can also use profiler to detect deadlocks, but it requires running a constant trsace, which I prefer not doing.
Fixing deadlocks is a pretty wide topic. Generally bad code is...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 16, 2008 at 1:59 pm
Yup, and it does work. Had to do that a couple months ago after someone removed builtin\admins without adding the DBA's windows group first. :hehe:
Shut down the SQL service (and...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 16, 2008 at 7:06 am
Probably compatability mode. What do the following queries return?
SELECT @@version
exec sp_dbcmptlevel < Name of the database you're in >
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 16, 2008 at 6:58 am
If you expand out the server in enterprise manager, can you see the system databases? Can you see the user databases? If you can see the user database, is there...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 16, 2008 at 6:51 am
You can use SQL Profiler. Trace the event T-SQL Batch completed and take the start time, end time and duration columns. Duration is in microseconds.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 16, 2008 at 6:47 am
Are you trying to find deadlocks or blocking? They're fairly different things.
To find blocking, you can use the sys.dm_exec_requests or sys.dm_os_waiting_tasks DMVs. Both have a column that will show if...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 16, 2008 at 6:44 am
Please don't type in full caps. It's the online equivalent of shouting.
Suspect in system tray? Not quite sure I understand.
If you open enterprise manager and connect to the server in...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 15, 2008 at 7:35 am
Viewing 15 posts - 47,161 through 47,175 (of 49,552 total)