SQL SERVER ½Çɫ˵Ã÷£¨Õª×ÔMSDN£©
·þÎñÆ÷¼¶±ð½ÇÉ«
Ϊ±ãÓÚ¹ÜÀí·þÎñÆ÷ÉϵÄȨÏÞ£¬SQL Server ÌṩÁËÈô¸É“½ÇÉ«”£¬ÕâЩ½ÇÉ«ÊÇÓÃÓÚ·Ö×éÆäËûÖ÷ÌåµÄ°²È«Ö÷Ìå¡£“½ÇÉ«”ÀàËÆÓÚ Microsoft Windows ²Ù×÷ϵͳÖеē×锡£
·þÎñÆ÷¼¶½ÇÉ«Ò²³ÆΪ“¹Ì¶¨·þÎñÆ÷½ÇÉ«”£¬ÒòΪÄú²»ÄÜ´´½¨ÐµķþÎñÆ÷¼¶½ÇÉ«¡£·þÎñÆ÷¼¶½ÇÉ«µÄȨÏÞ×÷ÓÃÓòΪ·þÎñÆ÷·¶Î§¡£
Äú¿ÉÒÔÏò·þÎñÆ÷¼¶½ÇÉ«ÖÐÌí¼Ó SQL Server µÇ¼Ãû¡¢Windows ÕÊ»§ºÍ Windows ×é¡£¹Ì¶¨·þÎñÆ÷½ÇÉ«µÄÿ¸ö³ÉÔ±¶¼¿ÉÒÔÏòÆäËùÊô½ÇÉ«Ìí¼ÓÆäËûµÇ¼Ãû¡£
ϱíÏÔʾÁË·þÎñÆ÷¼¶½ÇÉ«¼°ÆäÄܹ»Ö´ÐеIJÙ×÷¡£
·þÎñÆ÷¼¶½ÇÉ«Ãû³Æ˵Ã÷
sysadmin
sysadmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«µÄ³ÉÔ±¿ÉÒÔÔÚ·þÎñÆ÷ÉÏÖ´ÐÐÈκλ¡£
serveradmin
serveradmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«µÄ³ÉÔ±¿ÉÒÔ¸ü¸Ä·þÎñÆ÷·¶Î§µÄÅäÖÃÑ¡ÏîºÍ¹Ø±Õ·þÎñÆ÷¡£
securityadmin
securityadmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«µÄ³ÉÔ±¿ÉÒÔ¹ÜÀíµÇ¼Ãû¼°ÆäÊôÐÔ¡£ËûÃÇ¿ÉÒÔ GRANT¡¢DENY ºÍ REVOKE ·þÎñÆ÷¼¶±ðµÄȨÏÞ¡£ËûÃÇ»¹¿ÉÒÔ GRANT¡¢DENY ºÍ REVOKE Êý¾Ý¿â¼¶±ðµÄȨÏÞ¡£´ËÍ⣬ËûÃÇ»¹¿ÉÒÔÖØÖà SQL Server µÇ¼ÃûµÄÃÜÂë¡£
processadmin
processadmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«µÄ³ÉÔ±¿ÉÒÔÖÕÖ¹ÔÚ SQL Server ʵÀýÖÐÔËÐеĽø³Ì¡£
setupadmin
setupadmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«µÄ³ÉÔ±¿ÉÒÔÌí¼ÓºÍɾ³ýÁ´½Ó·þÎñÆ÷¡£
bulkadmin
bulkadmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«µÄ³ÉÔ±¿ÉÒÔÔËÐÐ BULK INSERT Óï¾ä¡£
diskadmin
diskadmin ¹Ì¶¨·þÎñÆ÷½ÇÉ«ÓÃÓÚ¹ÜÀí´ÅÅÌÎļþ¡£
dbcreator
dbcreator ¹Ì¶¨·þÎñÆ÷½ÇÉ«µÄ³ÉÔ±¿ÉÒÔ´´½¨¡¢¸ü¸Ä¡¢É¾³ýºÍ»¹ÔÈκÎÊý¾Ý¿â¡£
public
ÿ¸ö SQL Server µÇ¼Ãû¶¼ÊôÓÚ public ·þÎñÆ÷½ÇÉ«¡£Èç¹ûδÏòij¸ö·þÎñÆ÷Ö÷ÌåÊÚÓè»ò¾Ü¾ø¶Ôij¸ö°²È«¶ÔÏóµÄÌض¨È¨ÏÞ£¬¸ÃÓû§½«¼Ì³ÐÊÚÓè¸Ã¶ÔÏóµÄ public ½ÇÉ«µÄȨÏÞ¡£Ö»ÓÐÔÚÏ£ÍûËùÓÐÓû§¶¼ÄÜʹÓöÔÏóʱ£¬²ÅÔÚ¶ÔÏóÉÏ·ÖÅä Public ȨÏÞ¡£
ÓйطþÎñÆ÷¼¶±ð½ÇɫȨÏÞµÄÌض¨ÐÅÏ¢£¬Çë²ÎÔĹ̶¨·þÎñÆ÷½ÇÉ«µÄȨÏÞ£¨Êý¾Ý¿âÒýÇ棩¡£
Êý¾Ý¿â¼¶±ðµÄ½ÇÉ«
Ϊ±ãÓÚ¹ÜÀíÊý¾Ý¿âÖеÄȨÏÞ£¬SQL Server ÌṩÁËÈô¸É“½ÇÉ«”£¬ÕâЩ½ÇÉ«ÊÇÓÃÓÚ·Ö×éÆäËûÖ÷ÌåµÄ°²È«Ö÷Ìå¡£ËüÃÇÀàËÆÓÚ Microsoft Windows ²Ù×÷ϵͳÖеÄ×é¡£Êý¾Ý¿â¼¶½ÇÉ«µÄȨÏÞ×÷ÓÃÓòΪÊý¾Ý¿â·¶Î§¡£
SQL Server ÖÐÓÐÁ½ÖÖÀàÐ͵ÄÊý¾Ý¿â¼¶½ÇÉ«£ºÊý¾Ý¿âÖÐÔ¤¶¨ÒåµÄ“¹Ì¶¨Êý¾Ý¿â½ÇÉ«”ºÍÄú¿ÉÒÔ´´½¨µÄ“Áé»îÊý¾Ý¿â½ÇÉ«”¡£
¹Ì¶¨Êý¾Ý¿â½ÇÉ«ÊÇÔÚÊý¾Ý¿â¼¶±ð¶¨ÒåµÄ£¬²¢ÇÒ´æÔÚÓÚÿ¸öÊý¾Ý¿âÖС£db_owner ºÍ db_securityadmin&nb
Ïà¹ØÎĵµ£º
ϵͳ»·¾³£ºWindows 7
Èí¼þ»·¾³£ºVisual C++ 2008 SP1 +SQL Server 2005
±¾´ÎÄ¿µÄ£º±àдһ¸öº½¿Õ¹ÜÀíϵͳ
ÕâÊÇÊý¾Ý¿â¿Î³ÌÉè¼ÆµÄ³É¹û£¬ËäÈ»³É¼¨²»¼Ñ£¬µ«ÊÇ×÷ΪÎÒÓÃVC++ ÒÔÀ´±àдµÄ×î´ó³ÌÐò»¹ÊÇ´«µ½ÍøÉÏ£¬ÒÔ¹©²Î¿¼¡£ÓÃVC++ ×öÊý¾Ý¿âÉè¼Æ²¢²»ÈÝÒ×£¬µ«Ò²²»ÊDz»¿ÉÄÜ¡£ÒÔÏÂÊÇÎҵijÌÐò½çÃ棬ºóÃæ ......
Sql³£¼ûÃæÊÔÌ⣨×ܽᣩ
0.ÈçºÎɾ³ýÒ»¸öÓµÓбȽ϶àµÄÊý¾ÝµÄ±í
Èç¹û¸Ã±íËùÔÚµÄÊý¾Ý¿âÓµÓнÏÉÙµÄ±í£¬¿ÉÒÔÏȽ«ÆäÓà±íµ¼³öÈ¥£¬È»ºó·ÖÀëÊý¾Ý¿â£¬ÔÚɾ³ý£¬Ð½¨Ò»¸öͬÃûÊý¾Ý¿â£¬½«ÆäÓà±íÔٴε¼Èë¡£
1.ÓÃÒ»ÌõSQLÓï¾ä ²éѯ³öÿÃſζ¼´óÓÚ80·ÖµÄѧÉúÐÕÃû
name kecheng fenshu
ÕÅÈý ÓïÎÄ &n ......
²Î¿¼¡¶ASP.NETÓëSQLÒ»Æð´ò°ü²¿Êð°²×°¡·£¬ÕâƪÎÄÕÂÊÇÕë¶ÔVB.NETÓëSQL Ò»Æð´ò°üµÄ,µ«ÊÇÎÒʹÓõÄÊÇC#,µ±È»Ö»ÒªÐÞ¸ÄÒ»ÏÂÖ÷Òª°²×°Àà¿â¾ÍÐÐÁË!C#µÄÀà¿â´úÂëÈçÏÂ:DBCustomAction.cs
using System;
using System.Collections;
using System.Data.SqlClient;
using System.ComponentModel;
using System.Configuration.Install; ......
Copy ÒÔÏÂÄÚÈݵ½²éѯ·ÖÎöÆ÷²Ù×÷£º
-- 3 ****************************************************
-- ÊìϤϵͳ×Ô´øµÄһЩº¯Êý
-- 3.1 --------------------------------------------------
-- Êýѧº¯Êý
-- ABS(num_expression) ·µ»Ø¸ø¶¨ÊýÖµ±í´ïʽµÄ¾ø¶ÔÖµ
-- C ......
ͬʱÆô¶¯ÆäËûsql ·þÎñ»á³öÏÖ ´íÎó1068:ÒÀ´æ·þÎñ»ò×éÎÞ·¨Æô¶¯£¨ÕâÊÇÓÉÓÚ¼¸¸öÏà¹ØÁªµÄ·þÎñÖÐÓÐÒ»¸ö²»ÄÜÆô¶¯£©¡£
´íÎó1069ÊÇÒ»¸öWindows NT/2000µÄϵͳ´íÎó¡£´íÎó1069±íÃ÷·þÎñ²»Äܱ»Æô¶¯£¨µ±Æô¶¯·þÎñʱ·µ»Ø“µÇ¼ʧ°Ü”´íÎ󣩡£ÀýÈ磬µ±Æô¶¯MSSQLServer·þÎñʱ£¬µÃµ½ÈçÏ´íÎóÌáʾ£º
·¢Éú´íÎó1069£ºÓÉÓڵǼʧ° ......