Viewing 15 posts - 16,051 through 16,065 (of 49,552 total)
Please read the article Jeff referred to.
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
October 17, 2012 at 8:42 am
TRUNCATE TABLE RoleMaster
or, if it has foreign keys
DELETE FROM RoleMaster
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
October 17, 2012 at 8:42 am
Far easier way, just query sys.dm_db_partition_stats.
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
October 17, 2012 at 8:11 am
A view is a single select statement, nothing more. No variables, no parameters, no other statements.
You want either a stored procedure (recommended) or a multi-statement table-valued user-defined function (not recommended...
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
October 17, 2012 at 8:01 am
Steve Malley (10/17/2012)
Since I am only accessing the system catalog and a DMV, I would expect that performance should be consistent and fast.
Except that DMV is not a view...
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
October 17, 2012 at 7:57 am
Start by reading the Books Online pages on triggers, then try and rewrite your trigger without the IF statement (which won't even parse) and using the INSERTED table (which will...
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
October 17, 2012 at 7:54 am
If I had to guess, I'd say SQL 2008 was installed as a new installation (not an upgrade) and the database engine was not installed. So 2008 client tools 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
October 17, 2012 at 4:16 am
When restoring SQL recreates the DB exactly as it was at time of backup, including file sizes. So you will need space for the full size of the original DB.
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
October 17, 2012 at 3:06 am
You haven't finished the last join in the from clause.
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
October 17, 2012 at 2:45 am
You need an alias for the subquery in the from, and you need to finish the missing portion of the join clause.
p.s. Please post new questions in new threads 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
October 17, 2012 at 1:30 am
Think of SQL 2008 R2 as if it was named SQL Server 2010 and things are generally a lot clearer
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
October 17, 2012 at 1:01 am
You can't avoid locks, by indexing or otherwise. SQL will always take necessary locks, whether there's one connection using the table or 20.
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
October 17, 2012 at 12:59 am
Sure they can. It's just like putting 2005 and 2008, or 2008 R2 and 2012. They're all different versions of SQL.
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
October 16, 2012 at 4:57 pm
No.
What that will do is clear the plan cache which might temporarily alleviate any problems caused by poor plans, but it certainly won't fix those problems, just hide them for...
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
October 16, 2012 at 4:56 pm
JeremyE (10/16/2012)
I have used TRUNCATEONLY on log files in SQL 2008R2 before to remove VLF fragmentation. I double...
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
October 16, 2012 at 3:17 pm
Viewing 15 posts - 16,051 through 16,065 (of 49,552 total)