Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

WindowsÏÂSQLServerµÄ¼¯ÈºÅäÖÃ

»ù±¾ÅäÖÃ
Ò»¡¢ÎļþϵͳҪÇó£º
1¡¢ÖÁÉÙÓжþ¸ö·ÖÇø£»
2¡¢ÏµÍ³·ÖÇø²»Ð¡ÓÚ10G£»
3¡¢·ÖÇø¸ñʽ±ØÐëÊÇNTFS¡£
¶þ¡¢²¹¶¡°²×°ÒªÇó£º
1¡¢ÏÈ°²×°Íê±ÏWINDOWS 2000 SP4+³å»÷²¨+Õðµ´²¨²¹¶¡£»
2¡¢½«WINDOWS 2000²¹¶¡Éý¼¶µ½×îкó²Å¿É°²×°cluster ºÍSQL Server£»
3¡¢SQL Server²¹¶¡ÐèÉý¼¶µ½Service Pack 3¡£
Èý¡¢ClusterÐÅÏ¢£º
1£®ClusterÃû³Æ£¬IPµØÖ·1¸ö£»
2£®½ÚµãAÃû³Æ£¬IPµØÖ·2¸ö£¨Ò»¸ö¹«Íø£¬Ò»¸ö˽Íø£©£»
3£®½ÚµãBÃû³Æ£¬IPµØÖ·2¸ö£¨Ò»¸ö¹«Íø£¬Ò»¸ö˽Íø£©£»
4£®SQL ServerÃû³Æ£¬IPµØÖ·1¸ö¡£
Server A
Intel PRO/1000¼¯³É£¨Ç§Õ×Íø¿¨£©×÷¶ÔÍâͨÐÅ£¬µØÖ·£º192.168.1.1
Intel PRO/100 ÓÃ×÷Á½Ì¨Ö÷»úÖ®¼äµÄÐÄÌøÏß IPµØÖ·£º10.10.10.1
Ö÷»úÃûΪ£º SQLC1
Server B
Intel PRO/1000¼¯³É£¨Ç§Õ×Íø¿¨£©×÷¶ÔÍâͨÐÅ£¬µØÖ·£º192.168.1. 2
Intel PRO/100ÓÃ×÷Á½Ì¨Ö÷»úÖ®¼äµÄÐÄÌøÏß IPµØÖ·£º10.10.10.2
Ö÷»úÃûΪ£º SQLC2
 
´æ´¢¿Õ¼ä£¨ÕâÀïÖ¸´ÅÅÌÕóÁУ©·ÖÅä20G¿Õ¼ä
¼¯ÈºÐÅÏ¢£º
IPµØÖ·£º192.168.1.3
NETBIOSÃû£º SQL1
SQL Server 2000ÐÅÏ¢£º
IPµØÖ·£º192.168.1.4
SQLÃû³Æ£ºSQLcluster
Cluster °²×°
°²×°Ç°×¼±¸£º
1¡¢ÔÚ°²×°cluster ·þÎñÇ°½«»úÆ÷¼ÓÈëµ½Óò£¨²»ÊDZØÐèµÄ£©£»
2¡¢Ã¿Ì¨serverÉϱØÐëÓÐÁ½ÕÅÍø¿¨£¬ÆäÖеÄÒ»ÕÅÍø¿¨ÐèÒªÓÃÐÄÌøÏßÁ¬½Ó£»
3¡¢±ØÐëÓÐÒ»¸ö¹«¹²µÄ´ÅÅÌ£¬Èç´ÅÅ̹ñ£¬²¢ÇÒ´ÅÅ̸ñʽ±ØÐëΪntfs¸ñʽ¡£
Ò»¡¢ÅäÖÃÍøÂçÐÅÏ¢
SERVER A ¼Óµç SERVER B ¼Óµç
ÔÚSERVER AÉÏ°²×°WIN2000 AD SERVER ½«Ö÷»úÃûÉè³ÉSQLC1¡£
¹«ÍøIP£º192.168.1. 1 £¨DNS£ºÖ÷192.168.1.254£©
ÐÄÌøIP£º10.10.10.1 £¨Íø¹ØºÍDNS²»ÓÃÌȥµôËùÓеÄdns serverµØÖ·£¬È¥µôappend these dns suffixes Ç°ÃæµÄ¹´£¬ÔÚwins Ñ¡ÏîÀïµÄ Ñ¡ÖÐ Disable NetBIOS over TCP/IP Ñ¡Ïî £©
ÔÚSERVER BÉÏ°²×°WIN2000 AD SERVER ½«Ö÷»úÃûÉè³ÉSQLC2¡£
¹«ÍøIP£º192.168.1. 2 £¨DNS£ºÖ÷192.168.1. 254£©
ÐÄÌøIP£º10.10.10.2 £¨Íø¹ØºÍDNS²»ÓÃÌȥµôËùÓеÄdns serverµØÖ·£¬È¥µôappend these dns suffixes Ç°ÃæµÄ¹´£¬ÔÚwins Ñ¡ÏîÀïµÄ Ñ¡ÖÐ Disable NetBIOS over TCP/IP Ñ¡Ïî £©
¶þ¡¢ÅäÖü¯Èº
SERVER A¿ª»ú
ÔÚ´æ´¢ÕóÁеĹÜÀí½çÃæÀï´´½¨VDisk20G,È»ºó´´½¨Âß¼­ÅÌ£¬ÔÚ´ÅÅ̹ÜÀíÆäÖн«´ÅÅ̸ñʽ»¯£¬·ÖÅäÅÌ·ûΪG£¬
SERVER B¿ª»ú
½«Ð³öÏֵķÖÇø°´ÕÕSERVER AÖеÄÅäÖýøÐиü¸Ä£º·ÖÅäÅÌ·ûΪG
ÔÚSERVER AÉÏÅäÖü¯Èº£º
£±£®ÔÚÌí¼Óɾ³ý³ÌÐòÖÐÌí¼Ó²¢ÅäÖü¯Èº·þÎñ
£²£®ÔÚÏÂÃæµÄÏòµ¼ÖÐÑ¡Ôñн¨¼¯Èº
£³£®Ê


