• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

Filestream not being configured

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
chtullu135
Asked:
chtullu135
  • 5
  • 5
1 Solution
 
venk_rCommented:
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
 
venk_rCommented:
You can also check across database with below query

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


--------------------------------------------------------------------------------
0
 
chtullu135Author Commented:
I ran the above code and zero results were returned.  Apparently the database was not being configured for filestream
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
venk_rCommented:
You cannot enable FILESTREAM on a 32-bit version of SQL Server running on a 64-bit operating system.
What are the versions?
 

0
 
chtullu135Author Commented:
I am running on XP Professional and I am running the 32 bit version a SQL Server 2008 (not the R2 version)
0
 
venk_rCommented:
is your machine 64 or 32 bit?
0
 
chtullu135Author Commented:
It's 32 bit
0
 
venk_rCommented:
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
 
chtullu135Author Commented:
I've already done that.  In fact, I did that during install.  The windows share name is Omicron
0
 
chtullu135Author Commented:
Attached is a screen shot of the configuration
FileStream.bmp
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now