今天创建SQL server2005 程序集时,提示权限失败,我是sa权限。
最后通过 添加如下这句才得以通过
1: ALTER DATABASE [TestDB] SET TRUSTWORTHY ON
完整代码如下:
1: USE [TestDB]
2: GO
3: IF EXISTS (SELECT * FROM sys.assemblies asms WHERE asms.name = N'GetImage')
4: DROP ASSEMBLY [ImportMedia]
5:
6: ALTER DATABASE [TestDB] SET TRUSTWORTHY ON
7:
8: CREATE ASSEMBLY GetImageAssem
9: FROM 'C:\GetImage.dll'
10: WITH PERMISSION_SET = EXTERNAL_ACCESS;
11: GO
12:
13: CREATE PROCEDURE DownloadImage
14: (
15: @url nvarchar(200)
16: )
17: AS EXTERNAL NAME
18: GetImageAssem.[GetImage.Down].DownloadImage
19:
20: GO
21:
22: exec DownloadImage 'http://www.hedgate.net/wp-content/uploads/polaroid-chris.png'
分享到:
相关推荐
Loaded with unique tips, tricks, and workarounds for handling the most difficult SQL Server admin issues, this how-to guide deciphers topics such as performance tuning, backup and recovery, scaling ...
The authors present "how-to" <br>solutions and never-before-published tips for SQL Server 2005 installation, <br>upgrades, configuration, authoring, schema design, development, deployment, ...
### SQL Server性能优化十大技巧详解 #### 引言 在SQL Server环境中实现高效稳定的性能是一项挑战性的任务。尽管关于性能优化的一般性建议随处可见,但针对特定问题的深入指导及如何将这些知识应用到实际环境中的...
### Transact-SQL SQL Server 性能调优技巧 #### 概述 本文档主要针对SQL Server中的Transact-SQL查询进行性能优化提供了一系列实用的建议。这些技巧旨在帮助数据库管理员(DBA)和开发人员识别并解决可能导致查询...
备份sqlserver数据库为txt,可远程 局域网连接, 导出建表脚本,存储过程脚本,数据脚本(视图等不会导出) 可批量导出,可导出数据量很大的数据库,会自动拆分为多个数据脚本,注意选择完整模式 tips:表要有主键,且主键...
"SQL Server Tips.zip_Help!_ballk1b_sql"这个压缩包文件显然提供了与SQL Server相关的帮助文档,旨在解决用户遇到的问题或提供解决方案。下面将详细讨论SQL Server的一些核心知识点和实用技巧。 1. **查询优化**:...
SQL Server 2017 Query Performance Tuning is about more than quick tips and fixes. You’ll learn to be proactive in establishing performance baselines using tools such as Performance Monitor and ...
Builds a strong foundation that gets you comfortable using PowerShell with SQL Server - empowering you to create more complex scripts that you need in your day-to-day job.">Provides over a hundred ...
Pro SQL Server Always On Availability Groups is aimed at SQL Server architects, database administrators, and IT professionals who are tasked with architecting and deploying a high-availability and ...
Loaded with unique tips, tricks and workarounds for handling the most difficult SQL Server admin issues, Professional Microsoft SQL Server 2008 Administration is a how-to guide for experienced DBAs....
《WPF Tips: Uncheckable radio buttons》一文的可执行程序示例与源代码。 原文网址:http://blog.csdn.net/xinyaping/article/details/7887663 作者:辛亚平 工程文件为Visual Studio 2008 with .Net Framework 3.5...
This collection of MongoDB tips, tricks, and hacks helps you resolve issues with everything from application design and implementation to data safety and monitoring. You get specific guidance in ...
尖端通过伪时比较对单细胞RNAseq数据进行功能评估的途径意义的轨迹推断直接从R和GitHub启动TIPS步骤1:安装R和RStudio 在运行TIPS之前,您将需要安装R和RStudio。请检查CRAN( )以安装R。请检查以获取有关R的信息。...
使用方法:下载后删除文件名最后的\".zip\"即可得到deb包文件。 博文链接:https://lgn21st.iteye.com/blog/207177