Solved

T-SQL Error - NON_TRANSACTED_ACCESS

Posted on 2014-02-07
3
1,826 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
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

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now