2009年2月24日星期二

February 25th Links: SQL SERVER,Design Pattern,Web

SQL SERVER
    T-SQL statement:
    SELECT name,physical_name AS current_file_location
    FROM sys.master_files
    T-SQL statement:
    SELECT *
    FROM sys.configurations
    Master database contains all the system level information of server.Information about all the login account, system configurations and information required to access all the other database are stored in Master Database.if the Master Database is damaged,it will be difficult to use any other database in SQL Server that makes it most important database in SQL Server.
    2) Exec sqlcmd command line:
        RESTORE DATABASE master FROM DISK='C\BackupLocation\master.bak' WITH                     REPLACE

Design Pattern
    Although enums aren't necessary a code smell for refactoring,they can definitely be a waring sign.Especially if u find yourself having to make changes in more than one place,in this case both the enum and the corresponding switch statement,each time that u wnat to add new functionality.If this sounds familiar to u,then it may be time to take a look at the strategy pattern for your own needs.

WEB

English
    1. Microsoft Certification Exam: 微软认证考试
    2. Polymorphism: 多态性
    3. Corresponding: 一致的,符合的

没有评论: