dbTalk Databases Forums  

Default FILESTREAM filegroup is not available in database

microsoft.public.sqlserver.server microsoft.public.sqlserver.server


Discuss Default FILESTREAM filegroup is not available in database in the microsoft.public.sqlserver.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default Default FILESTREAM filegroup is not available in database - 08-01-2009 , 06:57 AM






Hello,

I am creating a table on a SQL 2008 database as follows:

create table Slides (
ID uniqueidentifier not null
constraint PK_Slide primary key clustered,
[File] varbinary(max) filestream default(0x),
[Name] nvarchar(100) null,
) -- Slides

I get the error:
Default FILESTREAM filegroup is not available in database "MyDatabase"

How can I solve this problem?

Thanks,
Miguel

Reply With Quote
  #2  
Old   
Dan Guzman
 
Posts: n/a

Default Re: Default FILESTREAM filegroup is not available in database - 08-01-2009 , 08:37 AM






Quote:
I get the error:
Default FILESTREAM filegroup is not available in database "MyDatabase"

How can I solve this problem?
A least one FILESTREAM filegroup file is needed in order to use filestream
storage. Also, one of the filestream filegroups needs to be marked as the
default if you don't specify FILESTREAM ON clause in your CREATE TABLE.

You can add a FILESTREAM filegroup to you database from SQL Server
Management Studio or script. In the SSMS objet explorer, right-click the
database node and select Properties-->Filegroups. Add a filestream
filegroup with the default box checked. Then add a folder for that
filesteam storage using Properties-->Files.

Script example (the first FILESTREAM filegroup is the default one):

ADD FILEGROUP Bar CONTAINS FILESTREAM;

ALTER DATABASE Foo
ADD FILE ( NAME = N'Bar',
FILENAME = N'C:\Bar' ) TO FILEGROUP [Bar];

Note that you also need a ROWGUIDCOL to your uniqueidentifier definition.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"shapper" <mdmoura (AT) gmail (DOT) com> wrote

Quote:
Hello,

I am creating a table on a SQL 2008 database as follows:

create table Slides (
ID uniqueidentifier not null
constraint PK_Slide primary key clustered,
[File] varbinary(max) filestream default(0x),
[Name] nvarchar(100) null,
) -- Slides

I get the error:
Default FILESTREAM filegroup is not available in database "MyDatabase"

How can I solve this problem?

Thanks,
Miguel

Reply With Quote
  #3  
Old   
shapper
 
Posts: n/a

Default Re: Default FILESTREAM filegroup is not available in database - 08-01-2009 , 09:36 AM



On Aug 1, 2:37*pm, "Dan Guzman" <guzma... (AT) nospam-online (DOT) sbcglobal.net>
wrote:
Quote:
A least one FILESTREAM filegroup file is needed in order to use filestream
storage. *Also, one of the filestream filegroups needs to be marked as the
default if you don't specify FILESTREAM ON clause in your CREATE TABLE.
I added the following:
add filegroup Slides contains filestream;

So Slides is the default file group.

Quote:
You can add a FILESTREAM filegroup to you database from SQL Server
Management Studio or script. *
I am using Script

Quote:
Script example (the first FILESTREAM filegroup is the default one):

ADD FILEGROUP Bar CONTAINS FILESTREAM;

ALTER DATABASE Foo
* * ADD FILE ( NAME = N'Bar',
* * * * FILENAME = N'C:\Bar' ) TO FILEGROUP [Bar];

I don't understand this. FileGroup will be a folder where the data is
saved, correct?

I have two tables. Posts and Slides, where both ones have a column
named File of type file stream.
How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?

And do I need to specify the path?
Can I define the path as the same as the database file is located?
If not then I will need to change this either using the database on my
computer or on my hosting server.

Quote:
Note that you also need a ROWGUIDCOL to your uniqueidentifier definition.
Should I add this to all my other tables? And shoulc I have clustered
on my IDs?

And don't I also need to do the following for File Stream?

exec [sp_filestream_configure] @enable_level = 3;
go

