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

  • SEARCH
  • Home
  • 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 613707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:01:56+00:00 2026-05-13T18:01:56+00:00

Question: when I create a table ( T_TableName ) using SQL Server Management-Studio, it

  • 0

Question: when I create a table (T_TableName) using SQL Server Management-Studio, it always creates the table as

Domain\UserName.T_TableName

instead of

dbo.T_TableName

What’s wrong ?

  • 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. Editorial Team
    Editorial Team
    2026-05-13T18:01:56+00:00Added an answer on May 13, 2026 at 6:01 pm

    If you don’t specify a schema explicitly on your table name to be created, it will be created in the user’s current default schema.

    I bet the user you’re using has its own personal schema set as its default schema – that’s why your tables get created in his own personal schema.

    You can check what database users you have and what their default schema is by inspecting sys.database_principals (SQL Server 2005 and up):

    SELECT name, type_desc, default_schema_name
    FROM sys.database_principals
    

    To solve this:

    • specify the schema you want to use explicitly (best practice anyway!)

      CREATE TABLE dbo.T_TableName
      
    • change the user’s default schema to dbo

      ALTER USER [Domain\YourUser] WITH DEFAULT_SCHEMA = dbo
      

    But as a general rule of thumb, I recommend always using the “dbo.” prefix explicitly, if you want to have all your database objects in the dbo schema. Helps with performance, too (ever so slightly) since SQL Server won’t have to go hunting in different schemas, if you explicitly tell it where your db objects live.

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

Sidebar

Related Questions

Slightly more advanced mapping then in my previous question :) Tables: create table [Primary]
I have a script in T-SQL that goes like this: create table TableName (...)
I've got the following named query in Hibernate: <sql-query name=CreateLogTable> CREATE TABLE IF NOT
Currently my development environment is using SQL server express 2008 r2 and VS2010 for
Question: I have to create a tablet application. In this i want to make
i have one question about jquery ajax().. I created a table grid and there
Apologies for the vague question. Here it is: I have a table object created
I've decided to take the advice in this question: create-excel-chart-programmatically-in-php and NOT attempt to
i got a question when create a javascript object, when one function invoking another
I am trying to create a question and answers page. In which I am

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.