摘要: if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[p_search]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[p_search] GO /*--在整个数据库搜索某个字符串在哪个表的哪个字段中 /*--调用示例 ... 阅读全文
posted @ 2007-05-22 11:47 ringnet 阅读(1443) 评论(0) 推荐(0) 编辑
摘要: declare @row varchar(30)declare @tbname varchar(30) DECLARE string_find_cursor CURSOR FAST_FORWARD FOR SELECT [name] FROM sysobjects where type='U' and name like 'A%' ORDER BY [name] OPEN string_fi... 阅读全文
posted @ 2007-05-22 11:40 ringnet 阅读(1340) 评论(0) 推荐(0) 编辑