摘要: The xp_cmdshell option is a server configuration option that enables system administrators to control whether the xp_cmdshell extended stored procedure can be executed on a system. ---- To all... 阅读全文
posted @ 2013-03-29 14:37 AOT 阅读(265) 评论(0) 推荐(0) 编辑
摘要: CREATE PROC getBusinessLineHistoryASBEGIN SELECT * FROM sys.databasesENDGOsp_configure 'Show Advanced Options', 1GORECONFIGUREGOsp_configure 'Ad Hoc Distributed Queries', 1GORECONFIGUREGOSELECT ... 阅读全文
posted @ 2013-03-04 17:22 AOT 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1. Configure sql mail Double click Database Mail in Management node in SSMS, set up new e-mail profile and specify its smtp account and relevancy 2. After configuration, execute script below. us... 阅读全文
posted @ 2013-02-20 11:44 AOT 阅读(299) 评论(0) 推荐(0) 编辑
摘要: sp_msforeachdb 'select ''?'' as DBName, count(*) as ObjectCount from ?.sys.objects' sp_msforeachtable 'select ''?'', count(*) from?' sp_msforeachtable 'update statistics ?' 阅读全文
posted @ 2013-02-19 14:37 AOT 阅读(118) 评论(0) 推荐(0) 编辑
摘要: We can use OBJECT_ID function to check whether the object exists in SQL Server db, for example, we can do some safety check, if exists, ignore the creation procedure. 1. Check the sp exists -- Sa... 阅读全文
posted @ 2013-02-18 16:47 AOT 阅读(400) 评论(0) 推荐(1) 编辑
摘要: Question: When running at Debug mode, the Debug.Assert(…) method should pop up a modal dialog by default, and this could stop current running. Solution: 1. All set to Release mode for source code, ... 阅读全文
posted @ 2013-02-06 17:52 AOT 阅读(369) 评论(0) 推荐(0) 编辑
摘要: Characters to Avoid in Directories and Filenames http://www.mtu.edu/umc/services/web/resources/cms/characters-to-avoid.html Do not use any of these common illegal characters: ... 阅读全文
posted @ 2013-02-05 15:41 AOT 阅读(163) 评论(0) 推荐(0) 编辑
摘要: I got several questions asking what is the best way to run SSIS packages programmatically. One question is about running SSIS from a .NET 1.1 application (SSIS uses .NET 2.0). Another about running pa... 阅读全文
posted @ 2013-02-01 17:28 AOT 阅读(361) 评论(0) 推荐(0) 编辑
摘要: Problem One of the Junior SQL Server Developers in my company approached me yesterday with a dilemma. He was developing an SSIS Package which imports data from a comma separated text file and he... 阅读全文
posted @ 2013-02-01 17:27 AOT 阅读(320) 评论(0) 推荐(0) 编辑
摘要: This step-by-step article describes how to spawn a process that runs under the context of the impersonated user in Microsoft ASP.NET pages. To spawn a process that runs under the context of the impers... 阅读全文
posted @ 2013-02-01 17:25 AOT 阅读(264) 评论(0) 推荐(0) 编辑