Home >Database >Mysql Tutorial >掌握SQL 中的存储过程_MySQL

掌握SQL 中的存储过程_MySQL

WBOY
WBOYOriginal
2016-06-01 13:57:16844browse

     在MS SQL中,为了安全,我们常常会删除一些SP,也就是存储过程,如下例

EXEC sp_dropextendedproc ‘xp_cmdshell’

如果要恢复它

EXEC sp_addextendedproc xp_cmdshell ,@dllname =’xplog70.dll’

而为何我要恢复xp_dirtree用上面这个语句就不行了??
拿起eXeScope我分析了一下xplog70.dll这个文件,哈哈,看到不少好东西
打开X:/Program Files/Microsoft SQL Server/MSSQL/Binn目录

 

看到了我们常用的存储过程了吧

那我们再看看xpstar.dll这个吧
哈哈哈,有不少东西,文件大,到底是不一样


odsole70.dll
sp_OACreate
sp_OADestroy
sp_OAGetErrorInfo
sp_OAGetProperty
sp_OAMethod
sp_OASetProperty
sp_OAStop
 

sqlmap70.dll
xp_deletemail
xp_findnextmsg
xp_get_mapi_default_profile
xp_get_mapi_profiles
xp_issqlmailstarted
xp_readmail
xp_sendmail
xp_startmail
xp_stopmail
xp_test_mapi_profile

xpqueue.dll
xp_controlqueueservice
xp_createprivatequeue
xp_decodequeuecmd
xp_deleteprivatequeue
xp_displayqueuemesgs
xp_peekqueue
xp_readpkfromqueue
xp_readpkfromvarbin
xp_resetqueue

xprepl.dll
xp_ORbitmap
xp_displayparamstmt
xp_execresultset
xp_intersectbitmaps
xp_makecab
xp_mapdown_bitmap
xp_mergelineages
xp_mergexpusage
xp_oledbinfo
xp_printstatements
xp_proxiedmetadata
xp_repl_convert_encrypt
xp_repl_encrypt
xp_repl_help_connect
xp_replproberemsrv
xp_showcolv
xp_showlineage
xp_unpackcab
xp_varbintohexstr

xpsqlbot.dll
xp_qv

xpstar.dll
sp_GetMBCSCharLen
sp_IsMBCSLeadByte
sp_MSgetversion
xp_GetAdminGroupName
xp_IsNTAdmin
xp_MSADEnabled
xp_MSADSIObjReg
xp_MSADSIObjRegDB
xp_MSADSIReg
xp_MSFullText
xp_MSLocalSystem
xp_MSnt2000
xp_MSplatform
xp_SetSQLSecurity
xp_adsirequest
xp_availablemedia
xp_dirtree
xp_dsninfo
xp_enum_activescriptengines
xp_enum_oledb_providers
xp_enumdsn
xp_enumerrorlogs
xp_eventlog
xp_fileexist
xp_fixeddrives
xp_freemodule
xp_get_mapi_default_profile
xp_get_mapi_profiles
xp_get_tape_devices
xp_getfiledetails
xp_getnetname
xp_getprotocoldllinfo
xp_instance_regaddmultistring
xp_instance_regdeletekey
xp_instance_regdeletevalue
xp_instance_regenumkeys
xp_instance_regenumvalues
xp_instance_regread
xp_instance_regremovemultistring
xp_instance_regwrite
xp_msx_enlist
xp_ntsec_enumdomains
xp_prop_oledb_provider
xp_readerrorlog
xp_regaddmultistring
xp_regdeletekey
xp_regdeletevalue
xp_regenumkeys
xp_regenumvalues
xp_regread
xp_regremovemultistring
xp_regwrite
xp_servicecontrol
xp_sqlagent_enum_jobs
xp_sqlagent_is_starting
xp_sqlagent_monitor
xp_sqlagent_msx_account
xp_sqlagent_notify
xp_sqlagent_param
xp_sqlagent_proxy_account
xp_sqlmaint
xp_subdirs
xp_terminate_process
xp_test_mapi_profile
xp_unc_to_drive
xp_updateFTSSQLAccount

xpweb70.dll
xp_cleanupwebtask
xp_convertwebtask
xp_dropwebtask
xp_enumcodepages
xp_makewebtask
xp_readwebtask
xp_runwebtask

都在这里了,当然每个SP的用法我就不多说了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn