Viewing 15 posts - 18,496 through 18,510 (of 18,926 total)
I already answered this question under your other post.
February 25, 2005 at 2:53 pm
He is right when he tells that it will cause degredation. However to cause major problems you would have to run these procs a few 1000 times/hours (if the result...
February 25, 2005 at 2:51 pm
I just played with it... have a go with this script and post the final result to us :
if object_id ('Replaces') > 0
begin
drop table Replaces
end
GO
if object_id ('Dummys') > 0
begin
drop...
February 25, 2005 at 2:35 pm
Always depends on how you "loop" but I think you can figure out a fast way of doing that.
February 25, 2005 at 1:22 pm
Maybe I can help you with concatenating on the client side...
read this for an exemple of a quick concatenation script :
February 25, 2005 at 1:05 pm
CASE WHEN Max(SalePrice) > 0 THEN Max(SalePrice) ELSE CASE WHEN Max(UnitPrice) > 0 Then Max(UnitPrice) Else 1 END END
February 25, 2005 at 1:03 pm
if you need more than 8000 characters I would suggest doing the work on the client because it's gonna be easier there than working with a text variable on the...
February 25, 2005 at 12:31 pm
Dim db As ADODB.Connection
'add this
set db = new adodb.connection
db.Open "Provider=SQLOLEDB.1;Persist Security Info=True;Initial Catalog=Agency ControlSQL;Data Source=servername", "userid" "password"
February 25, 2005 at 12:27 pm
WHERE AND HAVING are very similar, but your conditions differ from one another because of the max operation.
Try removing the (MAX(Orders.OrderDate) to only Orders.OrderDate > DATEADD(d, - 90, GETDATE())
February 25, 2005 at 12:19 pm
as I stated earlier :
HAVING (MAX(Orders.OrderDate) > DATEADD(d, - 90, GETDATE()))
IS VERY DIFFERENT than
WHERE (Orders.OrderDate > DATEADD(d, - 90, GETDATE()))
add MAX(Orders.OrderDate) and COUNT(*) from the first select query to...
February 25, 2005 at 12:09 pm
it's still not enough info to help you (no table definition)..
Try running the first query without the sum/group by and find out which lines are missing for a product compared...
February 25, 2005 at 11:26 am
Why is it painfull to have a task run more than once per day?
February 25, 2005 at 11:19 am
can you post the DDL and some of the data from the table along with the results from each of the queries? I can't help you further without that.
February 25, 2005 at 10:11 am
I haven't checked the whole thing but this jumped right to my face :
GROUP BY Products.Manufacturer + ' ' + Products.ProductName
HAVING (MAX(Orders.OrderDate) > DATEADD(d, - 90, GETDATE()))
WHERE (Orders.OrderDate >...
February 25, 2005 at 10:03 am
Maybe not what you want to hear, but don't use a cursor.
Can you post the SP so that we can provide alternative solution to the cursor and check for small...
February 25, 2005 at 9:58 am
Viewing 15 posts - 18,496 through 18,510 (of 18,926 total)