ÈçºÎжÔØSQL Server 2005
жÔØSQL Server 2005µÄ·½·¨Ö®Ò»£¬·ÅÔÚÕâ¶ùÖ»ÊÇΪÁ˼Çס£º
1£º°ÑSQL Server2005µÄ°²×°ÅÌ£¨°²×°Îļþ£©·ÅÈëµ½¹âÇý¡£
2£º´ò¿ªÈçÏ·¾¶£º¿ªÊ¼/ÔËÐУ¬ÊäÈ룺cmd
3£ºÊäÈëÏÂÁÐÃüÁ
Start /wait \setup.exe /qb REMOVE=ALL INSTANCENAME=£º¹ÜÇøÅÌ·û£¬ÀýÈ磺G£º¡¢H£ºµÈ£»£º°²×°µÄSQLServerʵÀýÃû³Æ£¬Ä¬ÈÏֵΪ£º¹¦ÄÜ£ºÐ¶ÔØSQL Server 2005 ²¿¼þ¡£
4£ºÊäÈëÏÂÁÐÃüÁStart /wait msiexec /qb /X \Setup\sqlncli.msiµÄ½âÊÍÈçÉÏ¡£¹¦ÄÜ£ºÐ¶ÔØMicrosoft SQL Native Client¡£
5£ºÊäÈëÏÂÁÐÃüÁStart /wait \redist\2.0\dotnetfx.exe /q:a /c:"install /qu"ÈçÉÏ¡£¹¦ÄÜ£ºÐ¶ÔØMicrosoft .NET Framework¡£
´ÓSQL Server 2005 ExpressÉý¼¶¶øÀ´µÄʵÀý£¬ÓÃÆðÀ´×ܸоõ¹Ö¹ÖµÄ£¬ºÜ¶à¹¦ÄܺÃÏñ¶¼Í£ÁôÔÚExpress°æ±¾ÉÏ¡£Òò´ËÏë°ÑSQL Server 2005ÍêȫжÔغóÔÙÖØ×°¡£
²Î¿¼ÎÄÕ£ºÈçºÎÊÖ¶¯Ð¶ÔØ SQL Server 2005 ʵÀý£¬ ´íÎó´úÂë-2147024893
²½Öè 1£ºÈ·±£ Microsoft SQL Server °²×°Ö§³ÖÎļþ×é¼þÒÑ°²×°
ÔÚ“Ìí¼Ó»òɾ³ý³ÌÐò”ÖУ¬È·±£“Microsoft SQL Server °²×°Ö§³ÖÎļþ”³öÏÖÔÚÒÑ°²×°µÄ³ÌÐòÁбíÖС£Èç¹û“Microsoft SQL Server °²×°Ö§³ÖÎļþ”³öÏÖÔÚ¸ÃÁбíÖУ¬Çëתµ½“²½Öè 2£ºÔËÐÐÃüÁîÒÔжÔØ SQL Server ×é¼þ”Ò»½Ú¡£
Èç¹û“Microsoft SQL Server °²×°Ö§³ÖÎļþ”ûÓгöÏÖÔÚ¸ÃÁбíÖУ¬ÇëÏÈ°²×°¸Ã×é¼þ£¬È»ºóÔÙ¼ÌÐø¡£Òª°²×°¸Ã×é¼þ£¬Çë°´ÕÕÏÂÁв½Öè²Ù×÷£º
ÕÒµ½ÔʼµÄ SQL Server 2005 °²×°½éÖÊ¡£
Òª°²×°Ö§³ÖÎļþ£¬ÇëË«»÷“Servers\setup\sqlsupport.msi”Îļþ¡£
×¢Ò⣺ÔÚ“²½Öè 5£ºÐ¶ÔØ Microsoft SQL Server °²×°Ö§³ÖÎļþ×é¼þ”Ò»½ÚÖУ¬½«Ð¶ÔظÃ×é¼þ¡£
²½Öè 2£ºÔËÐÐÃüÁîÒÔжÔØ SQL Server ×é¼þ
×¢Ò⣺жÔØReporting Servicesʱ¿ÉÄܳöÏÖµÄÎÊÌ⣬°²×°³ÌÐòÎÞ·¨¶ÁÈ¡ IIsMimeMap ±í
½â¾ö·½·¨
1.Í£Ö¹IIS Admin·þÎñºÍWord Wide Web Publishing·þÎñ
2.½«IIS AdminµÄÆô¶¯ÀàÐ͸ÄΪ“½ûÓÔ£¨²»È»µÄ»°£¬Ð¶Ôعý³ÌIIS Admin»á±»Ð¶ÔسÌÐòÆô¶¯ÆðÀ´£¬»¹»á³öÏÖͬÑùµÄÎÊÌ⣩
ÔÚÃüÁîÌáʾ·ûÏ£¬ÔËÐÐÏÂÃæµÄÃüÁ
"%ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\ARPWrapper.exe /Remove"
¹´Ñ¡ÄãҪɾ³ýµÄ×é¼þ¡£
×¢Ò⣺“Ìí¼Ó»òɾ³ý³ÌÐò”»¹»áʹÓÓ/Remove”Ñ¡ÏîÔËÐÐ ARPWrapper.exe ³ÌÐ
Ïà¹ØÎĵµ£º
USE AdventureWorks
GO
CREATE PROC spEmployee
AS
SELECT * from Humanresources.Employee
EXEC spEmployee
ALTER PROC spEmployee
AS SELECT EmployeeID from Humanresources.Employee
drop proc spEmployee
ALTER PROC spEmployee
@LastName nvarchar(50) = NULL
AS
IF @LastName IS NULL
SELECT * f ......
ÏÖÔڱȽÏÁ÷ÐеÄSQL×¢È빤¾ßµÄ¹¤×÷·½Ê½ÊÇͨ¹ýGETºÍPOSTÀ´Íê³É¾ßÌåµÄ×¢Èë¡£ÎÒÃÇ¿ÉÒÔ½«×¢ÈëʱËùÓõ½µÄÒ»ÇзûºÅ¹ýÂ˵ô¡£ÄÇôÎÒÃÇ¿ÉÒÔͨ¹ý¼òµ¥µÄÅжÏÓï¾äÀ´´ïµ½Ä¿µÄ¡£ÎÒÃÇÏÈÀ´¹ýÂËGET°É¡£
´úÂëÈçÏ£º
dim sql_injdata SQL_inj SQL_Get
SQL_injdata = "’|and|exec|insert|select|delete|update|count|*|%|chr|mid|mast ......
ת×Ôhttp://www.111cn.cn/database/109/b992816b1dddbb641c25c0999883427e.htm
declare @text nvarchar(max);
with tb
as
(
select blocking_session_id,
session_id,db_name(database_id) as dbname,text from master.sys.dm_exec_requests a
CROSS APPLY master.sys.dm_exec_sql_text(a.sql_handle)
),
tb1 a ......
SQL Server 2008 й¦ÄÜ
ÓÃÓÚ¹ÜÀíµÄй¦ÄÜÓÐÄÄЩ£¿
¶ÔÓÚ¾³£Òª¸ºÔð¹ÜÀí·Ö²¼ÔÚÊýʮ̨ÉõÖÁÊý°Ų̀·þÎñÆ÷ÖеÄÊýÒ԰ټƻòǧ¼ÆµÄ´óÐ͸´ÔÓÊý¾Ý¿â»·¾³µÄÊý¾Ý¿â¹ÜÀíÔ±¶øÑÔ£¬ÐµIJßÂÔ¹ÜÀí¡¢¶à·þÎñÆ÷²éѯ¹¦ÄÜ¡¢ÅäÖ÷þÎñÆ÷ÒÔ¼°Êý¾ÝÊÕ¼¯Æ÷/¹ÜÀí²Ö¿â¹¦ÄÜΪËûÃǸ³ÓèÁËÇ¿´óµÄÄÜÁ¦¡£
ÓÃÓÚ¿ÉÉìËõÐÔµÄй¦ÄÜÓÐÄ ......
1. µ±Ç°ÏµÍ³ÈÕÆÚ¡¢Ê±¼ä
select getdate()
2. dateadd ÔÚÏòÖ¸¶¨ÈÕÆÚ¼ÓÉÏÒ»¶Îʱ¼äµÄ»ù´¡ÉÏ£¬·µ»ØÐ嵀 datetime Öµ
ÀýÈ磺ÏòÈÕÆÚ¼ÓÉÏ2Ìì
&nbs ......