¾È±Ô °øºÎ¹æ

MS-SQL > databases - DB¸ñ·ÏÀ» »Ì¾Æº¸ÀÚ

µî·ÏÀÏ : 2017-07-03 19:54 Á¶È¸¼ö : 52,778

DB ¸ñ·Ï º¸±â
¸ñ·ÏÁß¿¡ ½Ã½ºÅÛ µ¥ÀÌÅͺ£À̽º´Â Á¦¿Ü½ÃÅ°±â

2000¿¡¼­´Â sysdatabases
2005¿¡¼­´Â sys.database 2005¿¡¼­ sysdatabases µµ »ç¿ëµÇÁö¸¸
sysdatabases´Â ´ÜÁö ÀÌÀü ¹öÀü°ú È£¿ÏÀ» À§ÇØ ¸¸µé¾î ³õÀº ºä¶ó´Â°ÍÀ» ¸í½ÉÇÏÀÚ.

	Select
		[name]  -- µ¥ÀÌÅͺ£À̽º À̸§
		, [database_id]  -- µ¥ÀÌÅͺ£À̽º ID
		, [collation_name]  -- µ¥ÀÌÅÍ°¡ Á¤·ÄµÉ ¹®ÀÚ¼Â(¿¹: Korean_Wansung_CI_AS ¶Ç´Â Latin1_General_CI_AS_KS_WS µîµî)
		, [user_access_desc]  -- »ç¿ëÀÚ ¾×¼¼½º ¼³Á¤ (¿¹: MULTI_USER, SINGLE_USER µîµî)
		, [state_desc] -- ÇöÀç µ¥ÀÌÅͺ£À̽º »óÅ (¿¹: ONLINE, OFFLINE, RESTORING µîµî)
		, [recovery_model] -- µ¥ÀÌÅͺ£À̽º º¹±¸ ¸ðµ¨ (¿¹: FULL, BULK_LOGGED, SIMPLE)
		, [create_date] -- µ¥ÀÌÅͺ£À̽º°¡ »ý¼ºµÇ°Å³ª À̸§ÀÌ º¯°æµÈ ³¯Â¥, tempdb°æ¿ì ÀçºÎÆà µÉ¶§¸¶´Ù °»½Å
			From Master.sys.databases
			-- database_id°¡ 1 = master, 2 = tempdb, 3 = model, 4 = msdb ÀÌ´Ù.
			Where [name] not in ('master', 'tempdb', 'model', 'msdb')
				Order by database_id

 
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.