Ïà¹ØÎĵµ£º

sqlserverÖÐʹÓÃÕýÔò±í´ïʽ2

 
ÕâÁ½ÌìÓиöÐèÇó£¬ÐèÒªÔÚÊý¾Ý¿âÖÐÅжÏ×Ö·û´®µÄ¸ñʽ£¬ÓÚÊÇ´ÓÍøÉÏËѼ¯ÁËһЩ×ÊÁÏ£¬ÕûÀíÁËһϡ£
ÏÂÃæÕâ¸öÊÇÒ»¸ö×Ô¶¨Ò庯Êý£¬Óû§¿ÉÒÔµ÷ÓÃÕâ¸öº¯ÊýÅжÏÖ¸¶¨µÄ×Ö·û´®ÊÇ·ñ·ûºÏÕýÔò±í´ïʽµÄ¹æÔò.
CREATE FUNCTION dbo.find_regular_expression
(
  @source varchar(5000),   --ÐèҪƥÅäµÄÔ´× ......

SQLServer°²×°³ÌÐòÅäÖ÷þÎñÆ÷ʧ°Ü

תÔØ×Ô£ºhttp://sunfreesky.blog.163.com/blog/static/211116820097224822596/
SQLServer°²×°³ÌÐòÅäÖ÷þÎñÆ÷ʧ°Ü.²Î¿¼·þÎñÆ÷´íÎóÈÕÖ¾ºÍc:\windows\sqlstp.logÁ˽â¸ü¶àÐÅÏ¢”´íÎó
2007Äê07ÔÂ15ÈÕ ÐÇÆÚÈÕ 16:25
SQL 2000 °²×°³ÌÐòÅäÖ÷þÎñÆ÷ʧ°Ü½â¾ö·½·¨£º
 
 
ÈÕÖ¾ÎļþÒýÓÃÄÚÈÝ£º
13:09:40 Process Ex ......

´«ÖDz¥¿ÍÎÒµÄSqlServer½Å±¾

 
======================SqlServer´ó²¿·Ö֪ʶ¶¼ÔÚÎÒÕâ½Å±¾Àï===============
Èç¹ûÄãÄÜ°ÑÊý¾Ý½á¹¹»­³öÀ´µÄ»°£¬ÄÇôÄã¾ÍÈëÃÅÁË£¡£¡ºÇºÇ£¡£¡
--²é¿´konwyoumore¿âÊÇ·ñ´æÔÚ
USE master
IF exists(SELECT * from sysdatabases WHERE name='KnowYouMore')
BEGIN
DROP DATABASE knowyoumore;
END
GO
--´´½¨konwyo ......

sqlserver ¿ç¿â¿½±´Êý¾Ý


Create Procedure up_InsertData2
@ID INT
AS
BEGIN
Declare @Name NVARCHAR(30)
Declare @c1 NVARCHAR(30)
Declare @c2 NVARCHAR(30)
Declare @c3 NVARCHAR(30)
Declare @c4 NVARCHAR(30)
Declare tmpCur Cursor For Select a,b,c,d from  table1
Open tmpCur;
Fetch Next from tmpCur Into @c1,@c2,@c3 ......

sqlServer ÖÐ »ñÈ¡ºº×Ö×Ö´®µÄÆ´ÒôÉùĸ

 CREATE        function fGetPy(@str varchar(500)='')
returns varchar(500)
as
begin
    declare @strlen int,@return varchar(500),@ii int
    declare @c nchar(1),@chn nchar(1)
    select @strlen=len(@str),@retur ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