Click here to Skip to main content
15,892,005 members
Home / Discussions / Database
   

Database

 
AnswerRe: Issue while updating the DateTime field thru VB.NET Pin
Ashfield20-Jun-08 8:56
Ashfield20-Jun-08 8:56 
GeneralRe: Issue while updating the DateTime field thru VB.NET Pin
hariram2820-Jun-08 9:12
hariram2820-Jun-08 9:12 
GeneralRe: Issue while updating the DateTime field thru VB.NET Pin
Ashfield20-Jun-08 11:28
Ashfield20-Jun-08 11:28 
GeneralRe: Issue while updating the DateTime field thru VB.NET Pin
hariram2820-Jun-08 12:37
hariram2820-Jun-08 12:37 
GeneralRe: Issue while updating the DateTime field thru VB.NET Pin
Ashfield21-Jun-08 7:28
Ashfield21-Jun-08 7:28 
QuestionGenerating XML Schema of SQL Server 2005 Database Pin
Rocky#20-Jun-08 3:13
Rocky#20-Jun-08 3:13 
QuestionMySql and DbCommand [modified] Pin
gandalf_le_blanc20-Jun-08 3:10
gandalf_le_blanc20-Jun-08 3:10 
Questionexception handling sql server 2005 Pin
Learner52020-Jun-08 2:20
Learner52020-Jun-08 2:20 
hi every body
i hava a problem with exception handling when i execute my stored procedure which is

/////////////////////////////////////////////////////////////////////////////////
ALTER Procedure [dbo].[PaginRec]
(
@PageNum int,
@NumOfRec int
)
as
begin try
begin with DIVRES as (
select Row_Number() over(order by Responsible desc)
as row, Responsible , Division
from Bulist)
select Responsible,Division
from DIVRES
where row between
(@PageNum - 1) * @NumOfRec + 1 and @PageNum*@NumOfRec
end
end try

begin catch
select 'Please enter the right number of parameters'
end catch

///////////////////////////////////////////////////////////////////////////////////


PaginRec
(press F5 without any input parameter)

it gives an error msg like

Msg 201, Level 16, State 4, Procedure PaginRec, Line 0
Procedure or Function 'PaginRec' expects parameter '@PageNum', which was not supplied.

my question is that how can i catch this exception and display my own msg like

Please enter the right number of Parameters or whatever it is.

thanx in adv
learner
AnswerRe: exception handling sql server 2005 Pin
Hesham Amin20-Jun-08 6:01
Hesham Amin20-Jun-08 6:01 
GeneralRe: exception handling sql server 2005 Pin
Learner52020-Jun-08 6:17
Learner52020-Jun-08 6:17 
QuestionChange data arrangement Pin
SomeGuyThatIsMe20-Jun-08 1:28
SomeGuyThatIsMe20-Jun-08 1:28 
QuestionRecommendation for SQL Server book Pin
Baconbutty19-Jun-08 22:48
Baconbutty19-Jun-08 22:48 
AnswerRe: Recommendation for SQL Server book Pin
Alsvha19-Jun-08 23:50
Alsvha19-Jun-08 23:50 
QuestionAutomatic Transaction between MySQL and MSMQ Pin
jmohan19-Jun-08 22:02
jmohan19-Jun-08 22:02 
GeneralOLAP Cube for Sql server 2005 Pin
jagmit2019-Jun-08 20:45
jagmit2019-Jun-08 20:45 
QuestionNormalization Pin
Pankaj Garg19-Jun-08 19:25
Pankaj Garg19-Jun-08 19:25 
AnswerRe: Normalization Pin
Ashfield19-Jun-08 21:05
Ashfield19-Jun-08 21:05 
AnswerRe: Normalization Pin
CPallini19-Jun-08 22:03
mveCPallini19-Jun-08 22:03 
NewsRe: Normalization Pin
Pankaj Garg19-Jun-08 23:26
Pankaj Garg19-Jun-08 23:26 
GeneralRe: Normalization Pin
CPallini20-Jun-08 0:00
mveCPallini20-Jun-08 0:00 
GeneralRe: Normalization Pin
Jerry Hammond21-Jun-08 7:44
Jerry Hammond21-Jun-08 7:44 
GeneralRe: Normalization Pin
CPallini22-Jun-08 0:44
mveCPallini22-Jun-08 0:44 
QuestionProblem in Query Pin
garga119-Jun-08 19:06
garga119-Jun-08 19:06 
AnswerRe: Problem in Query Pin
Marek Grzenkowicz19-Jun-08 21:31
Marek Grzenkowicz19-Jun-08 21:31 
AnswerRe: Problem in Query Pin
Anurag Gandhi19-Jun-08 22:00
professionalAnurag Gandhi19-Jun-08 22:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.