How can we help you today? How can we help you today?
MikeONeill
Thats even better , its not the first time I have refreshed the cache of a BIG db by accident and sat waiting, just to wait again for the one I wanted !! Its normally the one you working on tha needs it anyway Cheers Mike / comments
Thats even better , its not the first time I have refreshed the cache of a BIG db by accident and sat waiting, just to wait again for the one I wanted !! Its normally the one you working on tha nee...
0 votes
This is a good example , it seems to be not liking the #Machine I'm not sure if you can replicate not having the Db All the Inner Joins are underlined -- Retrieve Unique List of Machines INSERT INTO #Machines (Machine, MachineDesc) EXECUTE dbo.SelectMachineBy @LotSummaryName = 'PA-MATUR,PA-FERME,PA-FLAVO,PA-FILTR,PA-DABPR', @BrandCode = '-1', @MachineType = 'Bright Beer Tank,Fermentation Vessel,Storage Vessel', @ExcludeOffline = 1 INSERT INTO @Inventory SELECT DISTINCT MT.Machine ,ISNULL(L.LotID, '') ,ISNULL(R.[Description], 'None') ,QuantityStart = ISNULL(dbo.fncLotDestinationQuantity(L.LotID, @SelectedDate), 0) ,QuantityCurrent = ISNULL(L.PrimaryQty, 0) ,ISNULL(B.ShortDescription, '') ,ISNULL(B.LongDescription, '') ,ISNULL(L.MaterialName, '') ,ISNULL(L.MaterialVersion, '') ,ISNULL(SUBSTRING(M.MaterialName, 3, 10) , '') ,ISNULL(M.Description, '') ,FilledOn = ISNULL(dbo.fncFilledOn(L.LotID), '') ,StdGravity = ISNULL(dbo.fncStdGravity(L.LotID, 0), 0) ,Actual = ISNULL(dbo.fncStdGravity(L.LotID, 1), 0) ,ProcessTimeTarget = ISNULL(CASE WHEN R.RouteName LIKE 'Fermentation%' THEN BA.FVDaysProcess WHEN R.RouteName LIKE 'Maturation%' THEN BA.SVDaysProcess WHEN R.RouteName LIKE 'Filtration%' THEN BA.BBTDaysProcess END, 0) ,ISNULL(LI.CreateTimeLogged, '') ,CreateDate = ISNULL(LI.DueDate, '') ,ISNULL(R.paqtMenuCol, 0) ,ISNULL(R.DisplayOrder, 0) ,ISNULL(MC.Location, '') ,ISNULL(L.FinishedOn, '') ,'IN_USE' ,NULL FROM #Machines MT INNER JOIN Machine MC ON MT.Machine = MC.Machine INNER JOIN StartLog SL ON MT.Machine = SL.Machine INNER JOIN LotBaseLog LBL ON LBL.BaselogID = SL.TransLogID AND Undone = 'False' INNER JOIN Lot L ON L.LotID = LBL.LotID AND L.FinishedOn > @SelectedDate INNER JOIN Route R ON LBL.RouteName = R.RouteName AND LBL.RouteVersion = R.RouteVersion LEFT OUTER JOIN LotInfo LI ON L.LotID = LI.LotID INNER JOIN Material M ON L.MaterialName = M.MaterialName AND L.MaterialVersion = M.MaterialVersion INNER JOIN Brand B ON B.pkBrandCode = M.fkBrandCode INNER JOIN BeerAvailability BA ON BA.fkBrandCode = B.pkBrandCode WHERE LBL.TimeLogged <= @SelectedDate AND L.FinishedOn >= @SelectedDate ORDER BY MT.Machine / comments
This is a good example , it seems to be not liking the #Machine I'm not sure if you can replicate not having the Db All the Inner Joins are underlined -- Retrieve Unique List of Machines INSERT INT...
0 votes
Thanks Brian , I thought you may have seen it before Its on my home PC so I'll try it tonight and let you know Mike / comments
Thanks Brian , I thought you may have seen it before Its on my home PC so I'll try it tonight and let you know Mike
0 votes
I haven't actually seen SQL 2008 yet , I must have a look , it would be an excellent addition. When I bought my Visual Studio 2008 , they hadn't launched SQL 2008 or no doubt they would include the developer edition in there Cheers Mike / comments
I haven't actually seen SQL 2008 yet , I must have a look , it would be an excellent addition. When I bought my Visual Studio 2008 , they hadn't launched SQL 2008 or no doubt they would include the...
0 votes