2009-10-01ãã1ã¶æéã®è¨äºä¸è¦§
SQL Server ã§ã¯ããã¬ã¼ã¹ ãã©ã° 1204 ãå©ç¨ããã¨ããããããã¯ã®ç¶æ³ãç£è¦ãããã¨ãã§ãã¾ãããã¬ã¼ã¹ ãã©ã° 1204 ã¯ãSQL Server ã®èµ·åãªãã·ã§ã³ã§æå¹ã«ãããã次ã®ããã« DBCC TRACEON ã³ãã³ãã§æå¹åã§ãã¾ãã DBCC TRACEON (1204,-1) â¦
SQL Server ã§ã¯ããããã¡ã¤ã©ï¼SQL Server Profilerï¼ã® Lock:DeadLock 㨠Lock:DeadLock Chain ã¤ãã³ãã¯ã©ã¹ãå©ç¨ããã¨ããããããã¯ã®ç¶æ³ãç£è¦ãããã¨ãã§ãã¾ããLock:DeadLock ã¯ãããããã¯çºçæãLock:DeadLock Chain ã¯ãããããã¯ã«é¢â¦
SQL Server 2005 以éã§ã¯ããããã¡ã¤ã©ï¼SQL Server Profilerï¼ã® DeadLock Graph ã¤ãã³ãã¯ã©ã¹ãå©ç¨ããã¨ãã°ã©ãã£ã«ã«ã«ãããããã¯ã®ç¶æ³ãç£è¦ã§ããã®ã§å¤§å¤ä¾¿å©ã§ãã ãããããã¯ã®ç ç²è ï¼ãã¼ã«ããã¯ãããå´ï¼ã®ããã»ã¹ã«ã¯ à ãä»ãã¾â¦
SQL Server 2008 R2 ã§æä¾ããã Microsoft SQL Server PowerPivot for Excel 2010 CTP2ï¼éçºã³ã¼ãå Geminiï¼ãã¡ãã£ã¨è§¦ã£ã¦ã¿ã¾ãããPowerPivot ã¨ããåã®ã¨ããããããã ãã¼ãã«ã®è¶ é²åçã§ãã¨ã£ã¦ã便å©ã§ãï¼ ãããããªãã¼ã¿ã½ã¼ã¹ãããâ¦
SQL Server ã§ãããããã¯ãç£è¦ããã«ã¯ã次㮠3ã¤ã®æ¹æ³ãããã¾ãã SQL Server Profiler ã® DeadLock Graph ã¤ãã³ãã¯ã©ã¹ãå©ç¨ SQL Server Profiler ã® Lock:DeadLock 㨠Lock:DeadLock Chain ã¤ãã³ãã¯ã©ã¹ãå©ç¨ ãã¬ã¼ã¹ ãã©ã° 1204 ãå©ç¨ SQLâ¦
SQL Server 2000 ã® DTSï¼ãã¼ã¿å¤æãµã¼ãã¹ï¼ããã±ã¼ã¸ãã¾ã¨ãã¦æ§é åã¹ãã¬ã¼ã¸ ãã¡ã¤ã«ï¼.dtsï¼ã¨ãã¦ä¿åããã«ã¯ãWSHï¼VBScriptï¼ã使ã£ã¦ã次ã®ããã«è¨è¿°ãã¾ãã Const DTSSQLStgFlag_UseTrustedConnection=256 Set cn = WScript.CreateObjectâ¦
SQL Server 2008 ã®ééçãªãã¼ã¿æå·åï¼TDEï¼ãè¨å®ãããã¼ã¿ãã¼ã¹ã®ããã¯ã¢ããã¯ãç°¡åã«ã¯ãªã¹ãã¢ã§ããªãããã«ãªã£ã¦ãã¾ããããã¯ãããã¯ã¢ãã ãã¡ã¤ã«ã mdf ãã¡ã¤ã«ãæã¡åºãããï¼çã¾ããï¼ãã¨ãæ³å®ãã¦ããããã§ãï¼ä¸èº«ãç°¡åã«â¦
SQL Server 2008 ããã¯ãééçãªãã¼ã¿æå·åï¼TDEï¼Transparent Data Encryptionï¼æ©è½ãå©ç¨ãã¦ããã¼ã¿ãã¼ã¹å ¨ä½ãæå·åãããã¨ãã§ããããã«ãªã£ã¦ãã¾ããSQL Server 2005 ã§æä¾ããã¦ãã EncryptByKey 㨠DecryptByKey ãå©ç¨ããæå·åæ©è½â¦
SQL Server 2005 以éã® EncryptByKey é¢æ°ã§ã¯ããã¼ã¿ãã¼ã¹ ãã¹ã¿ã¼ ãã¼ï¼ã¨è¨¼ææ¸ã対称ãã¼ï¼ãå©ç¨ãã¦æå·åãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã -- ãã°ã¤ã³ ã¢ã«ã¦ã³ãä½æï¼user1ï¼ USE master CREATE LOGIN user1 WITH PASSWORD â¦
SQL Server 2005 以éã® EncryptByKey é¢æ°ã§ã¯ã証ææ¸ï¼ã¨å¯¾ç§°ãã¼ï¼ãå©ç¨ãã¦æå·åãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã -- ãã°ã¤ã³ ã¢ã«ã¦ã³ãä½æï¼user1ï¼ USE master CREATE LOGIN user1 WITH PASSWORD = 'P@ssword' -- ãã¼ã¿ãã¼ã¹â¦
SQL Server 2005ï¼2008 ã§ã¯ãEXECUTE AS LOGIN ãå©ç¨ãã¦ãã»ãã®ãã°ã¤ã³ ã¢ã«ã¦ã³ãã§ã®ãã°ã¤ã³ãã·ãã¥ã¬ã¼ããããã¨ãã§ãã¾ããããã¯ã»ãã¥ãªãã£è¨å®ãªã©ã確èªããå ´åã«å½¹ç«ã¡ã¾ããEXECUTE AS LOGIN ã¯ã次ã®ããã«å©ç¨ãã¾ãã -- user1 ã§ã®â¦
SQL Server 2005 以éã§ã¯ãEncryptByKey é¢æ°ãå©ç¨ãã¦ãé対称ãã¼ï¼RSA 512bitï¼1024bitï¼2048bitï¼ã§æå·åãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã -- ãã¼ãã«ã®ä½æ CREATE TABLE ãã¹ã1 ( id int IDENTITY(1, 1) ,ClearText nvarchar(10â¦
SQL Server 2005 以éã§ã¯ãEncryptByKey é¢æ°ãå©ç¨ãã¦ã対称ãã¼ï¼AES ã 3DESãRC4ï¼ã§æå·åãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã -- ãã¼ãã«ã®ä½æ CREATE TABLE ãã¹ã1 ( id int IDENTITY(1, 1) ,ClearText nvarchar(100) ,EncryptDatâ¦
SQL Server 2005 以éã§ã¯ãEncryptByPassPhrase é¢æ°ãå©ç¨ãã¦ããã¹ãã¬ã¼ãºã§æå·åãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã DECLARE @a nvarchar(500) DECLARE @b varbinary(max) SET @a = N'æå·åãããæåå' SET @b = EncryptByPassPhraâ¦
SQL Server ã§ã¯ããªã³ã¯ ãµã¼ãã¼ãå©ç¨ã㦠Excel 2007 ã®ãã¡ã¤ã«ï¼.xlsx ãã¡ã¤ã«ï¼ãåç §ãããã¨ãã§ãã¾ãããã®å ´åã¯ãä¸è¨ãµã¤ãããã2007 Office system ãã©ã¤ããããã¦ã³ãã¼ããã¦ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã2007 Office system ãã©ã¤ã:â¦
SQL Server ã§ã¯ããªã³ã¯ ãµã¼ãã¼ãå©ç¨ã㦠Access 2007 ã®ãã¼ã¿ãã¼ã¹ï¼.accdb ãã¡ã¤ã«ï¼ãåç §ãããã¨ãã§ãã¾ãããã®å ´åã¯ãä¸è¨ãµã¤ãããã2007 Office system ãã©ã¤ããããã¦ã³ãã¼ããã¦ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã2007 Office system ãâ¦
SQL Server ã§ã¯ããªã³ã¯ ãµã¼ãã¼ãå©ç¨ã㦠Excel 2003 ã®ãã¡ã¤ã«ï¼.xls ãã¡ã¤ã«ï¼ãåç §ãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã -- ãªã³ã¯ãµã¼ãã¼ã Shohin.xls ãã¡ã¤ã«ã«å¯¾ãã¦ä½æ USE master EXEC sp_addlinkedserver @server = N'EXCEâ¦
SQL Server ã§ã¯ããªã³ã¯ ãµã¼ãã¼ãå©ç¨ã㦠Accessï¼.mdb ãã¡ã¤ã«ï¼ã®ãã¼ã¿ãã¼ã¹ãåç §ãããã¨ãã§ãã¾ãããªã³ã¯ãµã¼ãã¼ã®ä½æã§ã¯ããããã¤ãã«ãMicrosoft.Jet.OLEDB.4.0ããæå®ãã¦ã次ã®ããã«è¨è¿°ãã¾ãã -- ãªã³ã¯ãµã¼ãã¼ã Northwind.mdbâ¦
SQL Server ã§ã¯ããªã³ã¯ ãµã¼ãã¼ãå©ç¨ã㦠Oracle ãã¼ã¿ãã¼ã¹ã®ãã¼ã¿ãåç §ãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã -- ãªã³ã¯ãµã¼ãã¼ã ORCL ã¨ããããããµã¼ãã¹åã® Oracle 9i ã«å¯¾ãã¦è¨å® USE master EXEC sp_addlinkedserver @serveâ¦
SQL Server ã§ã¯ããªã³ã¯ ãµã¼ãã¼ãå©ç¨ããã¨ããªã¢ã¼ã SQL Server ã®ãã¼ã¿ãç°¡åã«åç §ãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã -- ãªã³ã¯ãµã¼ãã¼ã POWER ã¨ããååã® SQL Server ã«å¯¾ãã¦è¨å® USE master EXEC sp_addlinkedserver @serveâ¦
SQL Server ã§ã¯ãOPENROWSET é¢æ°ãå©ç¨ããã¨ãExcel 2007 ã®ãã¡ã¤ã«ï¼.xlsx ãã¡ã¤ã«ï¼ãåç §ãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ããããã¯å©ç¨ããã«ã¯ãä¸è¨ãµã¤ãããã2007 Office system ãã©ã¤ããããã¦ã³ãã¼ããã¦ãã¤ã³ã¹ãã¼ã«ãâ¦
SQL Server ã§ã¯ãOPENROWSET é¢æ°ãå©ç¨ããã¨ãAccess 2007 ã®ãã¼ã¿ãåç §ãããã¨ãã§ãã¾ããããã¯å©ç¨ããã«ã¯ãä¸è¨ãµã¤ãããã2007 Office system ãã©ã¤ããããã¦ã³ãã¼ããã¦ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã 2007 Office system ãã©ã¤ã: ãã¼ã¿â¦
SQL Server ã§ã¯ãOPENROWSET é¢æ°ãå©ç¨ããã¨ãOracle ãã¼ã¿ãã¼ã¹ã®ãã¼ã¿ãåç §ãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã -- ã¢ããã㯠ã¯ã¨ãªã®æå¹å EXEC sp_configure 'show advanced options', 1 RECONFIGURE EXEC sp_configure 'Ad Hocâ¦
SQL Server ã§ã¯ãOPENROWSET é¢æ°ãå©ç¨ããã¨ãExcel 2003 ã®ãã¡ã¤ã«ï¼.xls ãã¡ã¤ã«ï¼ãåç §ãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã -- ã¢ããã㯠ã¯ã¨ãªã®æå¹å EXEC sp_configure 'show advanced options', 1 RECONFIGURE EXEC sp_configâ¦
SQL Server ã§ã¯ãOPENROWSET é¢æ°ãå©ç¨ããã¨ãAccess ã®ãã¼ã¿ãåç §ãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã -- ã¢ããã㯠ã¯ã¨ãªã®æå¹å EXEC sp_configure 'show advanced options', 1 RECONFIGURE EXEC sp_configure 'Ad Hoc Distributedâ¦
SQL Server ã§ã¯ãOPENROWSET é¢æ°ãå©ç¨ããã¨ããªã¢ã¼ã SQL Server ã®ãã¼ã¿ãç°¡åã«åç §ãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã -- ã¢ããã㯠ã¯ã¨ãªã®æå¹å EXEC sp_configure 'show advanced options', 1 RECONFIGURE EXEC sp_configure â¦
SQL Server 㧠tempdb ãé ç½®ããéã®ãã¤ã³ãã¯ã次ã®ã¨ããã§ãã tempdb ã®ãµã¤ãºã大ããè¨å®ãã¦ãã tempdb ã®èªå縮å°ã¯å©ç¨ããªã ã¦ã¼ã¶ã¼ ãã¼ã¿ãã¼ã¹ã¨ã¯ç°ãªã RAID ã»ããã¸é ç½®ããï¼ããã«ãä½è£ãããå ´å㯠tempdb ã®ãã¼ã¿ ãã¡ã¤ã«ã¨ãâ¦
SQL Server 㧠tempdb ã®å ´æã移åãã¦ããµã¤ãºãå¤æ´ããã«ã¯ã次ã®ããã« ALTER DATABASE ã¹ãã¼ãã¡ã³ããå®è¡ãã¾ãã ALTER DATABASE tempdb MODIFY FILE ( NAME=tempdev ,FILENAME='E:\tempdb.mdf' ,SIZE=1024MB) ALTER DATABASE tempdb MODIFY FILE â¦
SQL Server 㧠tempdb ã®ãµã¤ãºã大ããè¨å®ãããã¦ãã¾ã£ã¦ãå°ããå¤ã«æ»ãããå ´åã¯ã次ã®ããã« DBCC SHRINKFILE ã³ãã³ãã使ãã¾ãã USE tempdb DBCC SHRINKFILE(tempdev, 100) DBCC SHRINKFILE(templog, 100) ãã®ä¾ã§ã¯ããã¼ã¿ ãã¡ã¤ã«ï¼tempdeâ¦
ç°ãªã SQL Server éã§ãåã SID ãæã£ã SQL Server èªè¨¼ç¨ãã°ã¤ã³ã¢ã«ã¦ã³ããä½æããã«ã¯ããµãã¼ãæè¡æ å ±ï¼KBï¼ã® 918992 ã§æä¾ããããsp_help_revloginãã¹ãã¢ãããã·ã¼ã¸ã£ã使ç¨ãã¾ãã SQL Server 2005 ã®ã¤ã³ã¹ã¿ã³ã¹éã§ãã°ã¤ã³ããâ¦