This is a migrated thread and some comments may be shown as answers.

Partial updates are not supported on columns that have a FILESTREAM as a source.

1 Answer 144 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kendall
Top achievements
Rank 1
Kendall asked on 12 Nov 2015, 01:17 PM

I'm having some trouble with using FILESTREAM columns in SQL Server with Data Access. This is the error I'm getting:

 Telerik.OpenAccess.RT.sql.SQLException: Partial updates are not supported on columns that have a FILESTREAM as a source.

Statement(s) could not be prepared. ---> System.Data.SqlClient.SqlException: Partial updates are not supported on columns that have a FILESTREAM as a source.

Statement(s) could not be prepared.

 Are FILESTREAM columns supported at all by Data Access when using BinaryStream? I'm not doing anything that I would expect to cause a partial update. Here is my SQL and an adapted version of my C#:

SQL:

[BinaryData] varbinary(max) FILESTREAM

C#:

Blob blob = new Blob();
context.Add(blob);
context.SaveChanges();
blob.BinaryData.Write(Encoding.ASCII.GetBytes("Hello, World!"), 0, 13);
context.SaveChanges();

The error happens on the last line.

1 Answer, 1 is accepted

Sort by
0
Accepted
Kristian Nikolov
Telerik team
answered on 17 Nov 2015, 02:50 PM
Hello Kendall,

Thank you for contacting us.

While Telerik DataAccess does support binary columns, FileStream columns in particular are not currently supported. We have this missing functionality logged in our system, but we are unable to provide you with any time frame as to when it would be addressed.

I hope this helps. Feel free to get back to us in case you have further questions.

Regards,
Kristian Nikolov
Telerik
 
Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
Tags
Databases and Data Types
Asked by
Kendall
Top achievements
Rank 1
Answers by
Kristian Nikolov
Telerik team
Share this question
or