一些在SQL帮助中找不到的系统存储过程 - System stored procedures

用户自定义存储过程实战:解决一致性、性能与可观测性三重痛点 用户自定义存储过程(UDSP)是数据库层面封装业务逻辑的核心机制,其本质是预编译、可复用、支持事务与参数化的SQL代码块。它基于ACID原语实现强一致性保障,通过减少网络往返和集中执行提升性能,并借助输出参数、错误日志与执行计划分析增强可观测性。相比应用层拼SQL易引发分布式事务风险、视图无法处理写操作、函数存在逐行计算性能瓶颈、ORM抽象过度导致执行低效等替代方案,UDSP在金融审批、订单履约、实时风控等高可靠场景中不可替代。本文聚焦真实生产环境中的设计原则、防坑实践与高可用落地,涵盖参数契约、事务边界、 阅读详情

引用自 http://jtds.sourceforge.net/apiCursors.html 

System stored procedures

This document contains information on undocumented stored procedures in Microsoft SQL Server.

 NameFunction
 sp_cursorUpdate a cursor
 sp_cursorcloseclose a cursor
 sp_cursorexecuteOpen a prepared cursor
 sp_cursorfetchFetch rows
 sp_cursoropenOpen a cursor
 sp_cursoroptionSet cursor options
 sp_cursorpreparePrepare a cursor statement
 sp_cursorprepexecPrepare a cursor statement and open
 sp_cursorunprepare Free a prepared cursor statement
 sp_executeExecute a prepared statement
 sp_preparePrepare an SQL statement
 sp_prepexecPrepare and execute an SQL statement
 sp_unprepareFree a prepared statement

sp_cursoropen

Defines the attributes of an API server cursor, such as its scrolling behavior and the statement used to build the result set on which the cursor operates, then populates the cursor. The statement can contain embedded parameters.

Syntax

sp_cursoropen [@cursor =] cursor_handle OUTPUT,
    [@stmt =] 'stmt'
    [, [@scrollopt =] scroll_options OUTPUT]
    [, [@ccopt =] concurrency_options OUTPUT]
    [, [@rowcount =] rowcount OUTPUT]

[
    {, [@paramdef =] N'parameter_name data_type [,...n]' }
    {, [@param1 =] value1 [,...n] }

]

Arguments
[ @cursor =] cursor_handle OUTPUT
Is the name of a declared integer variable to receive the cursor handle. cursor_handle is int, with no default.
[ @stmt =] ' stmt'

Is a string containing a single SELECT statement or a single stored procedure call. The size of the string is limited only by available database server memory. stmt can contain parameters having the same form as a variable name, for example:

'SELECT * FROM Employees WHERE EmployeeID = @IDParameter'

Each parameter included in stmt must have a corresponding entry in both the @paramdef parameter definition list and the parameter values list.

[ @scrollopt =] scroll_options OUTPUT
Is the cursor scroll type. scroll_options is int with a default of 1 (keyset-driven), and can be a combination of these values (exactly one of the first 5 must be specified).

ValueDescription
0x0001Keyset-driven cursor.
0x0002Dynamic cursor.
0x0004Forward-only cursor.
0x0008Static cursor.
0x0010Fast forward-only cursor.
0x1000Parameterized query.
0x2000Auto fetch.
0x4000Auto close.
0x8000Check acceptable types.
0x10000Keyset-driven acceptable.
0x20000Dynamic acceptable.
0x40000Forward-only acceptable.
0x80000Static acceptable.
0x100000Fast forward-only acceptable.

On return, @scrollopt contains the type of cursor actually created, which may not match what was requested.
[ @ccopt =] concurrency_options OUTPUT
Is the cursor concurrency. concurrency_options is int, with a default of 4 (optimistic) and can be a combination of these values (exactly one of the first 4 must be specified).

