<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_董晓涛(David Dong)</title><subtitle type="text"/><id>http://feed.cnblogs.com/blog/u/7920/rss</id><updated>2010-06-23T06:30:21Z</updated><author><name>董晓涛</name><uri>http://www.cnblogs.com/net2004/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/net2004/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/7920/rss"/><entry><id>http://www.cnblogs.com/net2004/archive/2005/08/03/206370.html</id><title type="text">如何将存储过程执行后的结果集放入临时表</title><summary type="text">--when you don’t know the structure that the store procedure generates:CREATE TABLE ##1(ID1 INT)CREATE TABLE ##2(ID1 INT)INSERT ##1SELECT 1CREATE PROC UP_TESTAS BEGINSELECT * FROM ##1ENDINSERT I...</summary><published>2005-08-03T02:44:00Z</published><updated>2005-08-03T02:44:00Z</updated><author><name>董晓涛</name><uri>http://www.cnblogs.com/net2004/</uri></author><link rel="alternate" href="http://www.cnblogs.com/net2004/archive/2005/08/03/206370.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/net2004/archive/2005/08/03/206370.html"/><content type="text">--when you don’t know the structure that the store procedure generates:CREATE TABLE ##1(ID1 INT)CREATE TABLE ##2(ID1 INT)INSERT ##1SELECT 1CREATE PROC UP_TESTAS BEGINSELECT * FROM ##1ENDINSERT I...</content></entry><entry><id>http://www.cnblogs.com/net2004/archive/2005/07/29/202968.html</id><title type="text">Detect SQL timeout from ASP &amp; Issue RollbackTrans </title><summary type="text">Detect SQL timeout from ASP &amp; Issue RollbackTransI developed an application that worked fine in development and single user testing, but when multiple users starting using the application, I ran i...</summary><published>2005-07-29T09:12:00Z</published><updated>2005-07-29T09:12:00Z</updated><author><name>董晓涛</name><uri>http://www.cnblogs.com/net2004/</uri></author><link rel="alternate" href="http://www.cnblogs.com/net2004/archive/2005/07/29/202968.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/net2004/archive/2005/07/29/202968.html"/><content type="text">Detect SQL timeout from ASP &amp; Issue RollbackTransI developed an application that worked fine in development and single user testing, but when multiple users starting using the application, I ran i...</content></entry><entry><id>http://www.cnblogs.com/net2004/archive/2005/07/29/202864.html</id><title type="text">SQL Server 2005 symmetric encrytion sample</title><summary type="text">DROP DATABASE DEMO;GOCREATE DATABASE DEMO;GOUSE DEMO;GO--the database master key is always encrypted (using triple_DES) with user-supplier password--stored in the sys.symmetric_keys; and at the same t...</summary><published>2005-07-29T07:18:00Z</published><updated>2005-07-29T07:18:00Z</updated><author><name>董晓涛</name><uri>http://www.cnblogs.com/net2004/</uri></author><link rel="alternate" href="http://www.cnblogs.com/net2004/archive/2005/07/29/202864.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/net2004/archive/2005/07/29/202864.html"/><content type="text">DROP DATABASE DEMO;GOCREATE DATABASE DEMO;GOUSE DEMO;GO--the database master key is always encrypted (using triple_DES) with user-supplier password--stored in the sys.symmetric_keys; and at the same t...</content></entry><entry><id>http://www.cnblogs.com/net2004/archive/2005/07/29/202859.html</id><title type="text">如何解决：Error 14274: 无法添加、更新或删除从MSX服务器上发起的作业.</title><summary type="text">刚才在QA环境创建SQL replication 的时候报错，大致如下：Error 14274: 无法添加、更新或删除从MSX服务器上发起的作业.导致Replication不能够成功，如按如下角本解决：For example:tsql02\d2shp01SP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDE GO use msdb;gobe...</summary><published>2005-07-29T07:15:00Z</published><updated>2005-07-29T07:15:00Z</updated><author><name>董晓涛</name><uri>http://www.cnblogs.com/net2004/</uri></author><link rel="alternate" href="http://www.cnblogs.com/net2004/archive/2005/07/29/202859.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/net2004/archive/2005/07/29/202859.html"/><content type="text">刚才在QA环境创建SQL replication 的时候报错，大致如下：Error 14274: 无法添加、更新或删除从MSX服务器上发起的作业.导致Replication不能够成功，如按如下角本解决：For example:tsql02\d2shp01SP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDE GO use msdb;gobe...</content></entry><entry><id>http://www.cnblogs.com/net2004/archive/2005/07/22/198136.html</id><title type="text">Useful Links(to Learn SQL Server)</title><summary type="text">Useful LinksMicrosoft Related Resource Linkswww.microsoft.com/sql - SQL Server Home Pagewww.microsoft.com/sql/community - SQL Server Community Pagewww.microsoft.com/sql/community/newsgroups - SQL Serv...</summary><published>2005-07-22T08:02:00Z</published><updated>2005-07-22T08:02:00Z</updated><author><name>董晓涛</name><uri>http://www.cnblogs.com/net2004/</uri></author><link rel="alternate" href="http://www.cnblogs.com/net2004/archive/2005/07/22/198136.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/net2004/archive/2005/07/22/198136.html"/><content type="text">Useful LinksMicrosoft Related Resource Linkswww.microsoft.com/sql - SQL Server Home Pagewww.microsoft.com/sql/community - SQL Server Community Pagewww.microsoft.com/sql/community/newsgroups - SQL Serv...</content></entry><entry><id>http://www.cnblogs.com/net2004/archive/2005/06/29/183526.html</id><title type="text">Encrypting Data With the SQL Server Encrypt Function</title><summary type="text">Encrypting Data With the SQL Server Encrypt Function A common question I'm asked by clients is how to encrypt data and store it in SQL Server. One of the major problems I see in the field is when peop...</summary><published>2005-06-29T12:09:00Z</published><updated>2005-06-29T12:09:00Z</updated><author><name>董晓涛</name><uri>http://www.cnblogs.com/net2004/</uri></author><link rel="alternate" href="http://www.cnblogs.com/net2004/archive/2005/06/29/183526.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/net2004/archive/2005/06/29/183526.html"/><content type="text">Encrypting Data With the SQL Server Encrypt Function A common question I'm asked by clients is how to encrypt data and store it in SQL Server. One of the major problems I see in the field is when peop...</content></entry><entry><id>http://www.cnblogs.com/net2004/archive/2005/06/29/183256.html</id><title type="text">Convert IP To Numberic</title><summary type="text">-- This script converts string-based IP addresses to their numericequivalents so that it is easy to do arithmatic on them such as find anIP address that is within a range.-- -- NOTE: This function cal...</summary><published>2005-06-29T04:24:00Z</published><updated>2005-06-29T04:24:00Z</updated><author><name>董晓涛</name><uri>http://www.cnblogs.com/net2004/</uri></author><link rel="alternate" href="http://www.cnblogs.com/net2004/archive/2005/06/29/183256.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/net2004/archive/2005/06/29/183256.html"/><content type="text">-- This script converts string-based IP addresses to their numericequivalents so that it is easy to do arithmatic on them such as find anIP address that is within a range.-- -- NOTE: This function cal...</content></entry><entry><id>http://www.cnblogs.com/net2004/archive/2005/06/29/183252.html</id><title type="text">Generate table structure</title><summary type="text">-- ----exec Up_ExportTables 'Customers'-- When you want to export a table structure to T-SQL, everyone alwayspoints you to Enterprise Manager, or a script that calls BCP.-- Sometimes, a developer eith...</summary><published>2005-06-29T04:21:00Z</published><updated>2005-06-29T04:21:00Z</updated><author><name>董晓涛</name><uri>http://www.cnblogs.com/net2004/</uri></author><link rel="alternate" href="http://www.cnblogs.com/net2004/archive/2005/06/29/183252.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/net2004/archive/2005/06/29/183252.html"/><content type="text">-- ----exec Up_ExportTables 'Customers'-- When you want to export a table structure to T-SQL, everyone alwayspoints you to Enterprise Manager, or a script that calls BCP.-- Sometimes, a developer eith...</content></entry><entry><id>http://www.cnblogs.com/net2004/archive/2005/06/29/183248.html</id><title type="text">Generate Time Dim</title><summary type="text">CREATE TABLE [dbo].[DateDim] ( [DateKey] [int] IDENTITY (1, 1) NOT NULL , [ActualDate] [datetime] NOT NULL , [Year] [int] NOT NULL , [Quarter] [int] NOT NULL , [Month] [int] NOT NULL , [Week] [int] NO...</summary><published>2005-06-29T04:17:00Z</published><updated>2005-06-29T04:17:00Z</updated><author><name>董晓涛</name><uri>http://www.cnblogs.com/net2004/</uri></author><link rel="alternate" href="http://www.cnblogs.com/net2004/archive/2005/06/29/183248.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/net2004/archive/2005/06/29/183248.html"/><content type="text">CREATE TABLE [dbo].[DateDim] ( [DateKey] [int] IDENTITY (1, 1) NOT NULL , [ActualDate] [datetime] NOT NULL , [Year] [int] NOT NULL , [Quarter] [int] NOT NULL , [Month] [int] NOT NULL , [Week] [int] NO...</content></entry><entry><id>http://www.cnblogs.com/net2004/archive/2005/06/29/183246.html</id><title type="text">Generate Insert data script on a table.</title><summary type="text">SET NOCOUNT ONGOuse pubs; --EXEC sp_generate_inserts 'David01' ,@from="from David01 where A='a1'"PRINT 'Using Master database'USE masterGOPRINT 'Checking for the existence of this procedure'IF (SELE...</summary><published>2005-06-29T04:16:00Z</published><updated>2005-06-29T04:16:00Z</updated><author><name>董晓涛</name><uri>http://www.cnblogs.com/net2004/</uri></author><link rel="alternate" href="http://www.cnblogs.com/net2004/archive/2005/06/29/183246.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/net2004/archive/2005/06/29/183246.html"/><content type="text">SET NOCOUNT ONGOuse pubs; --EXEC sp_generate_inserts 'David01' ,@from="from David01 where A='a1'"PRINT 'Using Master database'USE masterGOPRINT 'Checking for the existence of this procedure'IF (SELE...</content></entry></feed>
