Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 March 17th, 2008, 03:29 AM
Registered User
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default help me about this quary its showing runtime error

Problematic Queries
(its showing time out error)

declare @id uniqueidentifier

declare @type varchar(50)

set @id = '048E29F9-29BF-4ABD-B24E-05ADE41FCFF9'

set @type = 'BM'

--CREATE PROCEDURE proInComingTransactionsCOC(@type varchar(50), @id varchar(50)) AS

--BEGIN

--if @type='MUTHOOT'

--BEGIN

            Select

                        td.Id,

                        td.PayinDateTime,

                        td.TransactionNumber,

                        td.Status,

                        td.RecommendedPayOutAgentId,

                        cd.BFName +' '+ cd.BLName as Name,

                        td.PayOutAmount as PayOutAmount,

                        ll.Name as City

            From

                        TransactionDetails td

            inner join PaymentModeList pml on td.Paymentmode=pml.Value

            inner join CustomerDetails cd on td.ID=cd.TransactionID

            inner join LocationList ll on ll.ID=td.PayoutLocationID

            Where td.RecommendedPayOutAgentId

                        In (Select Id From AgentLocationList Where AgentAccountId=@Id and Name like '%Muthoot%')

                        And td.Status = 'Processed' --And PaymentMode Not Like '%Draft%'

                        and pml.Prefix = 'COC' order by td.PayinDatetime;


 
Old March 17th, 2008, 09:10 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Hi,

I can't see anything wrong with your query here.

I'm sure you probably tried this already but its worth a shot. If these two queries run fine in QA, just start adding to the first query to see when it fails. You probably already know this. Sorry I couldn't be of more help.

Richard






Similar Threads
Thread Thread Starter Forum Replies Last Post
hi i got runtime error 13 Type Mismatch error sriharsha345 Access VBA 2 February 21st, 2008 09:30 AM
Web Part - Showing error angshujit ASP.NET 2.0 Basics 2 June 21st, 2007 03:28 AM
showing error message but not validating anand8412 Struts 1 October 26th, 2006 12:13 AM
mysterious error runtime error '451' coyotworks Excel VBA 1 May 12th, 2006 03:57 PM
Resin Server showing error ghalebro Pro JSP 0 July 22nd, 2005 04:08 AM





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