Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 14th, 2004, 08:39 AM
Authorized User
 
Join Date: Aug 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using Temp Table and dataset

Here's the example I am trying to make it run faster.

SELECT Claims.PaidDate, Claims.MMIS, Claims.MILEAGE, Claims.CCANBR, Claims.MODEL, Claims.APVTOW,
Claims.APVCORE, Claims.APVOUT, Claims.MISC,Claims.ATADESNOSPACE, Claims.FCODE,
Claims.SNBR, Claims.RecieveDate, Claims.WarrantyEffectiveDate, Claims.ProductionDate,
Claims.CCATYPE, Claims.FCODE, Claims.FailDate, Claims.PARTS, Claims.LABOR, Claims.TOTAL,
tLBRHR360.acthours, tLBRHR360.laborrate, VendorInfo.VendorName,
VendorInfo.VendorNum, ClaimTypeCodes.[Description],
Claims.FPARTNOSPACE, InventoryList.PartNumber
FROM claims
INNER JOIN tLBRHR360 ON Claims.CCANBR=tLBRHR360.CCANBR
INNER JOIN InventoryList ON Claims.FPARTNOSPACE=InventoryList.PartNumber
INNER JOIN VendorInfo ON InventoryList.PrimaryVendor=VendorInfo.VendorNum
INNER JOIN CLAIMTYPECODES ON ClaimTypeCodes.[CCA Type]=Claims.CCAType

IT'S REPEATING MULTIPLE ROW WHEN I RUN FROM SQL QUERY ANALYZER. IT RETURNS MILLIONS OF RECORD. WHEN I TRY TO RUN FROM ASP.NET CR IT GIVES ME SERVER BUSY ERROR. WHEN I PUT A WHERE CLAUSE TO THE ABOVE QUERY IT WORKS BUT TAKES LONG TIME AND I WANT THE USER TO SELECT ANY RECORD FROM DATABASE..I DONT WANT TO PUT WHERE CLAUSE. WHATS THE BEST WAY TO WORK AROUND THIS SITUATIOIN

How can I use dataset and temp table to access it faster. Any one knows any good example.

Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save DataGridView to temp dataset smithsf22 ADO.NET 1 April 17th, 2008 10:14 PM
TEMP TABLE TO REAL TABLE pallone SQL Server 2000 2 June 15th, 2007 07:50 AM
How to use CTE instead of temp table jayaraj123 SQL Server 2005 0 April 25th, 2007 08:03 PM
Copy whole structure of table in #temp table maulik77 SQL Server 2000 2 December 21st, 2006 02:42 AM
global temp table vs.permanent table use sofya SQL Server 2000 0 December 17th, 2004 01:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.