Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 将SQL Server filestream数据保存到临时Access 2010表中_Sql Server_Vba_Ms Access 2010_Attachment_Filestream - Fatal编程技术网

Sql server 将SQL Server filestream数据保存到临时Access 2010表中

Sql server 将SQL Server filestream数据保存到临时Access 2010表中,sql-server,vba,ms-access-2010,attachment,filestream,Sql Server,Vba,Ms Access 2010,Attachment,Filestream,谢谢你抽出时间 问题: 我想将filestream数据从后端保存到前端的临时表中 上下文: Set adoCMD = New ADODB.Command Set adoCon = New ADODB.Connection adoCon.Open "Driver={SQL Server};Server=[ServerNameOmitted];Database=[DatabaseNameOmitted];Trusted_Connection=True;" Set adoCMD.ActiveConne

谢谢你抽出时间

问题:

我想将filestream数据从后端保存到前端的临时表中

上下文:

Set adoCMD = New ADODB.Command
Set adoCon = New ADODB.Connection
adoCon.Open "Driver={SQL Server};Server=[ServerNameOmitted];Database=[DatabaseNameOmitted];Trusted_Connection=True;"
Set adoCMD.ActiveConnection = adoCon

Set adoRS = New ADODB.Recordset
adors.open "BLAH BLAH BLAH"
--'Need a query here which allows me to access all the filestream data for a file

--'Once accessed and set to an ADORS.Recordset, I can loop though and convert back to Access 'attachment' format 
  • 前端-Microsoft Access 2010
  • 后端-SQL Server 2008 R2 Express(已将FILESTREAM启用到级别3)
我刚刚将Access 2010后端迁移到支持filestream的SQL Server 2008,没有问题。作为迁移的一部分,我将Access 2010“附件”列转换为启用filestream的
varbinary(max)
columns

SQL Server实例已为filestream正确配置,即我可以通过SSMS中的t-SQL访问使用filestream存储的文件

我知道如何从Access 2010中与SQL Server实例建立连接

我不知道如何从access 2010中访问filestream数据(文件名、文件类型和文件数据)

访问filestream数据后,我计划将其转换回Access 2010前端临时表中的多值“附件”字段,因为我可以继续使用Access 2010的内置附件功能

性能不是一个很大的问题,因为这个Access 2010前端只供用户使用