董晓涛(David Dong)

博客园 首页 新随笔 联系 订阅 管理

2005年3月23日 #

摘要: How to configure a store proc automatically exec when SQL Server Services start 通过这个例子,我们将大致了解如何使用Raiserror抛出错误信息以及让SQLServer启动时自动运行存储过程. 1.先为我们的SQLServer增加一个错误号为50008的message,然后我们就可以使用这个信息,在本... 阅读全文
posted @ 2005-03-23 18:41 董晓涛 阅读(1319) 评论(0) 推荐(0) 编辑

摘要: how to use danymic sql in SQL Server 2000 如何在T-SQL使用动态表名 declare @a nvarchar(1000) set @a='test11' set @a=N'create table '+@a+' ( a int) ' exec sp_executesql @a 另一种: declare @a nvarchar(1000) set @... 阅读全文
posted @ 2005-03-23 18:40 董晓涛 阅读(287) 评论(0) 推荐(0) 编辑

摘要: Unicode practice SELECT * FROM ::fn_helpcollations() note:now the database collation is:SQL_Latin1_General_CP1_CI_AS USE Northwind GO --Firs... 阅读全文
posted @ 2005-03-23 18:31 董晓涛 阅读(409) 评论(0) 推荐(0) 编辑