Viewing 15 posts - 25,156 through 25,170 (of 49,552 total)
Thomas Abraham (7/5/2011)
But I still don't understand why I was flamed for making an honest attempt to improve the situation.
You considered that a flame? Really??
That was an (obviously poor)...
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
July 5, 2011 at 2:43 pm
tpcolson (7/5/2011)
How would the existing trigger work with multi-row inserts if all it is capable of reading is only one row from the inserted table?
The existing trigger reads all rows...
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
July 5, 2011 at 2:39 pm
No further replies here please. OP started a new thread with that question.
Direct replies to http://www.sqlservercentral.com/Forums/Topic1136799-391-1.aspx
Please in future keep it to one thread for a question. Thanks.
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
July 5, 2011 at 2:37 pm
Winston Daley-344648 (7/5/2011)
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
July 5, 2011 at 2:36 pm
Test to show there's nothing wrong with the trigger as written:
CREATE TABLE TBL_LOCATIONS (
Location_Id UNIQUEIDENTIFIER, -- guessing that's what it is
SomeText VARCHAR(20) -- Since I don't know what the rest...
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
July 5, 2011 at 2:30 pm
The trigger itself will work fine for any number of rows inserted. I can write up a simple test to prove that.
How are you inserting those multiple rows? You...
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
July 5, 2011 at 2:25 pm
That trigger will work fine for any number of rows inserted.
If you're doing bulk inserts (bcp, BULK INSERT, SSIS's OLEDB destination), that doesn't fire triggers by default. Tell us more...
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
July 5, 2011 at 2:01 pm
Use EXISTS instead of 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
July 5, 2011 at 1:24 pm
You need to make sure that all the data is compatible with a datetime. Now, the only reason a value in a DATE column would not be castable to DATETIME...
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
July 5, 2011 at 1:24 pm
Use EXISTS.
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
July 5, 2011 at 1:19 pm
Thomas Abraham (7/5/2011)
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
July 5, 2011 at 1:15 pm
Read up on the Resource Governor
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
July 5, 2011 at 12:42 pm
Indianrock (7/5/2011)
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
July 5, 2011 at 11:40 am
You can have a clustered index and up to 999 nonclustered indexes on a table.
For a well-performing system you will likely need a few nonclustered indexes on each table (generalisation),...
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
July 5, 2011 at 11:09 am
allamiro (7/5/2011)
I think what you meant is enabling trace logs and this can be done through service profiler I think
Errr.... Trace logs? Service profiler?
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
July 5, 2011 at 10:38 am
Viewing 15 posts - 25,156 through 25,170 (of 49,552 total)