Solved

updating command

Posted on 2014-11-06
4
101 Views
Last Modified: 2014-11-06
I have a command I made, that combines two databases.  a history and a current.  We added two new routes, but my report doesn't show the two new routes.  Do I have to refresh the command or do I need to fix my command?

Here is the current code.

select
dbo.InvMaster.ConvFactOthUom,
dbo.InvMaster.StockCode,
dbo.SorDetail.SalesOrder,
dbo.SorDetail.MStockCode,
dbo.SorDetail.MStockDes,
dbo.SorDetail.MWarehouse,
dbo.SorDetail.MOrderQty,
dbo.SorDetail.MOrderUom,
dbo.SorDetail.MPrice,
dbo.SorDetail.MDiscValue,
dbo.SorDetail.MStockUnitMass,
dbo.SorDetail.MConvFactAlloc,
dbo.SorMaster.SalesOrder,
dbo.SorMaster.OrderStatus,
dbo.SorMaster.OrderDate

FROM dbo.InvMaster INNER JOIN
dbo.SorDetail ON dbo.InvMaster.StockCode = dbo.SorDetail.MStockCode INNER JOIN
dbo.SorMaster ON dbo.SorDetail.SalesOrder = dbo.SorMaster.SalesOrder

union


select
SysproCompanyY.dbo.InvMaster.ConvFactOthUom,
SysproCompanyY.dbo.InvMaster.StockCode,
SysproCompanyY.dbo.SorDetail.SalesOrder,
SysproCompanyY.dbo.SorDetail.MStockCode,
SysproCompanyY.dbo.SorDetail.MStockDes,
SysproCompanyY.dbo.SorDetail.MWarehouse,
SysproCompanyY.dbo.SorDetail.MOrderQty,
SysproCompanyY.dbo.SorDetail.MOrderUom,
SysproCompanyY.dbo.SorDetail.MPrice,
SysproCompanyY.dbo.SorDetail.MDiscValue,
SysproCompanyY.dbo.SorDetail.MStockUnitMass,
SysproCompanyY.dbo.SorDetail.MConvFactAlloc,
SysproCompanyY.dbo.SorMaster.SalesOrder,
SysproCompanyY.dbo.SorMaster.OrderStatus,
SysproCompanyY.dbo.SorMaster.OrderDate


FROM SysproCompanyY.dbo.InvMaster INNER JOIN
SysproCompanyY.dbo.SorDetail ON SysproCompanyY.dbo.InvMaster.StockCode = SysproCompanyY.dbo.SorDetail.MStockCode INNER JOIN
SysproCompanyY.dbo.SorMaster ON SysproCompanyY.dbo.SorDetail.SalesOrder = SysproCompanyY.dbo.SorMaster.SalesOrder
0
Comment
Question by:TomBalla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 18

Expert Comment

by:vasto
ID: 40426440
What is "route" ? Record or column?
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 40426517
Have you done a VERIFY DATABASE?

Also try LOGGING OFF the SERVER then LOGGING ON

mlmcc
0
 

Author Comment

by:TomBalla
ID: 40426559
logging on and off worked.  thanks.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 40426683
The log off and log on forces Crystal to read the table structure

mlmcc
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question