Solved

T-SQL Error - NON_TRANSACTED_ACCESS

Posted on 2014-02-07
3
1,896 Views
Last Modified: 2014-02-22
I am getting error "Msg 102, Level 15, State 25, Line 14 Incorrect syntax near 'FILESTREAM'." and I cannot figure it out.  Something to do with the NON_TRANSACTED_ACCESS.


CREATE DATABASE MyFileTableTest  
ON  PRIMARY  
(  
NAME = N'MyFileTableTest',  
FILENAME = N'C:\FileTable\MyFileTableTest.mdf'  
),  
FILEGROUP FilestreamFG CONTAINS FILESTREAM      
(  NAME = MyFileStreamData,  
FILENAME= 'C:\FileTable\Data'  
)  
LOG ON  
(  
NAME = N'MyFileTableTest_Log',  
FILENAME = N'C:\FileTable\MyFileTableTest_log.ldf'  
)  
WITH FILESTREAM  
(  NON_TRANSACTED_ACCESS = FULL,  
DIRECTORY_NAME = N'FileTable'  
)
0
Comment
Question by:hojohappy
3 Comments
 
LVL 15

Accepted Solution

by:
deepakChauhan earned 500 total points
ID: 39843844
I think you are executing above statement in SQL Server 2008. If yes, then please remove the lines "WITH FILESTREAM  
(  NON_TRANSACTED_ACCESS = FULL,  
DIRECTORY_NAME = N'FileTable'  
)".
0
 

Author Comment

by:hojohappy
ID: 39844106
No.  I am running this in on SQL Server 2012 Express
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39844617
I am running this in on SQL Server 2012 Express
That may be true, but what is the Compatibility level of the database?
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
TSQL query to generate xml 4 36
MSSQL Import .SQL files - Increase Import Speed 9 43
SQL invalid column name 5 14
SQL Server syntax 4 23
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question