当前位置:网站首页>SQL server saves binary fields to disk file
SQL server saves binary fields to disk file
2022-06-25 11:44:00 【VFP of Garfield】
Fox friends social science heroes shared a piece of code , Binary fields can be saved to disk files .
--open
GO
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'Ole Automation Procedures', 1
RECONFIGURE
GO
EXEC sp_configure 'Ole Automation Procedures'
DECLARE @DATA VARBINARY(MAX)
DECLARE @ObjectToken INT
DECLARE @TIMESTAMP VARCHAR(MAX)
SET @TIMESTAMP = 'd:\abc.png'
EXEC sp_OACreate 'ADODB.Stream', @ObjectToken OUTPUT
EXEC sp_OASetProperty @ObjectToken, 'Type', 1
EXEC sp_OAMethod @ObjectToken, 'Open'
EXEC sp_OAMethod @ObjectToken, 'Write', NULL, @DATA
EXEC sp_OAMethod @ObjectToken, 'SaveToFile', NULL, @TIMESTAMP, 2
EXEC sp_OAMethod @ObjectToken, 'Close'
EXEC sp_OADestroy @ObjectToken
SELECT @TIMESTAMP
--close
GO
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'Ole Automation Procedures', 0
RECONFIGURE
GO
EXEC sp_configure 'Ole Automation Procedures'
GO
sp_configure 'show advanced options', 0
RECONFIGURE
Of course ,myfll author : Papaya , Brother Gua also wrote a set dll, Coping with MSSQLSERVER Manage the of files DLL,
At the request of guage , Only for appreciation .

File management function
Heroes in the community , many master-hands . The expert filled up all the pits , You can drive on the highway .
The fastest way for people to grow
Is to practice Kung Fu with experts .
The core outline of practice is daily work .
Daily work is : See a piece of good code every day , Try copying a piece of code .
Garfield graduated from hosting and speaking five years ago , This can present a better course .
a new year , We will work together .

边栏推荐
- Sentinel integrated Nacos data source
- Thingspanel releases Internet of things mobile client (multiple pictures)
- Spannable and editable, spannablestring and spannablestring
- Capacity expansion mechanism of Dict Of redis (rehash)
- Simple use of stream (II)
- 芯片的发展史和具体用途以及结构是什么样的
- An interesting logic SRC mining
- C disk uses 100% cleaning method
- Spark history server performance improvement (I) -- Application List
- JS judge whether a number is in the set
猜你喜欢

分享7个神仙壁纸网站,让新的壁纸,给自己小小的雀跃,不陷入年年日日的重复。

牛客网:旋转数组

Share 7 immortal wallpaper websites, let the new wallpaper give you a little joy, and don't fall into the repetition year after year.

Vulnérabilité à l'injection SQL (contournement)

Flink deeply understands the graph generation process (source code interpretation)

What is the development history, specific uses and structure of the chip

按钮多次点击造成结果

翌圣生物冲刺科创板:25%收入来自新冠产品销售 拟募资11亿

记一次有趣的逻辑SRC挖掘

Shichuang Energy sprint Technology Innovation Board: le chiffre d'affaires annuel prévu de 1,1 milliard de RMB est de 0,7 milliard de RMB, en baisse de 36%
随机推荐
TCP如何處理三次握手和四次揮手期間的异常
Customize to prevent repeated submission of annotations (using redis)
基於Minifilter框架的雙緩沖透明加解密驅動 課程論文+項目源碼
文献之有效阅读
SQL injection vulnerability (bypass)
Ladder Side-Tuning:预训练模型的“过墙梯”
基于Minifilter框架的双缓冲透明加解密驱动 课程论文+项目源码
依概率收敛
Caused by: org. xml. sax. SAXParseException; lineNumber: 1; columnNumber: 10; Processing matching '[xx][mm][ll]' is not allowed
Niuke.com: host scheduling
Comment TCP gère - t - il les exceptions lors de trois poignées de main et de quatre vagues?
Evaluating the overall situation of each class in a university based on entropy weight method (formula explanation + simple tool introduction)
揭秘GaussDB(for Redis):全面对比Codis
An interesting logic SRC mining
手机上股票开户安全吗?找谁可以开户啊?
Spark history server performance improvement (I) -- Application List
芯片的发展史和具体用途以及结构是什么样的
Leetcode 1249. Remove invalid brackets (awesome, finally made)
CFCA Anxin sign access
Recommend a virtual machine software available for M1 computer