Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
| Search | Today's Posts | Mark Forums Read
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language 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
  #1 (permalink)  
Old December 9th, 2005, 08:54 AM
Authorized User
 
Join Date: Sep 2005
Location: Kraków, , Poland.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default SP - executing error

I use UDF in my stored procedure:

CREATE PROC [dbo].[alg_mainSP] AS SELECT P1 * P1 AS [COL1], P1 * P1 AS [COL2], P1 * [u]dbo.do1_g ( S1 ) AS [COL3]</u> FROM testowa;

P1 and S1 are columns of course.

and some of Udf have "_" char in his name (like do_1g UDF in COL3) and i think this causes this error how to solve that problem ?

thanx for help


  #2 (permalink)  
Old December 9th, 2005, 02:22 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

check the value in the UDF. If it contains characters, return 0.

  #3 (permalink)  
Old December 12th, 2005, 03:50 AM
Authorized User
 
Join Date: Sep 2005
Location: Kraków, , Poland.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by jbenson001
 check the value in the UDF. If it contains characters, return 0.

i dont know if u understand me...:)
i have _ char in UDF name and i wonder if that causes problem with executing SP which uses this UDF ...

  #4 (permalink)  
Old December 12th, 2005, 10:50 AM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

What is the error you are getting



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Resolved] Error calling a sp - parameter error snufse .NET Framework 2.0 2 February 12th, 2008 04:46 PM
selecting rows returned by executing a SP dsekar_nat SQL Server 2000 4 May 11th, 2006 11:12 AM
SP executing time on progressBar control filipczako ADO.NET 0 November 29th, 2005 06:48 PM
Executing a SP for each recordset of a Table anandham SQL Server 2000 1 October 19th, 2005 06:34 PM
Executing DTS package from ASP page via SP savoym Classic ASP Basics 0 April 28th, 2005 07:02 AM





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