2009-01-01ãã1å¹´éã®è¨äºä¸è¦§
SQL Server 2000 㨠SQL Server 2008 ã®ãã¼ã«ï¼ã¡ãã¥ã¼æ§æï¼ãæ¯è¼ããã¨ã次ã®ããã«ãªãã¾ããSQL Server 2000 ã®ã¡ãã¥ã¼ SQL Server 2000 ã®ãã¼ã«ï¼Enterprise Manager ãã¯ã¨ãª ã¢ãã©ã¤ã¶ããµã¼ãã¹ ããã¼ã¸ã£ãªã©ï¼ã¯ãSQL Server 2005 以éããâ¦
SQL Server 2000 ãã SQL Server 2008 ã¸ãã¼ã¿ãã¼ã¹ã移è¡ããéã«ã¯ãã·ã¹ãã ãã¼ã¿ãã¼ã¹ã«æ ¼ç´ããã¦ããæ å ±ãææ¡ãã¦ããå¿ è¦ãããã¾ããSQL Server 2000 ã®ã·ã¹ãã ãã¼ã¿ãã¼ã¹ã«ã¯ãmasterãmsdbãmodelãtempdbãdistribution ã® 5ã¤ãããâ¦
SQL Server ã®ããã¯ã¢ããï¼å¾©å ããã³ãã¿ããï¼ã¢ã¿ããæ©è½ã§ç§»è¡ï¼å¥ãµã¼ãã¼ã¸è¤è£½ï¼ã§ããã®ã¯ããã¼ã¿ãã¼ã¹å ã«å«ã¾ãããªãã¸ã§ã¯ãã§ããã¼ãã«ãå¶ç´ãã¤ã³ããã¯ã¹ãããªã¬ããã¥ã¼ããªãã¸ã§ã¯ã権éããã¼ã¿ãã¼ã¹ ã¦ã¼ã¶ã¼ãªã©ã§ãã移è¡ï¼â¦
SQL Server 2008 ã§ãããã¯ã¢ãããã復å ãããã¼ã¿ãã¼ã¹ããã¢ã¿ãããããã¼ã¿ãã¼ã¹ã§ã¯ããã¼ã¿ãã¼ã¹ ãã¤ã¢ã°ã©ã ã®è¡¨ç¤ºæã«ã次ã®ããã«ããã¼ã¿ãã¼ã¹ã®æå¹ãªææè ãããªããã¨ãã主æ¨ã®ã¨ã©ã¼ãçºçããå ´åãããã¾ãã ãã®ã¨ã©ã¼ã¯ããã¼â¦
SQL Server 2008 ã«ã¯ãé常ã«å¤ãã®æ°æ©è½ãæè¼ããã¦ããã®ã§ããããæ§ãã¼ã¸ã§ã³ãã SQL Server 2008 ã¸ç§»è¡ï¼ã¢ããã°ã¬ã¼ãããã¡ãªããã® 1ã¤ã§ããSQL Server 2008 ã®ä¸»ãªæ°æ©è½ã¯æ¬¡ã®ã¨ããã§ãã ã¤ã³ããªã»ã³ã¹ã«ããå ¥åè£å®æ©è½ æ°ããæ¥ä»ãâ¦
æ§ãã¼ã¸ã§ã³ï¼SQL Server 2000 ã¾ã㯠SQL Server 2005ï¼ã SQL Server 2008 ã¸ç§»è¡ï¼ã¢ããã°ã¬ã¼ãããã¡ãªããã¯ã次ã®ã¨ããã§ãã ãã¼ã¿ ã¦ã§ã¢ãã¦ã¹ï¼ãã© ãã¤ãç´ã®å¤§è¦æ¨¡ãã¼ã¿ãã¼ã¹ï¼é¢é£æ©è½ã®å¤§å¹ å¼·å ã¹ã¿ã¼ ã¸ã§ã¤ã³ ããã©ã¼ãã³ã¹ã®åä¸â¦
SQL Server 2008 ã®ã¨ãã£ã·ã§ã³ãã¨ã«ã§ããæ©è½ï¼ã§ããªãæ©è½ã®ã質åãããããã ãã®ã§ããªã³ã©ã¤ã³ ããã¯ã¸ã®ãªã³ã¯ãæ²è¼ãã¦ããã¾ããSQL Server 2008 ã®åã¨ãã£ã·ã§ã³ããµãã¼ãããæ©è½ http://msdn.microsoft.com/ja-jp/library/cc645993.aspxâ¦
SQL Server ã§ã®ãã©ã³ã¶ã¯ã·ã§ã³ ãã°ã®å é¨åä½ã¯ããã¼ã¿ãã¼ã¹ã®ã復æ§ã¢ãã«ãã®è¨å®ã«ãã£ã¦å¤åãã¾ãã復æ§ã¢ãã«ã«ã¯ããå®å ¨ãããä¸æ¬ãã°ãããåç´ãã® 3種é¡ããããç¾å¨ã®å¾©æ§ã¢ãã«ã確èªï¼å¤æ´ããã«ã¯ã次ã®ããã«æä½ãã¦ããã¼ã¿ãã¼ã¹â¦
SQL Server ã§ã¯ããã§ãã¯ãã¤ã³ãã¯ãããã©ã«ãã§ã¯ãç´ 1åãã¨ï¼ãã©ã³ã¶ã¯ã·ã§ã³ã絶ããå®è¡ããã¦ããå ´åï¼ã«çºçãã¦ããã®ã§ããã®éï¼ãã§ãã¯ãã¤ã³ãã¨ãã§ãã¯ãã¤ã³ãã®éï¼ã«é害ï¼åé»ãªã©ï¼ãçºçãããã¨ãããå¾ã¾ããããã«ãããå®éâ¦
SQL Server ã§ãã§ãã¯ãã¤ã³ãï¼CHECKPOINTï¼ãçºçããã¿ã¤ãã³ã°ã¯ãSQL Server ã®æ§æãªãã·ã§ã³ã®ã復æ§ééãã®è¨å®ã«ãã£ã¦æ±ºã¾ãã¾ãããã®è¨å®ã¯ããªãã¸ã§ã¯ã ã¨ã¯ã¹ããã¼ã©ã§ããµã¼ãã¼åãå³ã¯ãªãã¯ãã¦ãï¼»ããããã£ï¼½ãã¯ãªãã¯ããï¼»ãã¼â¦
SQL Server ã§ã¯ããã©ã³ã¶ã¯ã·ã§ã³ ãã°ã®ãªã¹ãã¢æã¯ãæå»ãæå®ãã¦ãã¼ã¿ã復å ãããã¨ãã§ãã¾ãããããå©ç¨ãããã¨ã§ãç¹å®ã®æéã¾ã§ã®ãã¼ã¿ã¸å¾©å ãããã¨ãããã¨ãå®ç¾ã§ãã¾ãããããè¡ãã«ã¯ã次ã®ããã« STOPAT ãªãã·ã§ã³ãæå®ãã¦ãRâ¦
SQL Server ã§ããã¯ã¢ããããã®ãªã¹ãã¢ãè¡ãéã«ãè¤æ°ã®ããã¯ã¢ãã ãã¡ã¤ã«ãããå ´åã«ã¯ãã復æ§ç¶æ ããªãã·ã§ã³ã«æ³¨æããå¿ è¦ãããã¾ãããã®ãªãã·ã§ã³ã¯ã次ã®ããã«ãªã¹ãã¢æã®ï¼»ãã¼ã¿ãã¼ã¹ã®å¾©å ï¼½ãã¤ã¢ãã°ããè¨å®ã§ãã¾ãããã®ãªâ¦
ä»æ¥ã¯ãã©ã³ã¹ãã©ã¼ãã¼ ãªãã³ã¸ã® DVD ã®çºå£²æ¥ã ã£ãã®ã§ãç§èã®ã¨ããã·ã«ãã³ãã«ãã¼ããã¦ã¾ããï¼ æ ç»ã§è¦ã¦ãããã³ãã«ãã¼ãæ°ã«å ¥ã£ã¦ããã®ã§ãã¨ã£ã¦ãã©ããã¼ã§ããï¼ (^ã¼^)æ ç»ã®å 容ã¯ãã¨ã«ãã CG ãç¡è¶è¦è¶ã¹ã´ã¤ï¼ ã®ã²ã¨è¨ã§ãâ¦
SQL Server 2008 ã§å·®åããã¯ã¢ãããå®è¡ããã«ã¯ãMangement Studio ããã次ã®ããã«è©²å½ãã¼ã¿ãã¼ã¹ãå³ã¯ãªãã¯ãã¦ãï¼»ã¿ã¹ã¯ï¼½ã¡ãã¥ã¼ã®ï¼»ããã¯ã¢ããï¼½ãã¯ãªãã¯ãã¾ãã GUI æä½ã§ã¯ãªããSQL ã¹ãã¼ãã¡ã³ãã使ç¨ãã¦å·®åããã¯ã¢ãããå®â¦
SQL Server 2008 ã§ãã° ããã¯ã¢ãããå®è¡ããã«ã¯ãMangement Studio ããã次ã®ããã«è©²å½ãã¼ã¿ãã¼ã¹ãå³ã¯ãªãã¯ãã¦ãï¼»ã¿ã¹ã¯ï¼½ã¡ãã¥ã¼ã®ï¼»ããã¯ã¢ããï¼½ãã¯ãªãã¯ãã¾ãã GUI æä½ã§ã¯ãªããSQL ã¹ãã¼ãã¡ã³ãã使ç¨ãã¦ãã° ããã¯ã¢ãããâ¦
SQL Server ã®å®å ¨ããã¯ã¢ããï¼ãªã³ã©ã¤ã³ã§ã®ãã« ããã¯ã¢ããï¼ã§ã¯ããã¼ã¿ãã¼ã¹ã丸ãã¨ããã¯ã¢ããããå¿ è¦ãããã®ã§ããã¼ã¿ãã¼ã¹ã®ãµã¤ãºã大ããå ´åã«ã¯ãããã¯ã¢ããã«æéãããã£ã¦ãã¾ãã¾ããããã§ãããã¯ã¢ããæéãç縮ããããâ¦
SQL Server 2008 ã§ããã©ã³ã¶ã¯ã·ã§ã³ ãã°ã®ä½¿ç¨éã確èªããã«ã¯ã次ã®ããã« DBCC SQLPERF ã³ãã³ããå®è¡ãã¾ãã DBCC SQLPERF(LOGSPACE) ãªãããã¼ã¿ãã¼ã¹ ãã¡ã¤ã«ï¼.mdfï¼ã¾ãã¯ãã©ã³ã¶ã¯ã·ã§ã³ ãã° ãã¡ã¤ã«ï¼.ldfï¼ã®ãã¡ã¤ã« ãµã¤ãºã確èªãâ¦
æ¥é±ã® 12/22ï¼ç«ï¼ã« SQL Server 2008 R2 ã®ãã¬ãã¥ã¼ ã»ããã¼ï¼ç¡åï¼ãããã¾ãï¼ ã¾ã æ®å¸ãããã£ãããããããªã®ã§ãã¤ãã³ãã®ç»é²ã¯ãã¡ããããã²ã http://msevents.microsoft.com/cui/EventDetail.aspx?culture=ja-JP&EventID=1032433981&IO=Râ¦
SQL Server ã§ãã¡ã¤ã« ãµã¤ãºã縮å°ãããå ´åã«ã¯ DBCC SHRINKFILE ã³ãã³ãã次ã®ããã«å©ç¨ãã¾ãã DBCC SHRINKFILE(è«çå, 縮å°å¾ã®ãµã¤ãº) ãã£ã¹ã¯ãæºæ¯ã«ãªãããããµã¤ãºã大ãããªã£ã¦ãã¾ã£ãå ´åãªã©ã«ããã®ã³ãã³ããå©ç¨ãã¦ããã¼ã¿ãã¼â¦
SQL Server ã§ã¯ãããã©ã«ãã§ã¯ããã©ã³ã¶ã¯ã·ã§ã³ ãã°ã¯ããã¼ã ãã£ã¹ã¯ã®ç©ºã容éããªããªãã¾ã§ãã¾ãã¯ãã¡ã¤ã«ã®æ大ãµã¤ãºã«éããã¾ã§ãã©ãã©ãè¥å¤§åãç¶ãã¾ãããã£ã¹ã¯ã®ç©ºãé åããªããªã£ã¦ããã©ã³ã¶ã¯ã·ã§ã³ ãã°ãæºæ¯ã«ãªã£ãå ´åã«â¦
SQL Server 2008 ããã®æ°æ©è½ã§ãããããã¯ã¢ããå§ç¸®ããå©ç¨ããã«ã¯ãBACKUP ã¹ãã¼ãã¡ã³ãã§æ¬¡ã®ããã« COMPRESSION ãªãã·ã§ã³ãæå®ãã¾ãã BACKUP DATABASE sampleDB TO { DISK | TAPE } = 'ãã¹' WITH COMPRESSION Management Studio ããå®è¡ãâ¦
SQL Server 2008 ã®ãªã³ã©ã¤ã³ ããã¯ã¢ããã§ãããã¯ã¢ãã ãã¡ã¤ã«åã«ããã¯ã¢ãããå®è¡ããã¨ãã®æ¥ä»ã¨æå»ãå ¥ããã«ã¯ã次ã®ããã«ããã¯ã¢ãããå®è¡ãã¾ãã DECLARE @d datetime = GETDATE() DECLARE @d1 char(8) = CONVERT(char(8), @d, 112) â¦
å®å®¶ã®ç¶ã使ç¨ãã¦ãã BenQ ã®æ¶²æ¶ãã£ã¹ãã¬ã¤ï¼15ã¤ã³ãï¼ã 2å¹´ãããã§å£ãã¦ãã¾ã£ãã®ã§ã20ã¤ã³ãã®æ¶²æ¶ãã£ã¹ãã¬ã¤ã§ã1ä¸ã¡ãã£ã¨ã§è²·ãããã®ãæ¢ãã¦ããã¨ãã« NTT-X ã¹ãã¢ã§è³¼å ¥ããã®ã iiyama ã® ProLite E2008HDS-B1 ã§ãã iiyama ProLâ¦
SQL Server 2008 ã®èªç¿æ¸ã¨ã㦠Reporting Services ã®ãReport Builder 2.0 å®è·µãç·¨ãå·çãã¾ãããï¼ http://www.microsoft.com/japan/sqlserver/2008/self-learning/default.mspx200ãã¼ã¸è¶ãã®è¶ 大ä½ã§ããReport Builder 2.0 ã§ã¬ãã¼ããä½æããâ¦
SQL Server 2008 ã®èªç¿æ¸ã¨ãã¦ãAnalysis Services å¿ç¨ãç·¨ãå·çãã¾ãããï¼ http://www.microsoft.com/japan/sqlserver/2008/self-learning/default.mspxé常ã«ãè¦æã®å¤ãã£ã MDX ãå¿ç¨çãªãã¥ã¼ãã®ä½ææ¹æ³ï¼ä¸¦ã¹æ¿ããã°ã«ã¼ãåãæ¸å¼è¨å®ãªâ¦
SQL Server 2008 ã®èªç¿æ¸ã¨ãã¦ãSQL Server 2000ï¼2005 ãã SQL Server 2008 ã¸ã®ç§»è¡ã¨ã¢ããã°ã¬ã¼ãããå·çãã¾ãããï¼ 200ãã¼ã¸å¼±ã®è¶ 大ä½ã§ããSQL Server 2000 ãã SQL Server 2008 ã¸ã®ç§»è¡ï¼ã¢ããã°ã¬ã¼ãã§ã¯ã¾ããã¡ãªãããã¯ãç¶²ç¾ ãã¦â¦
SQL Server ã®ãªã³ã©ã¤ã³ ããã¯ã¢ããã¯ãSQL Server ãèµ·åããã¾ã¾ã®ç¶æ ã§ããã¯ã¢ãããåå¾ã§ããæ©è½ã§ããªãã©ã¤ã³ ããã¯ã¢ããã¨æ¯ã¹ã¦ã次ã®å©ç¹ãããã¾ãã SQL Server ãåæ¢ããå¿ è¦ããªã ãã©ã³ã¶ã¯ã·ã§ã³ ãã°ã®ããã¯ã¢ãããå®æå®è¡ãâ¦
SQL Server 2008 ã®ãªãã©ã¤ã³ï¼Offlineï¼ããã¯ã¢ããã®å©ç¹ã¨æ¬ ç¹ãã¾ã¨ããã¨æ¬¡ã®ããã«ãªãã¾ããâ å©ç¹ æä½ãç°¡å ã·ã¹ãã ãã¼ã¿ãã¼ã¹ã®ããã¯ã¢ããã«æé© ãã¼ãã¦ã§ã¢ ãªãã¬ã¤ã¹æã«æé© â æ¬ ç¹ SQL Server ãåæ¢ããªããã°ãªããªã ãã©ã³ã¶â¦
DB ãã¡ã¤ã«ãæ ¼ç´ããã¦ããã¹ãã¬ã¼ã¸ãæ éãããªã©ãã¦ãSQL Server 2008 ã DB ãã¡ã¤ã«ã¸ã¢ã¯ã»ã¹ã§ããªãå ´åã«ã¯ã次ã®ããã«ããã¡ã¤ã«ã«ã¢ã¯ã»ã¹ã§ããªãããã¡ã¢ãªã¾ãã¯ãã£ã¹ã¯é åãä¸è¶³ãã¦ããã®ã§ããã¼ã¿ãã¼ã¹ 'XXX' ãéãã¾ãããã¨è¡¨â¦
SQL Server 2008 ã§ã¯ãCREATE DATABASE .. FOR ATTACH ã¹ãã¼ãã¡ã³ããå©ç¨ãã¦ããã¼ã¿ãã¼ã¹ã®ã¢ã¿ãããè¡ããã¨ãã§ãã¾ãã USE master go CREATE DATABASE sampleDB ON ( FILENAME = N'C:\sampleDB.mdf' ), ( FILENAME = N'C:\sampleDB_log.LDF' ) Fâ¦