Reply With Quote
  #4  
Old   
Tibor Karaszi
 
Posts: n/a

Default Re: Default FILESTREAM filegroup is not available in database - 08-01-2009 , 10:57 AM



See replies inline <TK>:

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"shapper" <mdmoura (AT) gmail (DOT) com> wrote

On Aug 1, 2:37 pm, "Dan Guzman" <guzma... (AT) nospam-online (DOT) sbcglobal.net>
wrote:
Quote:
A least one FILESTREAM filegroup file is needed in order to use
filestream
storage. Also, one of the filestream filegroups needs to be marked
as the
default if you don't specify FILESTREAM ON clause in your CREATE
TABLE.
I added the following:
add filegroup Slides contains filestream;

So Slides is the default file group.

Quote:
You can add a FILESTREAM filegroup to you database from SQL Server
Management Studio or script.
I am using Script

Quote:
Script example (the first FILESTREAM filegroup is the default one):

ADD FILEGROUP Bar CONTAINS FILESTREAM;

ALTER DATABASE Foo
ADD FILE ( NAME = N'Bar',
FILENAME = N'C:\Bar' ) TO FILEGROUP [Bar];

I don't understand this. FileGroup will be a folder where the data is
saved, correct?

<TK> Correct.


I have two tables. Posts and Slides, where both ones have a column
named File of type file stream.

<TK> You don't associate a filegroup to a table. You assoiate a
table's filestream data to a filegroup (defined as filestream). The
filegroup in turn need at least one "file", which is really a folder.
You specify where the filestream data for a table will be using the
FILESTREAM_ON option for the CREATE TABLE command.</TK>


How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?

And do I need to specify the path?
Can I define the path as the same as the database file is located?
If not then I will need to change this either using the database on my
computer or on my hosting server.

Quote:
Note that you also need a ROWGUIDCOL to your uniqueidentifier
definition.
Should I add this to all my other tables? And shoulc I have clustered
on my IDs?

And don't I also need to do the following for File Stream?

exec [sp_filestream_configure] @enable_level = 3;
go

Reply With Quote
  #5  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Default FILESTREAM filegroup is not available in database - 08-01-2009 , 12:07 PM



shapper (mdmoura (AT) gmail (DOT) com) writes:
Quote:
I have two tables. Posts and Slides, where both ones have a column
named File of type file stream.
How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?
Once you have create a FILESTREAM filegroup in your database, you don't
need do to more than say just FILESTREAM. But of course you can have
more than one FILSTREAM filegroup, and put different columns in different
places.

Quote:
And do I need to specify the path?
Can I define the path as the same as the database file is located?
The filestream can be a directory in that folder, yes. Depending on
what you plan to use FILESTREAM for, this may or may not be a good idea.

Quote:
If not then I will need to change this either using the database on my
computer or on my hosting server.
You have a database at a web host? In that case you need to discuss
with them whether they support filstream, and particularly at what
access level.

Quote:
Note that you also need a ROWGUIDCOL to your uniqueidentifier definition.

Should I add this to all my other tables? And shoulc I have clustered
on my IDs?
The ROWGUIDCOL is need in tables with FILESTREAM columns. Clustering
has nothing to do with it.

Quote:
And don't I also need to do the following for File Stream?

exec [sp_filestream_configure] @enable_level = 3;
sp_filestream_configure is deprecated. It appeared in the first beta of
SQL 2008, but was quickly phased out. There are two places where you
configure FILSTREAM: "sp_configure 'filestream access level'" and in
SQL Server Configuration Manager. With sp_configure you configure the
SQL Server part of it, and in SQL Server Configuration Manager you
control the OS part of it.



--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
  #6  
Old   
Dan Guzman
 
Posts: n/a

Default Re: Default FILESTREAM filegroup is not available in database - 08-01-2009 , 12:23 PM



I think Tibor has answered most your questions.