ValueDescription
0x0001Read-only.
0x0002Scroll locks.
0x0004Optimistic. Checks timestamps and, when not available, values.
0x0008Optimistic. Checks values (non-text, non-image).
0x2000Open on any SQL.
0x4000Update keyset in place.
0x10000Read-only acceptable.
0x20000Locks acceptable.
0x40000Optimistic acceptable.

On return, @ccopt contains the type of cursor actually created, which may not match what was requested.
[ @rowcount =] rowcount OUTPUT
Is the name of a declared integer variable to receive the number of affected rows. rowcount is int with no default value.
[ @paramdef =] N' parameter_name data_type [, ...n]'
Is one string that contains the definitions of all parameters that have been embedded in stmt. Each parameter definition consists of a parameter name and a data type. n is a placeholder indicating additional parameter definitions. Every parameter specified in stmt must be defined in @paramdef. If the Transact-SQL statement in stmt does not contain parameters, @paramdef is not needed. The default value for this parameter is NULL.
[ @ param1 =] value1
Is a value for the first parameter defined in the parameter string. The value can be a constant or a variable. There must be a parameter value supplied for every parameter included in stmt. The values are not needed if the Transact-SQL statement in stmt has no parameters.
n
Is a placeholder for the values of additional parameters. Values can be only constants or variables. Values cannot be more complex expressions such as functions, or expressions built using operators.
Return Code Values

0 (success) or 1 (failure).

Result Sets

Returns the result set generated by stmt, but containing no rows.

Remarks

sp_cursoropen is a more powerful (and programmatic) way of creating server-side cursors on SQL Server.

Permissions

Execute permissions default to the public role.

Examples
A. Create a cursor for a simple SELECT statement

This simple example creates a dynamic read-only cursor for a SELECT statement with no parameters.

USE pubs

 

-- Create a dynamc read-only cursor

DECLARE @cursor INT

EXEC sp_cursoropen @cursor OUTPUT, N'SELECT * FROM myTable', 2, 8193

 

-- Close the cursor

EXEC sp_cursorclose @cursor

 

B. Create a cursor for a parameterized SELECT statement

This example creates a dynamic read-only cursor for a SELECT statement with 2 parameters.

USE pubs

 

-- Create a dynamc read-only cursor

DECLARE @cursor INT

EXEC sp_cursoropen @cursor OUTPUT, N'SELECT * FROM myTable WHERE col1=@P1 AND col2 LIKE @P2', 2, 8193, N'@P1 INT, @P2 VARCHAR(255)', 10, '%x%'

 

-- Close the cursor

EXEC sp_cursorclose @cursor

 

C. Create a cursor for a stored procedure call

This example creates a dynamic read-only cursor for a stored procedure with 2 parameters (the procedure must return only one result set or the cursor creation will fail). Note that output parameters can also be used and return values retrieved via output parameters.

USE pubs

 

-- Create a dynamc read-only cursor

DECLARE @cursor INT

DECLARE @retval INT

EXEC sp_cursoropen @cursor OUTPUT, 'EXEC @P1=myProc @P2', 2, 8193, N'@P1 INT OUTPUT, @P2 INT', @retval, 1

 

-- Close the cursor

EXEC sp_cursorclose @cursor

 

sp_cursorfetch

Fetches a row or block of rows from an API server cursor.

Syntax

sp_cursorfetch [@cursor =] cursor_handle
    [, [@fetchtype =] fetchtype]
    [, [@rownum =] rownum OUTPUT]
    [, [@nrows =] nrows OUTPUT]

Arguments
[ @cursor =] cursor_handle
Is the cursor handle. cursor_handle is int, with no default.
[ @fetchtype =] fetchtype
Is the fetch type. fetchtype is int, with a default of 2 and can have one of these values.

