Solved

Filestream not being configured

Posted on 2011-09-16
10
240 Views
Last Modified: 2012-05-12
Hello,

Okay, so I've been trying to create and attach the AdventureWorks2008 database.  Yeah I Know, I've enabled filestream and full text is up and running.  It looks like the code is hanging up when I'm trying to create the database in the Create Database statement.  It just hangs there.  In fact, I have to shut down the computer because it get locked up.  When I check where the database is supposed located, it's there but when I run the following
IF EXISTS(
    SELECT * FROM sys.database_files
    WHERE type_desc = 'FILESTREAM'
) PRINT 'FILESTREAM Configured'
ELSE
  PRINT 'FILESTREAM Not Configured'

I get back Filestream Not configured

I've been at this for 3 daiys


PRINT '';
PRINT '*** Enabling FileStream';
GO

EXEC sp_configure 'filestream_access_level', '2'
RECONFIGURE
GO

-- ****************************************
-- Create Database
-- ****************************************
PRINT '';
PRINT '*** Creating Database';
GO

CREATE DATABASE [AdventureWorks2008] 
    ON 
    PRIMARY (NAME = 'AdventureWorks2008_Data', 
		FILENAME = 'C:\Program Files\Microsoft SQL Server\OMICRON\MSSQL10.OMICRON\MSSQL\DATA\AdventureWorks2008_Data.mdf'), 
    FILEGROUP DocumentFileStreamGroup CONTAINS FILESTREAM( NAME = FileStreamDocuments, 
		FILENAME = 'C:\Program Files\Microsoft SQL Server\OMICRON\MSSQL10.OMICRON\MSSQL\DATA\Documents')
    LOG ON ( NAME = 'AdventureWorks2008_Log', 
		FILENAME = 'C:\Program Files\Microsoft SQL Server\OMICRON\MSSQL10.OMICRON\MSSQL\DATA\AdventureWorks2008_Log.ldf');
GO

Open in new window

0
Comment
Question by:chtullu135
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 8

Expert Comment

by:venk_r
ID: 36550616
the below query will tell you howmany tables have been enabled for filestream
SELECT name
FROM sys.tables
WHERE filestream_data_space_id IS NOT NULL

0
 
LVL 8

Expert Comment

by:venk_r
ID: 36550664
You can also check across database with below query

SELECT DISTINCT DB_NAME(database_id)
FROM sys.master_files
WHERE type_desc = 'FILESTREAM'


--------------------------------------------------------------------------------
0
 

Author Comment

by:chtullu135
ID: 36550716
I ran the above code and zero results were returned.  Apparently the database was not being configured for filestream
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 8

Accepted Solution

by:
venk_r earned 500 total points
ID: 36550778
You cannot enable FILESTREAM on a 32-bit version of SQL Server running on a 64-bit operating system.
What are the versions?
 

0
 

Author Comment

by:chtullu135
ID: 36550815
I am running on XP Professional and I am running the 32 bit version a SQL Server 2008 (not the R2 version)
0
 
LVL 8

Expert Comment

by:venk_r
ID: 36550848
is your machine 64 or 32 bit?
0
 

Author Comment

by:chtullu135
ID: 36550855
It's 32 bit
0
 
LVL 8

Expert Comment

by:venk_r
ID: 36550910
Try from UI instead and see if it works.

To enable FILESTREAM feature on SQL Server 2008:

1.Open SQL Server Configuration Manager (Start > Programs > Microsoft SQL Server 2008 > Configuration Tools > SQL Server Configuration Manager)
2.Navigate to the SQL Server Services node and select the SQL Server instance you want to modify SQL Server (MSSQLSERVER)
3.Click the FILESTREAM tab and select the checkboxes to enable FILESTREAM and enter a share name for the files
0
 

Author Comment

by:chtullu135
ID: 36550974
I've already done that.  In fact, I did that during install.  The windows share name is Omicron
0
 

Author Comment

by:chtullu135
ID: 36551013
Attached is a screen shot of the configuration
FileStream.bmp
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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