Quote:
How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?
You can either use the same filegroup or separate ones for the filestream
data in both tables. Personally, I would use the same (default) filegroup
unless you have a reason to do otherwise. It might be appropriate to
segregate the filegroup storage if you have different recovery (read-only
vs. read-write) or performance (fast vs slow disks) requirements.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"shapper" <mdmoura (AT) gmail (DOT) com> wrote

On Aug 1, 2:37 pm, "Dan Guzman" <guzma... (AT) nospam-online (DOT) sbcglobal.net>
wrote:
Quote:
A least one FILESTREAM filegroup file is needed in order to use filestream
storage. Also, one of the filestream filegroups needs to be marked as the
default if you don't specify FILESTREAM ON clause in your CREATE TABLE.
I added the following:
add filegroup Slides contains filestream;

So Slides is the default file group.

Quote:
You can add a FILESTREAM filegroup to you database from SQL Server
Management Studio or script.
I am using Script

Quote:
Script example (the first FILESTREAM filegroup is the default one):

ADD FILEGROUP Bar CONTAINS FILESTREAM;

ALTER DATABASE Foo
ADD FILE ( NAME = N'Bar',
FILENAME = N'C:\Bar' ) TO FILEGROUP [Bar];

I don't understand this. FileGroup will be a folder where the data is
saved, correct?

I have two tables. Posts and Slides, where both ones have a column
named File of type file stream.
How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?

And do I need to specify the path?
Can I define the path as the same as the database file is located?
If not then I will need to change this either using the database on my
computer or on my hosting server.

Quote:
Note that you also need a ROWGUIDCOL to your uniqueidentifier definition.
Should I add this to all my other tables? And shoulc I have clustered
on my IDs?

And don't I also need to do the following for File Stream?

exec [sp_filestream_configure] @enable_level = 3;
go

Reply With Quote
  #7  
Old   
shapper
 
Posts: n/a

Default Re: Default FILESTREAM filegroup is not available in database - 08-01-2009 , 01:15 PM



On Aug 1, 6:23*pm, "Dan Guzman" <guzma... (AT) nospam-online (DOT) sbcglobal.net>
wrote:
Quote:
I think Tibor has answered most your questions.

How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?

You can either use the same filegroup or separate ones for the filestream
data in both tables. *Personally, I would use the same (default) filegroup
unless you have a reason to do otherwise. *It might be appropriate to
segregate the filegroup storage if you have different recovery (read-only
vs. read-write) or performance (fast vs slow disks) requirements.

--
Hope this helps.

Dan Guzman
SQL Server MVPhttp://weblogs.sqlteam.com/dang/

"shapper" <mdmo... (AT) gmail (DOT) com> wrote in message

news:f6c09e17-5f9d-49ef-a1ed-d129170b1ec6 (AT) c14g2000yqm (DOT) googlegroups.com...
On Aug 1, 2:37 pm, "Dan Guzman" <guzma... (AT) nospam-online (DOT) sbcglobal.net
wrote:

A least one FILESTREAM filegroup file is needed in order to use filestream
storage. Also, one of the filestream filegroups needs to be marked as the
default if you don't specify FILESTREAM ON clause in your CREATE TABLE.

I added the following:
add filegroup Slides contains filestream;

So Slides is the default file group.

You can add a FILESTREAM filegroup to you database from SQL Server
Management Studio or script.

I am using Script

Script example (the first FILESTREAM filegroup is the default one):

ADD FILEGROUP Bar CONTAINS FILESTREAM;

ALTER DATABASE Foo
ADD FILE ( NAME = N'Bar',
FILENAME = N'C:\Bar' ) TO FILEGROUP [Bar];

I don't understand this. FileGroup will be a folder where the data is
saved, correct?

I have two tables. Posts and Slides, where both ones have a column
named File of type file stream.
How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?

And do I need to specify the path?
Can I define the path as the same as the database file is located?
If not then I will need to change this either using the database on my
computer or on my hosting server.

Note that you also need a ROWGUIDCOL to your uniqueidentifier definition.

Should I add this to all my other tables? And shoulc I have clustered
on my IDs?

And don't I also need to do the following for File Stream?

