Viewing 15 posts - 6,526 through 6,540 (of 6,678 total)
Here is one way:
-- Setup the variable for testing
Declare @value varchar(1000);
Set @value = 'select * from table 2 where something in (''a'', ''b'', ''c'')';
Select @value; -- this will look...
June 3, 2008 at 4:53 pm
GSquared (6/3/2008)
June 3, 2008 at 3:50 pm
The Execute SQL Server Agent Job Task starts an agent job - but does not wait for that agent job to complete.
The is the same as executing the following:
Execute dbo.sp_start_job...
June 3, 2008 at 1:59 pm
Animal Magic (6/2/2008)
June 2, 2008 at 10:04 pm
jryan_pun (6/1/2008)
June 1, 2008 at 10:03 pm
If I understand correctly, you have a view that is timing out. Can you post the definition of the view so we can see what is happening?
June 1, 2008 at 10:01 pm
Yes - it is with the like statement that would cause an index scan. And, yes - using full text search would be a better solution if you need...
June 1, 2008 at 6:59 pm
The first issue I see is this:
WHERE
(@Param1 = 0 OR Field1 = @Param1)
AND
(@Param2 IS NULL OR Field2 LIKE '%' + @Param2 + '%')
Prefixing your search criteria with a wildcard...
June 1, 2008 at 6:09 pm
jarmstrong (6/1/2008)
June 1, 2008 at 6:00 pm
Download SQL Server 2005 Performance Dashboard reports. The main report has a chart that shows CPU utilization.
If you really want to run a SQL statement that does this, then...
June 1, 2008 at 12:22 pm
I don't know if there is a limit - at least, I cannot find anything that says there is. However, when I find that I have a very large...
May 31, 2008 at 1:23 pm
Adding to what Matt stated - I see no reason to use dynamic SQL here. This can all be rewritten as a standard select statement. I have rewritten...
May 31, 2008 at 12:58 pm
I think you can use the index id instead of the name in your table hint. Since you will only have a single index on this table - INDEX=1...
May 31, 2008 at 12:07 pm
MohammedU (5/30/2008)
check the file existance using xp_CMDSHELL OR some other extended proc and move to...
May 30, 2008 at 2:58 pm
gwade (5/30/2008)
I'm wondering with the new expresssion, if the date that the query is run is 2008-05-30 13:25:23.723 and the expiry value is...
May 30, 2008 at 2:44 pm
Viewing 15 posts - 6,526 through 6,540 (of 6,678 total)