Re: How to know if a table exist in a Stored Procedure?
- From: "Hari Prasad" <hari_prasad_k@xxxxxxxxxxx>
- Date: Fri, 8 Sep 2006 07:52:29 -0500
Hi,
use dbname
go
Select object_name(id) from syscomments where text like '%table_name%'
Replace table_name with actual table name.
Thanks
Hari
SQL Server MVP
"Grupo ESI" <Pedir@xxxxxxxxxxxxxxx> wrote in message
news:eRsvJT00GHA.720@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Can anybody please tell me How to know if a table exist in a Stored
Procedure?
Thanks in advance,
--
Jorge L. Cotarelo
.
- Follow-Ups:
- Re: How to know if a table exist in a Stored Procedure?
- From: Grupo ESI
- Re: How to know if a table exist in a Stored Procedure?
- References:
- How to know if a table exist in a Stored Procedure?
- From: Grupo ESI
- How to know if a table exist in a Stored Procedure?
- Prev by Date: How to know if a table exist in a Stored Procedure?
- Next by Date: Re: How to know if a table exist in a Stored Procedure?
- Previous by thread: How to know if a table exist in a Stored Procedure?
- Next by thread: Re: How to know if a table exist in a Stored Procedure?
- Index(es):
Relevant Pages
|
Loading