exec [sp_filestream_configure] @enable_level = 3;
go
Hello,

I am using the following:

add filegroup Files contains filestream;

alter database Badb
add file ( name = N'Files', filename = N'c:\Program Files\Microsoft
SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA' )
to filegroup [Files];

create table Slides (
ID uniqueidentifier not null rowguidcol
constraint PK_Slide primary key clustered,
Active bit not null default 0,
[File] varbinary(max) filestream default(0x),
[Name] nvarchar(100) null,
Url nvarchar(400) null
) -- Slides

And I always get the error:
Incorrect syntax near 'filegroup'.

What am I missing?
I checked my code but I can't find the error.

Thank You,
Miguel

Reply With Quote
  #8  
Old   
jacob.reliancesp@gmail.com
 
Posts: n/a

Default Re: Default FILESTREAM filegroup is not available in database - 08-01-2009 , 01:31 PM



On Aug 1, 11:15*pm, shapper <mdmo... (AT) gmail (DOT) com> wrote:
Quote:
On Aug 1, 6:23*pm, "Dan Guzman" <guzma... (AT) nospam-online (DOT) sbcglobal.net
wrote:





I think Tibor has answered most your questions.

How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?

You can either use the same filegroup or separate ones for the filestream
data in both tables. *Personally, I would use the same (default) filegroup
unless you have a reason to do otherwise. *It might be appropriate to
segregate the filegroup storage if you have different recovery (read-only
vs. read-write) or performance (fast vs slow disks) requirements.

--
Hope this helps.

Dan Guzman
SQL Server MVPhttp://weblogs.sqlteam.com/dang/

"shapper" <mdmo... (AT) gmail (DOT) com> wrote in message

news:f6c09e17-5f9d-49ef-a1ed-d129170b1ec6 (AT) c14g2000yqm (DOT) googlegroups.com....
On Aug 1, 2:37 pm, "Dan Guzman" <guzma... (AT) nospam-online (DOT) sbcglobal.net
wrote:

A least one FILESTREAM filegroup file is needed in order to use filestream
storage. Also, one of the filestream filegroups needs to be marked asthe
default if you don't specify FILESTREAM ON clause in your CREATE TABLE.

I added the following:
add filegroup Slides contains filestream;

So Slides is the default file group.

You can add a FILESTREAM filegroup to you database from SQL Server
Management Studio or script.

I am using Script

Script example (the first FILESTREAM filegroup is the default one):

ADD FILEGROUP Bar CONTAINS FILESTREAM;

ALTER DATABASE Foo
ADD FILE ( NAME = N'Bar',
FILENAME = N'C:\Bar' ) TO FILEGROUP [Bar];

I don't understand this. FileGroup will be a folder where the data is
saved, correct?

I have two tables. Posts and Slides, where both ones have a column
named File of type file stream.
How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?

And do I need to specify the path?
Can I define the path as the same as the database file is located?
If not then I will need to change this either using the database on my
computer or on my hosting server.

Note that you also need a ROWGUIDCOL to your uniqueidentifier definition.

Should I add this to all my other tables? And shoulc I have clustered
on my IDs?

And don't I also need to do the following for File Stream?

exec [sp_filestream_configure] @enable_level = 3;
go

Hello,

I am using the following:

add filegroup Files contains filestream;

alter database Badb
add file ( name = N'Files', filename = N'c:\Program Files\Microsoft
SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA' )
to filegroup [Files];

create table Slides (
* ID uniqueidentifier not null rowguidcol
* * constraint PK_Slide primary key clustered,
* Active bit not null default 0,
* [File] varbinary(max) filestream default(0x),
* [Name] nvarchar(100) null,
* Url nvarchar(400) null
) -- Slides

And I always get the error:
Incorrect syntax near 'filegroup'.

What am I missing?
I checked my code but I can't find the error.

Thank You,
Miguel
Do you have an 'ALTER DATABASE dbname' statement 'ADD FILEGROUP'?

Reply With Quote
  #9  
Old   
shapper
 
Posts: n/a

Default Re: Default FILESTREAM filegroup is not available in database - 08-01-2009 , 02:05 PM



On Aug 1, 7:31*pm, "jacob.relianc... (AT) gmail (DOT) com"
<jacob.relianc... (AT) gmail (DOT) com> wrote:
Quote:
On Aug 1, 11:15*pm, shapper <mdmo... (AT) gmail (DOT) com> wrote:



On Aug 1, 6:23*pm, "Dan Guzman" <guzma... (AT) nospam-online (DOT) sbcglobal.net
wrote:

I think Tibor has answered most your questions.

How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?

You can either use the same filegroup or separate ones for the filestream
data in both tables. *Personally, I would use the same (default) filegroup
unless you have a reason to do otherwise. *It might be appropriate to
segregate the filegroup storage if you have different recovery (read-only
vs. read-write) or performance (fast vs slow disks) requirements.

--
Hope this helps.

Dan Guzman
SQL Server MVPhttp://weblogs.sqlteam.com/dang/

"shapper" <mdmo... (AT) gmail (DOT) com> wrote in message

news:f6c09e17-5f9d-49ef-a1ed-d129170b1ec6 (AT) c14g2000yqm (DOT) googlegroups.com....
On Aug 1, 2:37 pm, "Dan Guzman" <guzma... (AT) nospam-online (DOT) sbcglobal.net
wrote:

A least one FILESTREAM filegroup file is needed in order to use filestream
storage. Also, one of the filestream filegroups needs to be marked as the
default if you don't specify FILESTREAM ON clause in your CREATE TABLE.

I added the following:
add filegroup Slides contains filestream;

So Slides is the default file group.

You can add a FILESTREAM filegroup to you database from SQL Server
Management Studio or script.

I am using Script

Script example (the first FILESTREAM filegroup is the default one):

ADD FILEGROUP Bar CONTAINS FILESTREAM;

ALTER DATABASE Foo
ADD FILE ( NAME = N'Bar',
FILENAME = N'C:\Bar' ) TO FILEGROUP [Bar];

I don't understand this. FileGroup will be a folder where the data is
saved, correct?

I have two tables. Posts and Slides, where both ones have a column
named File of type file stream.
How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?

And do I need to specify the path?
Can I define the path as the same as the database file is located?
If not then I will need to change this either using the database on my
computer or on my hosting server.

Note that you also need a ROWGUIDCOL to your uniqueidentifier definition.

Should I add this to all my other tables? And shoulc I have clustered
on my IDs?

And don't I also need to do the following for File Stream?

exec [sp_filestream_configure] @enable_level = 3;
go

Hello,

I am using the following:

add filegroup Files contains filestream;

alter database Badb
add file ( name = N'Files', filename = N'c:\Program Files\Microsoft
SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA' )
to filegroup [Files];

create table Slides (
* ID uniqueidentifier not null rowguidcol
* * constraint PK_Slide primary key clustered,
* Active bit not null default 0,
* [File] varbinary(max) filestream default(0x),
* [Name] nvarchar(100) null,
* Url nvarchar(400) null
) -- Slides

And I always get the error:
Incorrect syntax near 'filegroup'.

What am I missing?
I checked my code but I can't find the error.

Thank You,
Miguel

Do you have an 'ALTER DATABASE dbname' statement 'ADD FILEGROUP'?
Yes I also used that:

alter database Badb
add filegroup Files contains filestream;

alter database Badb
add file ( name = N'Files', filename = N'c:\Program Files\Microsoft
SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA' )
to filegroup [Files];

And I get another error:
FILESTREAM feature is disabled.
Invalid filegroup 'Files' specified.
Default FILESTREAM filegroup is not available in database 'Badb'.
No rows affected.

Reply With Quote
  #10  
Old   
Dan Guzman
 
Posts: n/a

Default Re: Default FILESTREAM filegroup is not available in database - 08-01-2009 , 03:24 PM



Quote:
And I get another error:
FILESTREAM feature is disabled.
Invalid filegroup 'Files' specified.
Default FILESTREAM filegroup is not available in database 'Badb'.
No rows affected.
I would expect those messages from your script if file FILESTREAM feature is
not enabled for the instance. Ensure FILESTREAM is enabled using the SQL
Configuration Manager tool.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"shapper" <mdmoura (AT) gmail (DOT) com> wrote

On Aug 1, 7:31 pm, "jacob.relianc... (AT) gmail (DOT) com"
<jacob.relianc... (AT) gmail (DOT) com> wrote:
Quote:
On Aug 1, 11:15 pm, shapper <mdmo... (AT) gmail (DOT) com> wrote:



On Aug 1, 6:23 pm, "Dan Guzman" <guzma... (AT) nospam-online (DOT) sbcglobal.net
wrote:

I think Tibor has answered most your questions.

How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?

You can either use the same filegroup or separate ones for the
filestream
data in both tables. Personally, I would use the same (default)
filegroup
unless you have a reason to do otherwise. It might be appropriate to
segregate the filegroup storage if you have different recovery
(read-only
vs. read-write) or performance (fast vs slow disks) requirements.

--
Hope this helps.

Dan Guzman
SQL Server MVPhttp://weblogs.sqlteam.com/dang/

"shapper" <mdmo... (AT) gmail (DOT) com> wrote in message

news:f6c09e17-5f9d-49ef-a1ed-d129170b1ec6 (AT) c14g2000yqm (DOT) googlegroups.com...
On Aug 1, 2:37 pm, "Dan Guzman" <guzma... (AT) nospam-online (DOT) sbcglobal.net
wrote:

A least one FILESTREAM filegroup file is needed in order to use
filestream
storage. Also, one of the filestream filegroups needs to be marked
as the
default if you don't specify FILESTREAM ON clause in your CREATE
TABLE.

I added the following:
add filegroup Slides contains filestream;

So Slides is the default file group.

You can add a FILESTREAM filegroup to you database from SQL Server
Management Studio or script.

I am using Script

Script example (the first FILESTREAM filegroup is the default one):

ADD FILEGROUP Bar CONTAINS FILESTREAM;

ALTER DATABASE Foo
ADD FILE ( NAME = N'Bar',
FILENAME = N'C:\Bar' ) TO FILEGROUP [Bar];

I don't understand this. FileGroup will be a folder where the data is
saved, correct?

I have two tables. Posts and Slides, where both ones have a column
named File of type file stream.
How can I associated a file group named Posts to table Posts and
another one named Slides to table Slides?
Shouldn't I do this?

And do I need to specify the path?
Can I define the path as the same as the database file is located?
If not then I will need to change this either using the database on my
computer or on my hosting server.

Note that you also need a ROWGUIDCOL to your uniqueidentifier
definition.

Should I add this to all my other tables? And shoulc I have clustered
on my IDs?

And don't I also need to do the following for File Stream?

exec [sp_filestream_configure] @enable_level = 3;
go

Hello,

I am using the following:

add filegroup Files contains filestream;

alter database Badb
add file ( name = N'Files', filename = N'c:\Program Files\Microsoft
SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA' )
to filegroup [Files];

create table Slides (
ID uniqueidentifier not null rowguidcol
constraint PK_Slide primary key clustered,
Active bit not null default 0,
[File] varbinary(max) filestream default(0x),
[Name] nvarchar(100) null,
Url nvarchar(400) null
) -- Slides

And I always get the error:
Incorrect syntax near 'filegroup'.

What am I missing?
I checked my code but I can't find the error.

Thank You,
Miguel

Do you have an 'ALTER DATABASE dbname' statement 'ADD FILEGROUP'?
Yes I also used that:

alter database Badb
add filegroup Files contains filestream;

alter database Badb
add file ( name = N'Files', filename = N'c:\Program Files\Microsoft
SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA' )
to filegroup [Files];

And I get another error:
FILESTREAM feature is disabled.
Invalid filegroup 'Files' specified.
Default FILESTREAM filegroup is not available in database 'Badb'.
No rows affected.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.