擷取當前資料庫中所有表的記錄數:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetRecordCountsForAllTables]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)drop procedure [dbo].[GetRecordCountsForAllTables]GOSET QUOTED_IDENTIFIER OFF GOSET ANSI_N
在.NET Data Access Architecture Guide一文中看到的幾種儲存ConnectionString的方法:In an application configuration file 優點:易部署,易編程式控制制,支援動態更新 缺點:安全性In a Universal Data Link (UDL) file (supported only by the OLE DB .NET Data Provider) 優點:標準方案
我們經常寫這樣的代碼:public class Class2 { private void InvokeTest() { Derive d = new Derive(); Test(d); } private void Test(Base b) { } } class Base { } class Derive : Base {
只是感興趣,真正的開發可不敢用這個下面的例子是從Jim Hugunin's 的blog裡看到的先要有IronPython,可以到IronPython的網站上下載http://ironpython.com/下載完後解壓縮,從命令列進入到IronPython目錄的bin目錄,執行IronpythonConsole.exe啟動Shell,然後逐行敲入代碼:>>> from System.Windows.Forms import *>>> from
擷取資料庫表的一些資訊:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetDatabaseSchemaInformation]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)drop procedure [dbo].[GetDatabaseSchemaInformation]GOSET QUOTED_IDENTIFIER OFFGOSET ANSI_NULL
在developer.*上看到一篇文章《What Is A Professional Programmer?》,討論了作為專業的程式員所應該具有的一些素質。文章的第一部分講了作者的經曆,我把這部分略去了。我沒有作逐字句的翻譯,刪減了一些內容,添加了一些自己的理解。撇開技術不談,作為一個“專業”的程式員,在coding之外,還有許多方面需要磨練。“專業”一詞的含義
The August 2004 issue of MSDN Magazine is now available online!http://msdn.microsoft.com/msdnmag/issues/04/08/default.aspx with the August installment of .NET Matters available