0

When I create a table using the interface with SSMS the table "prefix" automatically is set to

MyCompanyName\MyUserID.tableName.  

However when I create a table with a query I am able to set the "prefix" to dbo.tableName.

MY 2 questions are

 (1). What does this "prefix" mean?  
 (2). How do I set the "prefix" to dbo using the SSMS interface?  

I've done some research but can't figure out whether it refers to the schema (which I don't know anything about) or the user. Any help would be much appreciated. Thank you in advance!

-Charlie

3
  • The "prefix" you are referring to is the Schema which allows you a number of extra features in SQL, like permissions to that specific schema, or allowing you to group tables together in a database, for example. Commented Jun 1, 2017 at 15:21
  • Possible duplicate of What good are SQL Server schemas? Commented Jun 1, 2017 at 15:22
  • Thanks Jacob! Very helpful! Commented Jun 1, 2017 at 16:12

2 Answers 2

1

This "prefix" is schema name.

You can change it in SSMS in property page (press F4 to open): enter image description here

Sign up to request clarification or add additional context in comments.

Comments

0

It's simply adding the schema name as a prefix.

Sorry, covered in other answers above - I was 30 secs too late.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.