MS Sql Server 2005 ·ÖÇø±íÓеãÂé·³
ALTER DATABASE AdventureWorks ADD FILEGROUP [2003Q3]
´´½¨Îļþ×éºó£¬Ê¹Óà ALTER DATABASE ½«ÎļþÌí¼Óµ½¸ÃÎļþ×éÖС£
ALTER DATABASE AdventureWorks
ADD FILE
(NAME = N'2003Q3',
FILENAME = N'C:\AdventureWorks\2003Q3.ndf',
SIZE = 5MB,
MAXSIZE = 100MB,
FILEGROWTH = 5MB)
TO FILEGROUP [2003Q3]
È·¶¨ÊÇ·ñӦʹÓöà¸öÎļþ×é
¡¡¡¡ÎªÁËÓÐÖúÓÚÓÅ»¯ÐÔÄܺÍά»¤£¬Ó¦Ê¹ÓÃÎļþ×é·ÖÀëÊý¾Ý¡£Îļþ×éµÄÊýÄ¿Ò»¶¨³Ì¶ÈÉÏÓÉÓ²¼þ×ÊÔ´¾ö¶¨£ºÒ»°ãÇé¿öÏ£¬Îļþ×éÊý×îºÃÓë·ÖÇøÊýÏàͬ£¬²¢ÇÒÕâЩÎļþ×éͨ³£Î»ÓÚ²»Í¬µÄ´ÅÅÌÉÏ¡£µ«ÊÇ£¬ÕâÖ÷ÒªÊÊÓÃÓÚ´òËã¶ÔÕû¸öÊý¾Ý¼¯½øÐзÖÎöµÄϵͳ¡£Èç¹ûÄúÓжà¸ö CPU£¬SQL Server Ôò¿ÉÒÔ²¢Ðд¦Àí¶à¸ö·ÖÇø£¬´Ó¶ø´ó´óËõ¶Ì´¦Àí´óÁ¿¸´ÔÓ±¨±íºÍ·ÖÎöµÄ×ÜÌåʱ¼ä¡£ÕâÖÖÇé¿öÏ£¬¿ÉÒÔ»ñµÃ²¢Ðд¦ÀíÒÔ¼°ÔÚ·ÖÇø±íÖÐÒÆÈëºÍÒƳö·ÖÇøµÄºÃ´¦¡£
±ßÉϵÄͬÊÂ˵Îļþ×é°üº¬¶à¸öÎļþ¿ÉÒÔÔö¼Ó²¢Ðжȣ¬Ò²¾ÍÊǶà¸öCPU¿ÉÒÔÒ»Æð¶Á£¿
ËûµÄÒâ˼ÄѵÀÊÇ˵²Ù×÷ϵͳ¶Ô³ÌÐò·ÃÎʵ¥¸öÎļþÓÐÏÞÖÆ£¬¶àÁË»°»á×èÈû£¿
Èç¹ûÊǵĻ° Windows 2003 64λ ÆóÒµ°æ ÎļþÓдóСÏÞÖÆ Óв¢ÐзÃÎʵÄÏÞÖƲ»£¿
Ëû»¹Ëµ¿ÉÒÔ°ÑËüÃÇ·ÖÅäµ½²»Í¬´ÅÅÌÉÏ¡£²»¹ýÈç½ñ¶¼ÓÃRaid 10ÁË ²»ÐèÒªÈËΪµÄ·Ö³É¶à¸öÎļþ£¬·´¶øÔö¼Óά»¤¸´ÔӶȡ£
Ëû½Ó×Å˵ ÎļþС¶ø¶à±È´ó¶øÉÙ ÈÝÒ×±¸·Ý£¡
Ëû˵µÄÊÇÕæµÄÂð£¿
Òò´Ë±¾ÈË»¹ÊDzÉÓÃÒ»¸öÎļþ×éºÍÒ»¸öÎļþ.Æäʵ¾ÍÊÇÓÃÔÀ´µÄÊý¾ÝÎļþµÄ.
½¨Á¢·ÖÇøº¯Êý
CREATE PARTITION FUNCTION FuPart_szumevent(datetime)AS RANGE RIGHT FOR VALUES ('20070801','20070901','20071001','20071101','20071201','20080101','20080201','20080301','20080401','20080501','20080601','20080701','20080801','20080901','20081001','20081101','20081201')
ÕâÀï²ÉÓõÄÊÇ·¶Î§·ÖÇø¡£ ÕâÀïÓиöRight ºÍLeft ¡£Right±È½ÏÈÝÒ×Àí½â ËüÊÇСÓÚʱ¼äµãµÄÊÇÁíÍâ¸ö·ÖÇøÊý¾Ý£¬´óÓں͵ÈÓÚËüµÄÊÇËùÔڵķÖÇø¡£
A<Time1<=B<Time2<=C ¶øLeftÊÇ·´¹ýÀ´ A>=Time1>B>=Time2>C
Left ÓиöÂé·³µãÊÇ >=Time1 => 2008-01-01 23:59:59.997
½¨Á¢·ÖÇø¼Ü¹¹£º
CREATE PARTITION SCHEME FNw_szumevent AS PARTITION FuPart_szumevent ALL TO ([PRIMARY])
Æäʵ¾ÍÊǹØÁª¶«¶«£¬»òÐíMsÈÏΪÒÔºóDBA»á¶Ô·ÖÇø±í½øÐиÄÓ÷ÖÇøº¯Êý
½¨Á¢·ÖÇø±í£º
CREATE TABLE [dbo].[Part_
Ïà¹ØÎĵµ£º
ÔÚSQLÓï¾äÓÅ»¯¹ý³ÌÖУ¬ÎÒÃǾ³£»áÓõ½hint,ÏÖ×ܽáÒ»ÏÂÔÚSQLÓÅ»¯¹ý³ÌÖг£¼ûOracle HINTµÄÓ÷¨£º
1. /*+ALL_ROWS*/
±íÃ÷¶ÔÓï¾ä¿éÑ¡Ôñ»ùÓÚ¿ªÏúµÄÓÅ»¯·½·¨,²¢»ñµÃ×î¼ÑÍÌÍÂÁ¿,ʹ×ÊÔ´ÏûºÄ×îС»¯.
ÀýÈç:
SELECT /*+ALL+_ROWS*/ EMP_NO,EMP_NAM,DAT_IN from BSEMPMS WHERE EMP_NO='SCOTT';
2. /*+FIRST_ROWS*/
±í ......
Êý¾Ý´¦ÀíÊǵ±Ç°Êý¾Ý¿â³£¼ûµÄÓ¦Óá£Ò»Ð©Êý¾Ý¿â×é³ÉDATA mart´ÓÊý¾ÝÔ´Àï³éÈ¡¹ØÐĵıí½øÐоۺϣ¬½«½á¹ûÍÆË͵½Ëã·¨ÖнøÐд¦Àí£¬´Ó¶ø¸ßÐÔÄܵĻشðÓû§µÄ²éѯ¡£
×ÜËùÖÜÖª£¬LogÎļþÊǼǼÊý¾Ý¿â²Ù×÷µÄÎļþ£¬¶ÔÊý¾Ý¿âµÄÍêÕûÐÔ£¬Ò»ÖÂÐÔÓÐ×ÅÖØÒªµÄÒâÒå¡£×÷ΪÊý¾Ý´¦ÀíµÄÒ»¸ö³£¼ûºó¹ûÊÇLogÎļþµÄ³¬¼¶ÅÓ´ó¡£ËäÈ»½«Êý¾Ý¿âµÄ»Ö¸´Ä£Ê½ÉèÖó ......
ÎÄÕÂÔ´´£¬×ªÔØÇëÓëBlogÖ÷ÈËÁªÏµ£¬robin9257@hotmail.com
JAVAÓëSQLÇŽӵÄÓÅȱµã£º
1¡¢Óŵ㣺²»ÓÃÏÂÔØÇý¶¯³ÌÐò£¬ÔÊÐíÓÃÏàͬ´úÂë·ÃÎʲ»Í¬DBMS¡£
2¡¢È±µã£ºÐ§Âʵ͡£
¾³£³öÏֵı¨´íµã£º
1¡¢java.sql.SQLException: [Microsoft][ODBC Çý¶¯³ÌÐò¹ÜÀíÆ÷] δ·¢ÏÖÊý¾ÝÔ´Ãû³Æ²¢ÇÒδָ¶¨Ä¬ÈÏÇý¶¯³ÌÐò
&nbs ......
C# SQLÊý¾Ý¿â²Ù×÷ͨÓÃÀà
using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
namespace Framework.DataBase
{
///
/// ͨÓÃÊý¾Ý¿âÀà
///
public class DataBase
{
private string ConnStr = null;
public DataBase()
{
&nb ......