Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 131999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:11:37+00:00 2026-05-11T06:11:37+00:00

This is puzzling me – in SQL Server 2005/2008, I can specify the default

  • 0

This is puzzling me – in SQL Server 2005/2008, I can specify the default file group which is then used for all data tables. I can also specify another filegroup for all BLOB type fields.

But I cannot figure out if and how I can specify a default filegroup for indices…..

My setup usually is: * primary filegroup – nothing but the system catalog – bare minimum * DATA filegroup – which I make the default for my database * INDEX filegroup for all indices * BLOB filegroup (optional) for all BLOB data * LOG (obviuosly)

Now if I create all by tables and indices manually by script, of course I can specify the appropriate file group for each. But is there a way / trick / hack to make it possible to specify where to put the indices? When I use SQL Server Mgmt Studio to e.g. designate a column as primary key on a table, it creates a PK_(tablename) index – but unfortunately, it sticks that into the DATA filegroup, and once it’s there, it seems I cannot change it anymore (in the visual designer).

Am I missing something? Or has Microsoft just not provided such a setting??

Thanks for any hints, pointers, leads!

Marc

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:11:38+00:00Added an answer on May 11, 2026 at 6:11 am

    If there is a clustered index on a table, the data and the clustered index always reside in the same filegroup. You cannot place the base table and clustered index on separate Filegroups. This is because the clustered index is the actual table data.

    You can of course place non-clustered indexes in a different Filegroup from the table they reference.

    You cannot specify two default Filegroups i.e. one for data and one for indexes.

    Hope this clears things up for you but please feel free to pose further questions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 191k
  • Answers 191k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer In short: you can't. .NET 4.0 is a totally new… May 12, 2026 at 6:06 pm
  • Editorial Team
    Editorial Team added an answer I would suggest that the ASP.NET application writes the information… May 12, 2026 at 6:06 pm
  • Editorial Team
    Editorial Team added an answer Assembly probing is only available at runtime. At compile time… May 12, 2026 at 6:06 pm

Related Questions

This is puzzling me - in SQL Server 2005/2008, I can specify the default
This is puzzling me. I'm using Google Map's Geocoding to find locations. I am
I thought I understood Perl RE to a reasonable extent, but this is puzzling
I am trying to write an install script for a system I have been
I'm getting two different hashes of the same xml document when I directly canonicalize

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.