April 7, 2017 at 5:09 am
I have a Documents table with FSTREAM to save the image.
I need to know the filename of the file that is being saved, Is it possible?
Executing this....
SELECT MyImageField.PathName()
FROM MyDocTable
WHERE IdClient = 'd6817fc1-4bed-405d-88b9-64fe741596a2'
... I get this path
But there is no filename there... and I can't understand this path.
How do I get the filename?
Thanks!
Francesc
April 7, 2017 at 7:01 am
i think you want to use a different function right?
this page from Microsoft has a decent example:
https://docs.microsoft.com/en-us/sql/relational-databases/system-functions/getfilenamespacepath-transact-sql
what does this return for you?SELECT
MyImageField.GetFileNamespacePath() AS FilePath,
MyImageField.PathName() As JustThePath
FROM MyDocTable
WHERE IdClient = 'd6817fc1-4bed-405d-88b9-64fe741596a2'
Lowell
April 10, 2017 at 7:10 am
Hi Lowell.
I get this error...
"La función GetFileNamespacePath solo es válida en la columna FILESTREAM de varbinary(max) en un objeto FileTable."
It would be "Function GetFileNamespacePath is only valid in the FILESTREAM column in a FilteTable Object"
Thanks...
April 12, 2017 at 5:11 am
Thx lowell, this helps me
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply