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 |
|
real_pearl
Posting Yak Master
106 Posts |
Posted - 2004-12-17 : 02:07:01
|
| If an object does not exist, SQL Server generates error208- Invalid object nameI want to handle the error but dont want the user to see it. How can I do this? |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2004-12-17 : 05:40:32
|
you can check if the object exists:if object_id('someName') is nullselect 1elseselect 2Go with the flow & have fun! Else fight the flow |
 |
|
|
|
|
|