Problem With Adding FileStream To My DB

  • Hi To All

    I have an problem with adding FileStream in SQL Server 2008.

    *I enabled FileStream in my SQL Server Instance

    *I enabled FileStream in my DB

    my error is:

    Unable to open the physical file "F:\FileStream\Devins_FS". Operating system error -2147024891: "0x80070005(failed to retrieve text for this error. Reason: 1815)". (Microsoft SQL Server, Error: 5120)

    *I logged in with sa User and my windows user is Administrator

    *Windows Version: Windows Server 2003 R2 x64

    Please Help Me...

    Thank You...

  • Thanks for your reply.

    I enabled FileStream feature

    this problem is only for one server in my organization and other servers work without problem.

    Please Help Me...

  • Does the account that SQL Server is running under have access to that drive and/or share? It sounds like a security issue.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • yes.

    we logged in as administrator user and have full access.

    I haven't problem with create a new DB and adding other File Groups and Files

    my problem is only with FileStream.

  • It still sounds like a permissions problem.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • I would suggest you login to SQL Server using your Windows account (administrator) rather than using 'sa' (sql server authentication) and try again.

    .

  • As Grant Fritchey said, it is probably a permission issue.

    One thing I often see and it's overlook is the file / folder permission. Even if all services are using admins right etc, if the file / folder property is "read-only" flagged then that kind error can arise. (this permission is not bypassed by admin rights)

    One way to easily reproduced it is trying to perform a backup overwriting one already existing having the read only file flag set at the file level. It will raise that error.

  • did you manage to solve the problem?

    i got the same one

    Thanks

    peleg

  • Even i am facing the same pbm

  • there is a bug opened on that issue

    check if the service is running as "NetworkService"

    and change it to a user with Admin priviliges.

    after it restart the service and check again

    good luck!:-D

  • Thanks for the reply, i tried your suggestion, but still throwing error Unable to open the physical file. Operating system error -2147024891: "0x80070005(Access is denied.)".

  • I'd try....

    Log in using the windows SQL account your SQL services are running under.

    Stop SQL Server so the fielstream file is not locked and then see if you can move or rename the file.

    If you can't move or rename the file it is a permsisions issue.

    Also, check the file attributes.

  • I got the error when i tried to create the database with filestream filegroup by using the below script.

    CREATE DATABASE TEST

    ON

    PRIMARY (

    NAME = TESTDB,

    FILENAME = 'E:\Tempfs\fs\TESTDB.mdf'

    ), FILEGROUP TESTFS CONTAINS FILESTREAM(

    NAME = TESTFS,

    FILENAME = 'E:\Tempfs\fs\TESTFS')

    LOG ON (

    NAME = TESTLOG,

    FILENAME = 'E:\Tempfs\fs\TESTLOG.ldf')

    GO

    The error is as below Unable to open the physical file "E:\Tempfs\fs\TESTFS". Operating system error -2147024891: "0x80070005(Access is denied.)".

    Thanks,

    Starterm

  • I've tried your code and there is nothing wrong with it so it still looks like permissions.

Viewing 15 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic. Login to reply