摘要: if( OBJECT_ID('tempdb..#t1') is not null) drop table #t1 create table #t1 (id int ) raiserror('1',16,1) print @@error insert into #t1(id) values(2) print @@error result : Msg 50000, Level 16, State... 阅读全文
posted @ 2010-11-11 17:45 netfuns 阅读(131) 评论(0) 推荐(0)
摘要: 1. openrowset condition : sp_configure 'show advanced options', 1 reconfigure go sp_configure 'Ad Hoc Distributed Queries',1 reconfigure go sample: SELECT a.* FROM OPENROWSET('SQLNCLI', 'Server=som... 阅读全文
posted @ 2010-11-11 17:16 netfuns 阅读(176) 评论(0) 推荐(0)
摘要: C:\Program Files\Microsoft SQL Server\100\COM\tablediff.exe -sourceserver srcserver -sourcedatabase lab -sourcetable src -destinationserver tarserver -destinationdatabase lab -destinationtable tar -et... 阅读全文
posted @ 2010-11-08 14:48 netfuns 阅读(123) 评论(0) 推荐(0)
摘要: DECLARE @T varchar(max) SET @T = '<root> <Field FieldRowId="1000"> <Items> <Item Name="CODE"/> <Item Name="DATE"/> </Items> </Field> <Field FieldRow... 阅读全文
posted @ 2010-11-05 17:43 netfuns 阅读(144) 评论(0) 推荐(0)
摘要: public abstract class BaseClass { public string Prop1 { get; set; } private int BaseProp1 { get; set; } private int baseField1 = 0; private static int basePrivateField1 = 0; private int BasePrivateCal... 阅读全文
posted @ 2010-08-16 11:27 netfuns 阅读(189) 评论(0) 推荐(0)
摘要: Method1: use split function create proc PassArrayParamProc @parameter nvarchar(4000) as begin select 1 where '1' in (select value from dbo.Split(',',@parameter) ) end exec PassArrayParamProc '1,2... 阅读全文
posted @ 2010-08-13 17:27 netfuns 阅读(141) 评论(0) 推荐(0)
摘要: IF OBJECT_ID('dbo.Split') IS NOT NULL DROP FUNCTION dbo.Split;GOcreate FUNCTION dbo.Split(@pattern as char, @content AS nvarchar(max)) RETURNS @tb TABLE(id int identity(1,1) ,value nvarchar(max))ASbeg... 阅读全文
posted @ 2010-08-12 13:45 netfuns 阅读(167) 评论(0) 推荐(0)
摘要: 有时候发现剪贴板不能用。 解决方法: 1.kill rdpclip.exe 2.run rdpclip.exe 阅读全文
posted @ 2010-07-01 14:09 netfuns 阅读(208) 评论(0) 推荐(0)
摘要: Reflector 装到VS的插件的删除方法: 运行命令: Reflector VisualStudio.exe /uninstall 阅读全文
posted @ 2010-06-24 17:15 netfuns 阅读(109) 评论(0) 推荐(0)
摘要: 依赖注入。一种.net 的AOP 实现。 http://www.kuqin.com/dotnet/20080419/6979.html 阅读全文
posted @ 2010-06-23 16:24 netfuns 阅读(186) 评论(0) 推荐(0)