摘要: /*http://msdn.microsoft.com/en-us/library/bb399731.aspx*/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOUSE [master];GOIF EXISTS (SELECT * FROM sys.databases WHERE name = 'School') DROP DATABASE School;... 阅读全文
posted @ 2009-06-10 14:06 EagleFish(邢瑜琨) 阅读(2289) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-02-13 16:13 EagleFish(邢瑜琨) 阅读(4087) 评论(2) 推荐(0) 编辑
摘要: 虽然很简单,但毕竟是自己第一次按照web标准画的页面,呵呵。这是一个简单的两行三列的大表格布局。以后设计简单页面就可以“照方吃炒肉”了。代码如下:[代码] 阅读全文
posted @ 2008-12-08 17:07 EagleFish(邢瑜琨) 阅读(2961) 评论(3) 推荐(0) 编辑
摘要: 1.LINQ是C#3中最闪亮的部分,扩展方法、lambda表达式、匿名类型等新的语法基本上都是围绕着为LINQ服务而诞生的。搞清楚这些语法对我们熟悉和掌握LINQ非常有帮助。其中,lambda表达式其实就是匿名的delegate。自己写了一个很小的demo,用来体现普通代理、匿名方法代理以及lambda表达式之间的关系。[代码]由于C# 3的这些新特性都是对C#编译器的改进,并不涉及对IL的修改,... 阅读全文
posted @ 2008-10-16 10:09 EagleFish(邢瑜琨) 阅读(2647) 评论(0) 推荐(0) 编辑
摘要: 刚才不知怎么突然想到这个问题。先把C#中Random类的代码贴过来,回头好好看看:[代码] 阅读全文
posted @ 2008-10-16 10:08 EagleFish(邢瑜琨) 阅读(2666) 评论(0) 推荐(0) 编辑
摘要: 自己没有用C++做过开发,一直是用C#,Java这类OO语言或者JS,shell之类的脚本语言。所以偶尔想写一些C++的代码,还挺困难。1.如何访问一个二维数组[代码] 2.函数指针的声明与使用[代码]3.文件读写(下面这段示例代码中读写具在)[代码] 阅读全文
posted @ 2008-10-15 12:58 EagleFish(邢瑜琨) 阅读(1358) 评论(0) 推荐(0) 编辑
摘要: 如标题所示,作为资料备查 阅读全文
posted @ 2008-10-13 15:27 EagleFish(邢瑜琨) 阅读(857) 评论(0) 推荐(0) 编辑
摘要: Trace Related Issues in C# 阅读全文
posted @ 2008-08-01 18:04 EagleFish(邢瑜琨) 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 1.When you use stored procedures with only static SQL, users do not need direct permissions to access the tables, only permissions to execute the stored procedures, and thus you can use the stored pro... 阅读全文
posted @ 2008-05-29 01:44 EagleFish(邢瑜琨) 阅读(372) 评论(0) 推荐(0) 编辑
摘要: Today, when I tried to Alter a function in my database, I got the error info in the title. Then I tried some example function operations, and found the reason: Inline table-value function and Multi-St... 阅读全文
posted @ 2008-05-21 08:06 EagleFish(邢瑜琨) 阅读(6443) 评论(1) 推荐(0) 编辑
摘要: When we look into a query plan, in a Seek Operation Node, we couldcan find 2 Properties: Predicate and Seek Predicate.Before I was really not clear about them, and today I read the bellow info: SQL Se... 阅读全文
posted @ 2008-05-17 08:11 EagleFish(邢瑜琨) 阅读(922) 评论(0) 推荐(0) 编辑
摘要: Sometimes you want to detect whether a service is running, and if not, you want to run it. Here is what you can do for the Sql Server Agent Service:EXEC master.dbo.xp_ServiceControl 'QUERYSTATE','SQLS... 阅读全文
posted @ 2008-05-01 09:38 EagleFish(邢瑜琨) 阅读(430) 评论(0) 推荐(0) 编辑
摘要: How to run a dos command from your C# code without showing a console window? Here is some code Icopy from http://www.neeao.com/blog/article-3341.htmlI have used it in my project, it works./**////<s... 阅读全文
posted @ 2008-04-20 05:18 EagleFish(邢瑜琨) 阅读(487) 评论(0) 推荐(0) 编辑
摘要: The conclusion about how to use "insert" in t-sql. 阅读全文
posted @ 2008-04-12 02:30 EagleFish(邢瑜琨) 阅读(402) 评论(2) 推荐(0) 编辑
摘要: describe the importance of the sequence of columns in an clustered index 阅读全文
posted @ 2008-04-09 10:16 EagleFish(邢瑜琨) 阅读(422) 评论(2) 推荐(0) 编辑
摘要: Record a long script I wrote today(OK, I know it doesn't have much relationship with the title ^_^). 阅读全文
posted @ 2008-04-09 09:33 EagleFish(邢瑜琨) 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: 自己对一个典型的bulk insert formatFile格式进行了注释. 阅读全文
posted @ 2008-03-30 07:04 EagleFish(邢瑜琨) 阅读(2050) 评论(0) 推荐(0) 编辑
摘要: 今天产品线的一个同事过来,说在某台数据库服务器上有两个job似乎是死在那里了,几个小时了,看状态一直是Executing。这种Debug的事情肯定轮不到我这样的新手,但我站在manager的身后,大概学习了一下他的排查过程。 阅读全文
posted @ 2008-03-27 10:20 EagleFish(邢瑜琨) 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 自己的常用技术资源集散地 阅读全文
posted @ 2008-01-24 11:07 EagleFish(邢瑜琨) 阅读(727) 评论(0) 推荐(0) 编辑
摘要: WCF,using keyword 阅读全文
posted @ 2007-12-22 10:26 EagleFish(邢瑜琨) 阅读(1341) 评论(0) 推荐(0) 编辑