ValueDescription
0x0001First row.
0x0002Next row.
0x0004Previous row.
0x0008Last row.
0x0010Absolute row index.
0x0020Relative row index.
0x0040By value (???).
0x0080Refresh.
0x0100Result set info.
0x0200Previous noadjust (?).
0x0400Skip update concurrency (???).
[ @rownum =] rownum OUTPUT
Is the row number. rownum is int, with a default of NULL.
[ @nrows =] nrows OUTPUT
Is the number of rows to fetch. nrows is int, with a default of NULL (fetch all rows).
Return Code Values

0 (success) or 1 (failure).

Result Sets

Returns the requested row or group of rows from the cursor.

Remarks

In addition to fetching rows, the 'result set info' fetch type can be used to retrieve information about the cursor (current row in @rownum and total number of rows in @nrows).

Permissions

Execute permissions default to the public role.

Example

USE pubs

 

-- Create a dynamc read-only cursor

DECLARE @cursor INT

EXEC sp_cursoropen @cursor OUTPUT, 'SELECT * FROM myTable', 2, 8193

 

-- Fetch the next 3 lines

EXEC sp_cursorfetch @cursor, 2, 0, 3

 

-- Close the cursor

EXEC sp_cursorclose @cursor

 

sp_cursorclose

Closes ande deallocates an API server cursor.

Syntax

sp_cursorclose [@cursor =] cursor_handle

Arguments
[ @cursor =] cursor_handle
Is a cursor handle obtained by calling sp_cursorcreate. cursor_handle is int, with no default.
Return Code Values

0 (success) or 1 (failure).

Result Sets

None.

Permissions

Execute permissions default to the public role.

Example

USE pubs

 

-- Create a dynamic read-only cursor

DECLARE @cursor INT

EXEC sp_cursoropen @cursor OUTPUT, 'SELECT * FROM myTable', 2, 8193

 

-- Close the cursor

EXEC sp_cursorclose @cursor

 

sp_cursoroption

Sets various options for API server cursors.

Syntax

sp_cursoroption [@cursor =] cursor_handle,
    [@code =] code,
    { [@value =] value
    | [@cursorname =] cursorname }

Arguments
[ @cursor =] cursor_handle
Is a cursor handle obtained by calling sp_cursorcreate. cursor_handle is int, with no default.
[ @code =] code
Is the option code. code is int, with no default and can be one of these values.

