Viewing 15 posts - 9,631 through 9,645 (of 18,926 total)
The default is like 30 seconds. It's already 30 times bigger than it needs to be. So I'd suggest you improve the performance of the code instead of the length...
July 24, 2007 at 4:53 am
Assuming you actually need to use Dynamic sql (because you don't need to in your exemple) :
EXEC sp_executesql @sql, N'@YourVariableHere INT OUTPUT', @YourVariableHere OUTPUT
July 23, 2007 at 8:09 pm
I didn't know that. You'll have to drop/recreate all the objects that the server complains about.
July 23, 2007 at 1:04 pm
Please do NOT cross-post. WE monitor all the boards all the time.
Please continue the discussion on this board : http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=324&messageid=384251
July 23, 2007 at 12:14 pm
A foreign key constraint cannot be applied if the Parent table does NOT have a unique constraint of any kind. By removing the PK, you violate that rule.
Try this :...
July 23, 2007 at 12:12 pm
Archive the inactive rows somewhere else. Add a check constraint that Active must equal 1 and run that new constraint with check.
Also you can post the exec plan of that...
July 23, 2007 at 9:35 am
. Thos error message are misleading sometimes
.
July 23, 2007 at 9:32 am
You already have the right syntax for it.
July 23, 2007 at 8:38 am
The view will still have to scan the table. Indexed view may be an option. But this actually creates a second table. I think I'd go with with separating the...
July 23, 2007 at 8:37 am
Hmm, what are you getting exactly, and what are you expecting to get?
July 22, 2007 at 2:29 pm
I'm always curious for these things... which one is the fastest??
July 22, 2007 at 4:48 am
You got me on my curious side Sergiy, what is that other route you are talking about?
July 21, 2007 at 6:49 pm
Since when is there a bad way to do something that works in sql server???
Granted that profiler seems like the best choice here
.
July 21, 2007 at 4:32 pm
This seems like an Orders / OrdersDetails schema.
Based on that assumption you need to do something like this :
SELECT O.ID, ISNULL(Dtd.SPrice, 0) AS SPrice FROM dbo.Orders O LEFT OUTER...
July 21, 2007 at 1:10 pm
Let me put it this way. I've seen this done before using sql server. But the guy pretty much wrote a lite version of Excel. So I'd try to find...
July 21, 2007 at 1:05 pm
Viewing 15 posts - 9,631 through 9,645 (of 18,926 total)