Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Other SQL Server Topics / July 2005

Tip: Looking for answers? Try searching our database.

Error Handing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
msnews.microsoft.com - 25 Jul 2005 18:25 GMT
I have created the stored procedure and I want to handle the error like

Create Procedure MytablePro
as
select fld1, fld2 from mytable
GO

EXEC MytablePro

if some one changed the table name at the back end then I have to give
problem error but right now when procedure execute it gave me like this
Server: Msg 208, Level 16, State 1, Procedure SPSelectBedRoom_New, Line 15
Invalid object name 'mytable'.

I want to make it proper way... can any one help... what sort of amendament
in the stored procedure.

Thanks
Hari Prasad - 25 Jul 2005 20:26 GMT
AFAIK, You cant do that.

Thanks
Hari
SQL Server MVP

>I have created the stored procedure and I want to handle the error like
>
[quoted text clipped - 14 lines]
>
> Thanks
Roy - 28 Jul 2005 05:55 GMT
If I can't do then what master..sysmessages table represent?

> AFAIK, You cant do that.
>
[quoted text clipped - 20 lines]
> >
> > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.