ValueDescription
1Only return the TEXTPTR of the LOB column specified by value
2Set cursor name.
[ @value =] value
Is the value of the selected option (for option 1 it's the index of the LOB column). value is int, with no default.
[ @cursorname =] cursorname
Is the name for the cursor. cursorname is sysname, with no default.
Return Code Values

0 (success) or 1 (failure).

Result Sets

None.

Permissions

Execute permissions default to the public role.

Example

USE pubs

 

-- Create a dynamc cursor

DECLARE @cursor INT

EXEC sp_cursoropen @cursor OUTPUT, 'SELECT * FROM myTable', 2, 8193

 

-- Name the cursor

EXEC sp_cursoroption @cursor, 2, 'myCursor'

 

-- Use a cursor variable to access the cursor

DECLARE @x CURSOR

EXEC sp_describe_cursor @x out, N'global', 'myCursor'

FETCH NEXT FROM @x

 

-- Use the cursor directly by name

FETCH NEXT FROM myCursor

 

-- Close the cursor

EXEC sp_cursorclose @cursor

 

sp_cursor

Can be used to request inserts and positioned updates or deletes on API server cursors.

Syntax

sp_cursor [@cursor =] cursor_handle,
    [@optype =] optype,
    [@rownum =] rownum,
    [@table =] 'table'
    {, [@param1 =] value1 [,...n] }

Arguments
[ @cursor =] cursor_handle
Is a cursor handle obtained by calling sp_cursorcreate. cursor_handle is int, with no default.
[ @optype =] optype
Is a the operation to perform. optype is int, with no default and can be one of these values.

ValueDescription
1Update row (?).
4Insert row.
33Update row.
34Delete row.
[ @rownum =] rownum
Is the number of the row to update in the fetch cache. rownum is int, with no default.
[ @table =] ' table'
Is the name of the table to update (an empty character string seems to be ok). table is sysname, with no default.
Return Code Values

0 (success) or 1 (failure).

Result Sets

None.

Permissions

Execute permissions default to the public role.

Example

USE pubs

 

-- Create a dynamc cursor

DECLARE @cursor INT

EXEC sp_cursoropen @cursor OUTPUT, 'SELECT * FROM myTable', 2, 8193

 

-- Fetch the next 2 lines; this puts lines 1 and 2 in the fetch buffer

EXEC sp_cursorfetch @cursor, 2, 0, 2

 

-- Update the second line in the fetch buffer

EXEC sp_cursor @cursor, 33, 2, '', @intCol=5, @charCol='x'

 

-- Close the cursor

EXEC sp_cursorclose @cursor

 

sp_cursorprepare

Used to prepare a parameterized cursor statement.

Syntax

sp_cursorprepare [@cursor =] statement_handle OUTPUT,
     [@paramdef =] N'parameter_name data_type [,...n]',
     [@stmt =] N'stmt',
     [@options =] options,
    [, [@scrollopt =] scroll_options OUTPUT]
    [, [@ccopt =] concurrency_options OUTPUT]

Arguments
[ @cursor =] statement_handle
Is the name of a declared integer variable to receive the statement handle. statement_handle is int, with no default.
[ @paramdef =] N' parameter_name data_type [, ...n]'
Is one string that contains the definitions of all parameters that have been embedded in stmt. Each parameter definition consists of a parameter name and a data type. n is a placeholder indicating additional parameter definitions. Every parameter specified in stmt must be defined in @paramdef.
[ @stmt =] ' stmt'

Is a string containing a single SELECT statement or a single stored procedure call. The size of the string is limited only by available database server memory. stmt can contain parameters having the same form as a variable name, for example:

'SELECT * FROM Employees WHERE EmployeeID = @IDParameter'

Each parameter included in stmt must have a corresponding entry in both the @paramdef parameter definition list.

[ @options =] options
An integer value. The exact function of this parameter is unknown. options is int, with a value of 1.
[ @scrollopt =] scroll_options OUTPUT
Is the cursor scroll type. scroll_options is int with a default of 1 (keyset-driven). See sp_cursoropen for more information.
On return, @scrollopt contains the type of cursor actually created, which may not match what was requested.
[ @ccopt =] concurrency_options OUTPUT
Is the cursor concurrency. concurrency_options is int, with a default of 4 (optimistic). See sp_cursoropen for more information.
On return, @ccopt contains the type of cursor actually created, which may not match what was requested.
Return Code Values

0 (success) or 1 (failure).

Result Sets

None.

Permissions

Execute permissions default to the public role.

Example

sp_cursorprepexec

Used to prepare and open a parameterized cursor statement. This command combines the functions of the sp_cursorprepare and sp_cursorexecute procedures and is available from SQL2000 onwards.

Syntax

sp_cursorprepexec [@handle =] statement_handle OUTPUT,
     [@cursor =] cursor_handle OUTPUT,
     [@paramdef =] N'parameter_name data_type, [,...n]'
     [@stmt =] N'stmt',
    [, [@scrollopt =] scroll_options OUTPUT]
    [, [@ccopt =] concurrency_options OUTPUT]
    [, [@rowcount =] rowcount OUTPUT]

Arguments
[ @handle =] statement_handle
Is the name of a declared integer variable to receive the statement handle. statement_handle is int, with no default.
[ @cursor =] cursor_handle OUTPUT
Is the name of a declared integer variable to receive the cursor handle. cursor_handle is int, with no default.
[ @paramdef =] N' parameter_name data_type [, ...n]'
Is one string that contains the definitions of all parameters that have been embedded in stmt. Each parameter definition consists of a parameter name and a data type. n is a placeholder indicating additional parameter definitions. Every parameter specified in stmt must be defined in @paramdef.
[ @stmt =] ' stmt'

Is a string containing a single SELECT statement or a single stored procedure call. The size of the string is limited only by available database server memory. stmt can contain parameters having the same form as a variable name, for example:

'SELECT * FROM Employees WHERE EmployeeID = @IDParameter'

Each parameter included in stmt must have a corresponding entry in both the @paramdef parameter definition list.

[ @scrollopt =] scroll_options OUTPUT
Is the cursor scroll type. scroll_options is int with a default of 1 (keyset-driven). See sp_cursoropen for more information.
On return, @scrollopt contains the type of cursor actually created, which may not match what was requested.
[ @ccopt =] concurrency_options OUTPUT
Is the cursor concurrency. concurrency_options is int, with a default of 4 (optimistic). See sp_cursoropen for more information.
On return, @ccopt contains the type of cursor actually created, which may not match what was requested.
[ @rowcount =] rowcount OUTPUT
Is the name of a declared integer variable to receive the number of affected rows. rowcount is int with no default value.
Return Code Values

0 (success) or 1 (failure).

Result Sets

Returns the result set generated by stmt, but containing no rows.

Permissions

Execute permissions default to the public role.

Example

sp_cursorexecute

Used to execute (open) a prepared cursor statement.

Syntax

sp_cursorexecute [@handle =] statement_handle,
     [@cursor =] cursor_handle OUTPUT,
    [, [@scrollopt =] scroll_options OUTPUT]
    [, [@ccopt =] concurrency_options OUTPUT]
    [, [@rowcount =] rowcount OUTPUT]
    {, [@param1 =] value1 [,...n] }

Arguments
[ @handle =] statement_handle
Is the integer value of the statement handle. statement_handle is int, with no default.
[ @cursor =] cursor_handle OUTPUT
Is the name of a declared integer variable to receive the cursor handle. cursor_handle is int, with no default.
[ @scrollopt =] scroll_options OUTPUT
Is the cursor scroll type. scroll_options is int with a default of 1 (keyset-driven). See sp_cursoropen for more information.
On return, @scrollopt contains the type of cursor actually created, which may not match what was requested.
[ @ccopt =] concurrency_options OUTPUT
Is the cursor concurrency. concurrency_options is int, with a default of 4 (optimistic). See sp_cursoropen for more information.
On return, @ccopt contains the type of cursor actually created, which may not match what was requested.
[ @rowcount =] rowcount OUTPUT
Is the name of a declared integer variable to receive the number of affected rows. rowcount is int with no default value.
[ @ param1 =] value1
Is a value for the first parameter defined in the parameter string. The value can be a constant or a variable. There must be a parameter value supplied for every parameter included in stmt. The values are not needed if the Transact-SQL statement in stmt has no parameters.
n
Is a placeholder for the values of additional parameters. Values can be only constants or variables. Values cannot be more complex expressions such as functions, or expressions built using operators.
Return Code Values

0 (success) or 1 (failure).

Result Sets

Returns the result set generated by the prepared statement handle, but containing no rows.

Permissions

Execute permissions default to the public role.

Example

sp_cursorunprepare

Used to free a prepared cursor statement.

Syntax

sp_cursorunprepare [@handle =] statement_handle

Arguments
[ @handle =] statement_handle
Is the integer value of the statement handle. statement_handle is int, with no default.
Return Code Values

0 (success) or 1 (failure).

Result Sets

None.

Permissions

Execute permissions default to the public role.

Example

sp_prepare

Used to prepare a parameterized SQL statement.

Syntax

sp_prepare [@handle =] statement_handle OUTPUT,
     [@paramdef =] N'parameter_name data_type [,...n]',
     [@stmt =] N'stmt',
     [@flag =] flag,

Arguments
[ @handle =] statement_handle
Is the name of a declared integer variable to receive the statement handle. statement_handle is int, with no default.
[ @paramdef =] N' parameter_name data_type [, ...n]'
Is one string that contains the definitions of all parameters that have been embedded in stmt. Each parameter definition consists of a parameter name and a data type. n is a placeholder indicating additional parameter definitions. Every parameter specified in stmt must be defined in @paramdef.
[ @stmt =] ' stmt'

Is a string containing a single SELECT statement or a single stored procedure call. The size of the string is limited only by available database server memory. stmt can contain parameters having the same form as a variable name, for example:

'SELECT * FROM Employees WHERE EmployeeID = @IDParameter'

Each parameter included in stmt must have a corresponding entry in both the @paramdef parameter definition list.

[ @flag =] flag
An integer value. The exact function of this flag is unknown. flag is int, with value of 1.
Return Code Values

0 (success) or 1 (failure).

Result Sets

None.

Permissions

Execute permissions default to the public role.

Example

sp_execute

Used to execute a prepared SQL statement.

Syntax

sp_execute [@handle =] statement_handle
    {, [@param1 =] value1 [,...n] }

Arguments
[ @handle =] statement_handle
Is the integer value of the statement handle. statement_handle is int, with no default.
[ @ param1 =] value1
Is a value for the first parameter defined in the parameter string. The value can be a constant or a variable. There must be a parameter value supplied for every parameter included in prepared statement handle. The values are not needed if the Transact-SQL statement in stmt has no parameters.
n
Is a placeholder for the values of additional parameters. Values can be only constants or variables. Values cannot be more complex expressions such as functions, or expressions built using operators.
Return Code Values

0 (success) or 1 (failure).

Result Sets

Returns a result set if specified by the prepared statement.

Permissions

Execute permissions default to the public role.

Example

sp_unprepare

Used to free a prepared SQL statement.

Syntax

sp_unprepare [@handle =] statement_handle

Arguments
[ @handle =] statement_handle
Is the integer value of the statement handle. statement_handle is int, with no default.
Return Code Values

0 (success) or 1 (failure).

Result Sets

None.

Permissions

Execute permissions default to the public role.

Example

sp_prepexec

Used to prepare and execute a parameterized SQL statement. This command combines the functions of the sp_prepare and sp_execute procedures and is available from SQL2000 onwards.

Syntax

sp_prepexec [@handle =] statement_handle OUTPUT,
     [@paramdef =] N'parameter_name data_type, [,...n]'
     [@stmt =] N'stmt',
    {, [@param1 =] value1 [,...n] }

Arguments
[ @handle =] statement_handle
Is the name of a declared integer variable to receive the statement handle. statement_handle is int, with no default.
[ @paramdef =] N' parameter_name data_type [, ...n]'
Is one string that contains the definitions of all parameters that have been embedded in stmt. Each parameter definition consists of a parameter name and a data type. n is a placeholder indicating additional parameter definitions. Every parameter specified in stmt must be defined in @paramdef.
[ @stmt =] ' stmt'

Is a string containing a valid SQL statement. The size of the string is limited only by available database server memory. stmt can contain parameters having the same form as a variable name, for example:

'SELECT * FROM Employees WHERE EmployeeID = @IDParameter'

Each parameter included in stmt must have a corresponding entry in both the @paramdef parameter definition list.

[ @ param1 =] value1
Is a value for the first parameter defined in the parameter string. The value can be a constant or a variable. There must be a parameter value supplied for every parameter included in stmt. The values are not needed if the Transact-SQL statement in stmt has no parameters.
n
Is a placeholder for the values of additional parameters. Values can be only constants or variables. Values cannot be more complex expressions such as functions, or expressions built using operators.
Return Code Values

0 (success) or 1 (failure).

Result Sets

Returns a result set if specified by the prepared statement.

Permissions

Execute permissions default to the public role.

Example

 

YOLO26涨点改进 | 全网独家创新,注意力改进篇 | TGRS 2025 | 引入APCM自适应像素级协同机制,动态增强目标区域、抑制背景噪声,助力YOLO26做红外小目标检测有效涨点 本文提出一种基于APCM模块改进的YOLO26网络模型,通过像素级局部-全局协同建模动态增强目标特征并抑制背景噪声。APCM模块采用轻量化设计,无需复杂参数,在特征提取阶段有效提升目标区域特征表达质量,尤其适用于低对比度和复杂场景下的目标检测。实验表明,该方法能显著提高小目标检测精度和模型鲁棒性,同时保持较低计算开销。模块通过局部特征分支和全局特征分支的协同融合,实现了对红外小目标的有效增强,在NUAA-SIRST和IRSTD-1K数据集上性能优于现有方法。文章还提供了完整的代码实现和配置指南。 阅读详情

相关推荐

Halcon dyn_threshold详解

dyn_threshold 原型 dyn_threshold(OrigImage, ThresholdImage : RegionDynThresh : Offset, LightDark : ) 功能 利用局部阈值分割图像 参数列表 OrigImage (input_object):原始图像 ThresholdImage (input_object):处理后图像(一般采用滤波处理) RegionDynThresh (output_object):分割后区域 Offset (input_control):灰

ZiLiangQin的博客 1万+

游标脚本性能问题解决与分析 (1) - Cursor Performance Analysis

第一部分:游标类型对性能影响的实例引出 下面的两个游标脚本分别创建并执行了dynamic和fast forward only两种类型的游标: 不理想的游标类型:...

cuge2009的博客 308

光谱特征选择之模拟退火算法SA

光谱特征选择之模拟退火算法SA。

weixin_42621095的博客 901

System stored procedures

System stored procedures This document contains information on undocumented stored procedures in Microsoft SQL Server. Name Function ...

weixin_30319097的博客 150

拆解大疆M300电池BMS:基于TI TIDA-010030方案的硬件架构深度分析

本文深度解析了大疆M300无人机电池管理系统(BMS)基于TI TIDA-010030参考设计的硬件架构。通过对比TI方案与大疆实现的差异,详细介绍了BQ7694003监控前端和BQ34Z100电量计的优化设计,以及通信架构的可靠性改进。文章还揭示了大疆在成本、空间和标准化方面的工程妥协与创新平衡,为锂电池保护方案提供了实践参考。

weixin_27066963的博客 238

【Python办公】剪贴板记录工具(记录文本 + 图片防重复)

本文介绍了一个用Python开发的剪贴板记录工具,能够自动记录复制过的文本和图片内容。该工具使用tkinter构建GUI界面,通过后台线程实时监控剪贴板变化,具有文本记录、图片保存(自动去重)功能。核心代码采用pyperclip访问剪贴板,PIL处理图片,hashlib计算图片哈希值实现去重。运行程序后,文本内容直接显示在界面,图片保存为PNG文件并记录路径。工具还提供清空历史记录功能,适合日常办公中需要追踪剪贴板历史的使用场景。

weixin_42636075的博客 240

一些在帮助中找不到的系统存储过程

一些特殊的系统存储过程,在帮助里面一般找不到相应的说明。如sp_cursoropen.[@more@]一些特殊的系统存储过程,在帮助里面一般找不到相应的说明。如sp_cursoropen.System stored proced...

160

【AlphaFold2】深入浅出,讲解Evoformer|学习笔记

本篇博客是围绕youtube德国博主Kilian Mandon()的《从头实现AlphaFold2:AlphaFold Decoded》的第五期视频讲解和note-book内容写成的笔记,加上了自己的理解和对相关概念的解释。上期我们讲解了AlphaFold2的特征提前的部分【AlphaFold2】Feature extraction:提取特征,为模型输入做准备|Datapipeline讲解。本期,我们将介绍AlphaFold2中最为庞大且最为重要的部分——Evoformer。

Yaoyao2024的博客 2015

系統存儲過程-System stored procedures

System stored procedures This document contains information on undocumented stored procedures in Microsoft SQL Server.   Name Function ...

weixin_34138521的博客 136

【目标检测】基于yolov5的水下垃圾检测(附代码和数据集,7684张图片)

【目标检测】基于yolov5的水下垃圾检测(附代码和数据集)

学无止境、积少成多、厚积薄发 4183

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

Undocumented System Stored Procedures

System stored proceduresThis document contains information on undocumented stored procedures in Microsoft SQL Server. NameFunction sp_cursorUpdate a cursor sp_cursorcloseclose a cursor s

sunshine_anycall的专栏 610

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

SQL Server应用程序中的高级SQL注入(2)

SQL Server应用程序中的高级SQL注入 [xp_cmdshell] 许多存储过程被创建在SQLSERVER中,执行各种各样的功能,例如发送电子邮件和与注册表交互。 Xp_cmdshell是一个允许执行任意的命令行命令的内置的存储过程。例如: Exec master..xp_cmdshell ’dir’ 将获得SQLSERVER进程的当前工作目录中的目录列表。 Exec master..xp...

编程开发资料库 234

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

Creating recurive stored procedures in T-SQL.

In SQLServer, I tried to define a stored procedure to recursively invoke itself (See the following T-SQL statements). However, the maximum nesting level of recursion is 30 (Tested under SQL Server 200...

weixin_30532369的博客 81

SQL Server2008--系统视图

SQL Server的物理存储由若干数据库构成,其中 数据库类别 数据库名称 数据库描述 系统数据库 master master 数据库记录 SQL Server 系统的所有系统级信息。主要包括实例范围的元数据、端点、链接服务器 和系统配置设置以及记录了所有其他数据库的存在、数据库文件的位置以及 SQL Server 的初始化信息。 model 提供了SQL...

data eudemon 805

SQLSERVER系统视图,系统表,sys.sql_modules视图

为什么80%的码农都做不了架构师?>>> ...

weixin_34292924的博客 443

SQL Server存储引擎(2) - 内存

1、SQL SERVER 内存结构;2、SQL SERVER内存管理

张骞 2403

SQLServer 系统视图 (部分)

SQLServer中提供了相当丰富的系统视图,能够从宏观到微观,从静态到动态反应数据库对象的存储结果、系统性能、系统等待事件等等。同时 也保留了与早期版本兼容性的视图,主要差别在于SQLServer2008提供的新系统视图一是更加全面和丰富、二是更注重命名规则。         SQLServer2008的几乎所有对象信息都存在于sys.objects系统视图中,同时又在不同的系统视图中保留

wacthamu的专栏 867

SQL Server存储引擎 - 01. 内存

一. SQL SERVER 内存结构 SQL SERVER 内存结构简图 SQL SERVER 内存空间主要可分为两部分: 1.1、可执行代码(Executable Code) 主要包括SQL SERVER 实例中的一些EXE和DLL文件 (0)SQL SERVER 引擎(SQL SERVER ENGINE),SQL SERVER 数据库的主程序; (1)服务端网络库(SERVER NET-LIBRARY),用于与客户端网络库通讯,将TDS包交给开放数据服务(OPEN DA...

b_flower的专栏 665

SQL Server存储引擎 - 02. 内存

一. SQL SERVER 内存结构SQL SERVER 内存结构简图SQL SERVER 内存空间主要可分为两部分:1.1、可执行代码(Executable Code)主要包括SQL SERVER 实例中的一些EXE和DLL文件(0)SQL SERVER 引擎(SQL SERVER ENGINE),SQL SERVER 数据库的主程序;(1)服务端网络库(SERVER NE...

weixin_33866037的博客 91
上一篇: 使IFrame根据内容自动调整大小
下一篇: MagicAjax配置
libraworm
博客等级 码龄24年 3粉丝 24原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值