Viewing 8 posts - 46 through 53 (of 53 total)
be careful switching the database to single_user if sql server agent is running with sysadmin privileges it will get the only active connection available.
to switch off the containement database...
October 17, 2013 at 8:44 am
This is not what you need ?
select
coalesce(p.period_month,r.Fromdate) as period_month,r.warehouse_code,r.item_number,r.origin_warehouse_code,r.Fromdate
from
Routing_History r
left join Period p on p.period_month= r.Fromdate
October 17, 2013 at 8:27 am
Try to isolate the error. Run this code out of the stored procedure and debug it to see where is the problem.
October 17, 2013 at 6:43 am
Then this should do the trick :
select
coalesce(p.period_month,r.Fromdate) as period_month,r.warehouse_code,r.item_number,r.origin_warehouse_code,r.Fromdate
from
Routing_History r
left join Period p on p.period_month= r.Fromdate
October 17, 2013 at 6:23 am
I think what you want is to query all routing_history rows and show period_month column only if available. This is a left join :
select
p.period_month,r.warehouse_code,r.item_number,r.origin_warehouse_code,r.Fromdate
from
Routing_History r
left join Period p...
October 17, 2013 at 6:08 am
fragment count 2000 means that index data is spread accross 2000 blocks of consecutive pages.
October 17, 2013 at 5:50 am
A Fragment is a collection of pages in sequence
For example you can have data spread across 6 pages, but these pages are located in different extents :
...
October 17, 2013 at 5:22 am
Viewing 8 posts - 46 through 53 (of 53 total)