Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ramana123
Yak Posting Veteran
57 Posts |
Posted - 2005-07-29 : 01:41:34
|
| hi my problem is i hav one function in sqlserver..i have to test that whether it is working fine or not..i tried that looks like below..DECLARE @A INTSET @A=23516declare @err_no intSET @err_no= exec Price_Bands_PKG_FV_Used_In_Fees @APRINT @err_nobut it shows the error near to keyword exec..can you tell me thee sol pls...thanksrams123 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-07-29 : 02:05:22
|
| Can you post the code used in the function?MadhivananFailing to plan is Planning to fail |
 |
|
|
ramana123
Yak Posting Veteran
57 Posts |
Posted - 2005-07-29 : 02:08:38
|
| hi this is my function code...CREATE FUNCTION Price_Bands_PKG_FV_Used_In_Fees (@In_Fee_Value_Number INT)RETURNS BIT WITH ENCRYPTIONASBEGIN-- Determines whether the Fee_Value_Number passed in is currently in use in the-- FEES_LIST table.DECLARE @v_Fee_Value_Number INTDECLARE @v_success INT Select @v_Fee_Value_Number = Fee_Value_Number From FEES_LIST Where Fee_Value_Number = @In_Fee_Value_Number-- Currently in use!IF @@ROWCOUNT > 0 set @v_success = 1ELSE set @v_success = 0-- Not currently being used.return @v_successEND |
 |
|
|
byrmol
Shed Building SQL Farmer
1591 Posts |
Posted - 2005-07-29 : 02:13:30
|
| >> WITH ENCRYPTIONLOLDavidMA front-end is something that tries to violate a back-end. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-07-29 : 02:20:48
|
| You should use DECLARE @A INTSET @A=235516declare @err_no intselect @err_no=Price_Bands_PKG_FV_Used_In_Fees(@A)PRINT @err_noMadhivananFailing to plan is Planning to fail |
 |
|
|
ramana123
Yak Posting Veteran
57 Posts |
Posted - 2005-07-29 : 02:24:21
|
| thanks now iam able to test my function...!!! |
 |
|
|
Kristen
Test
22859 Posts |
Posted - 2005-07-29 : 04:09:38
|
quote: Originally posted by byrmol >> WITH ENCRYPTIONLOLDavidM
What's wrong with that then? Other than the fact that the actual encryption method is lousy ...Kristen |
 |
|
|
byrmol
Shed Building SQL Farmer
1591 Posts |
Posted - 2005-07-29 : 04:16:16
|
| >> What's wrong with that then?He posted the plain text version on the INTERNET!DavidMA front-end is something that tries to violate a back-end. |
 |
|
|
Kristen
Test
22859 Posts |
Posted - 2005-07-29 : 04:21:11
|
| Ah .... GotIt! Good Point.Kristen |
 |
|
|
|
|
|