一些在SQL帮助中找不到的系统存储过程-Systemstoredprocedures
来源:互联网 发布:测试英语水平的软件 编辑:程序博客网 时间:2024/06/05 09:14
引用自
Systemstoredprocedures
ThisdocumentcontainsinformationonundocumentedstoredproceduresinMicrosoft.
NameFunction
sp_cursorUpdateacursor
sp_cursorclosecloseacursor
sp_cursorexecuteOpenapreparedcursor
sp_cursorfetchFetchrows
sp_cursoropenOpenacursor
sp_cursoroptionSetcursoroptions
sp_cursorpreparePrepareacursorstatement
sp_cursorprepexecPrepareacursorstatementandopen
sp_cursorunprepare Freeapreparedcursorstatement
sp_executeExecuteapreparedstatement
sp_preparePrepareanSQLstatement
sp_prepexecPrepareandexecuteanSQLstatement
sp_unprepareFreeapreparedstatement
sp_cursoropen
DefinestheattributesofanAPIservercursor,suchasitsscrollingbehaviorandthestatementusedtobuildtheresultsetonwhichthecursoroperates,thenpopulatesthecursor.Thestatementcancontainembeddedparameters.
Syntax
sp_cursoropen[@cursor=]cursor_handleOUTPUT,
[@stmt=]'stmt'
[,[@scrollopt=]scroll_optionsOUTPUT]
[,[@ccopt=]concurrency_optionsOUTPUT]
[,[@rowcount=]rowcountOUTPUT]
[
{,[@paramdef=]N'parameter_namedata_type[,...n]'}
{,[@param1=]value1[,...n]}
]
Arguments
[@cursor=]cursor_handleOUTPUT
Isthenameofadeclaredintegervariabletoreceivethecursorhandle.cursor_handleisint,withnodefault.
[@stmt=]'stmt'
IsastringcontainingasingleSELECTstatementorasinglestoredprocedurecall.Thesizeofthestringislimitedonlybyavailabledatabaseservermemory.stmtcancontainparametershavingthesameformasavariablename,forexample:
'SELECT*FROMEmployeesWHEREEmployeeID=@IDParameter'
Eachparameterincludedinstmtmusthaveacorrespondingentryinboththe@paramdefparameterdefinitionlistandtheparametervalueslist.
[@scrollopt=]scroll_optionsOUTPUT
Isthecursorscrolltype.scroll_optionsisintwithadefaultof1(keyset-driven),andcanbeacombinationofthesevalues(exactlyoneofthefirst5mustbespecified).
ValueDescription
0x0001Keyset-drivencursor.
0x0002Dynamiccursor.
0x0004Forward-onlycursor.
0x0008Staticcursor.
0x0010Fastforward-onlycursor.
0x1000Parameterizedquery.
0x2000Autofetch.
0x4000Autoclose.
0x8000Checkacceptabletypes.
0x10000Keyset-drivenacceptable.
0x20000Dynamicacceptable.
0x40000Forward-onlyacceptable.
0x80000Staticacceptable.
0x100000Fastforward-onlyacceptable.
Onreturn,@scrolloptcontainsthetypeofcursoractuallycreated,whichmaynotmatchwhatwasrequested.
[@ccopt=]concurrency_optionsOUTPUT
Isthecursorconcurrency.concurrency_optionsisint,withadefaultof4(optimistic)andcanbeacombinationofthesevalues(exactlyoneofthefirst4mustbespecified).
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 一些在SQL帮助中找不到的系统存储过程-Systemstoredprocedures
- 一些在SQL帮助中找不到的系统存储过程 - System stored procedures
- 一些在帮助中找不到的系统存储过程
- 在VS2010中创建SQL SERVER系统存储过程
- 一些SQL的存储过程
- 在sql server中一些有用的的系统储存过程
- workflow中找不到存储过程的解决方法
- 关于sql2000在操作时找不到系统存储过程的解决方法
- Sql Server中常用的系统存储过程
- 发一些我在学习erlang过程中给予我帮助的 博客
- 在SQL Server的存储过程中调用Com组件
- 在asp中调用sql server的存储过程
- 在Sql Server的存储过程中调用Com组件
- 在asp中调用sql server的存储过程
- 在asp中调用sql server的存储过程
- 在SQL的存储过程中应用游标计算
- 在asp中调用sql server的存储过程
- 在SQL 语句中使用存储过程的结果集
- SQLServer:从头起
- 调整重心-从IIS到SQLServer
- SQLServer2000的配置
- 入侵过程!
- redhat linux 9在虛擬機中圖形界面與命令行界面的切換
- 一些在SQL帮助中找不到的系统存储过程-Systemstoredprocedures
- Guidance Automation Toolkit 概述
- 连接的查询语句小结
- VB.NET制作Code39的规律类
- 2005中能够使用Try...Catch语句
- 将中的数据导入到SQLServer2000
- 如何访问sybase的表
- 测试一下。
- sqlserver中重置自动编号