Viewing 15 posts - 46 through 60 (of 84 total)
Grant Fritchey (9/29/2008)
IF NOT (@brand_id IS NULL)
BEGIN
SELECT p.pk_product_id
FROM tbl_products AS p
JOIN tbl_brands AS b
ON p.fk_brand_id = b.pk_brand_id
WHERE b.fk_brand_map_id = @brand_id
OR b.pk_brand_id = @brand_id
END
But that second OR is still going to...
October 1, 2008 at 10:16 am
Glen (10/1/2008)
The discussion "Is dynamic SQL better than Stored Procedures"...
October 1, 2008 at 8:56 am
Are there any situations (resultset or performance) where using IN is preferred over JOIN?
September 30, 2008 at 8:25 am
Matt Miller (9/26/2008)
September 26, 2008 at 9:03 pm
Ninja's_RGR'us (9/26/2008)
For the db fragmentation. Check the current DB size on...
September 26, 2008 at 8:12 pm
Matt Miller (9/26/2008)
Why not use backup and restore?
The source database is a linked server residing on another server. Additionally, the "linked" server is not a MS SQL Server.
September 26, 2008 at 7:43 pm
PW (9/25/2008)
Depends on volume of Insert/Update/Delete activity on the table versus Select.
Depends on how the data is typically accessed ie, always looking at the...
September 25, 2008 at 9:37 am
Here's my solution based on the following inputs:
1. rbarryyoung's replial @ 3:23PM
2. http://www.sqlservercentral.com/articles/Security/sqlserversecuritythedb_executorrole/988/
Thanks again for everyone's help.
CREATE TRIGGER [Create_SP_Trigger]
ON DATABASE
FOR CREATE_PROCEDURE
AS
...
September 17, 2008 at 1:49 pm
Cliff Jones (8/28/2008)
August 28, 2008 at 1:47 pm
Cliff Jones (8/28/2008)
August 28, 2008 at 1:17 pm
Steve,
Thanks for the suggestion about using @@scope_identity.
How would I use a trigger to acquire the id before insertion? Won't there be problems because I need to use the to-be-inserted id...
August 28, 2008 at 8:44 am
GilaMonster (8/27/2008)
jlp3630 (8/27/2008)
I'm running RAID-0 on my c: drive (contains Windows, SQL server, master, model and msdb databases and log files).
I'm running RAID-50 on my f: drive (tempdb, user databases...
August 27, 2008 at 10:31 am
sam (8/26/2008)
http://www.google.com/search?q=troubleshooting+sql+memory+problems&sourceid=ie7&rls=com.microsoft:en-US&ie=utf8&oe=utf8The first link has a few counters you could look at.
Is this the website that you were referring to regarding performance counters:
http://sqlserver-qa.net/blogs/perftune/archive/2007/06/19/memory-issues.aspx
Thanks again for all your input.
August 27, 2008 at 10:04 am
sam (8/27/2008)
I logged into the server this morning, and everything seems to be running ok. In other words, SQL server queries are running fast, and RDC is running at normal...
August 27, 2008 at 10:02 am
DavidB (8/27/2008)
Not so sure that applies based on the errors that you provided.
Have you installed...
August 27, 2008 at 9:23 am
Viewing 15 posts - 46 through 60 (of 84 total)