装完yukon(ctp15),在.net下直接运行访问数据库的程序没问题,但一调试到下面的语句就出如下问题
could not find stored procedure 'sp_sdidebug'.
出错的语句为:
SqlConnection con = new SqlConnection(connString);
con.Open();
谁能告诉我这是为什么,谢谢!
...全文
39010打赏收藏
sp_sdidebug的问题
装完yukon(ctp15),在.net下直接运行访问数据库的程序没问题,但一调试到下面的语句就出如下问题 could not find stored procedure 'sp_sdidebug'. 出错的语句为: SqlConnection con = new SqlConnection(connString); con.Open(); 谁能告诉我这是为什么,谢谢!
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS OFF
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_sdidebug]') and OBJECTPROPERTY(id, N'IsExtendedProc') = 1)
exec sp_dropextendedproc N'[dbo].[sp_sdidebug]'
GO
exec sp_addextendedproc N'sp_sdidebug', N'(server internal)'
GO