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 783395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:32:25+00:00 2026-05-14T20:32:25+00:00

Good day! Despite the fact LINQ2SQL and ADO.NET Entity Framework exists there were situations

  • 0

Good day!

Despite the fact LINQ2SQL and ADO.NET Entity Framework exists there were situations when I need to revert to plain old DataSet (not typed) and friends.

While writing SQL for SqlCommand:

  • Is it needed to quote field and table names with []?
  • Is it good to prefix table names with [dbo]

I use to use this syntax:

SqlCommand command = new SqlCommand("SELECT [Field1], [Field2] FROM [dbo].[TableName]", connection);

May be there is a better way?

Thanks in advance!

  • 1 1 Answer
  • 1 View
  • 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-14T20:32:26+00:00Added an answer on May 14, 2026 at 8:32 pm

    There is no need to use [] when you are querying your data form the database.

    you use [] when there is space of alias name like

    SELECT Field1 as [First Name], Field2 as [Last Name] FROM [dbo].[TableName]
    

    because it gives syntax error

    dbo is the schema name that with which your table and the user attached

    here is more detail answer
    A database schema is a way to logically group objects such as tables, views, stored procedures etc. Think of a schema as a container of objects.

    You can assign a user login permissions to a single schema so that the user can only access the objects they are authorized to access.

    Schemas can be created and altered in a database, and users can be granted access to a schema. A schema can be owned by any user, and schema ownership is transferable.

    You can also read full article on : http://www.quackit.com/sql_server/sql_server_2008/tutorial/sql_server_database_schemas.cfm

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

Sidebar

Related Questions

Good day. I need to teach Windows CryptoAPI to encrypt the message with private
Good day, I have like 15 images I need to be buttons. I have
Good day, Does anyone know if there is a way to determine when all
Good day! I am a newbie on creating database... I need to create a
Good day, I have a ASP.net MVC app that needs to upload files to
Good day, I'm having a problem with asp.net 2.0 viewstate. Basically, I want to
Good Day, We have migrated our web application to ASP.NET 2.0 from ASP.NET 1.1.
Good Day all, i have been working with http://jsfiddle.net , the sample app i
Good day! I tried using JSTL in java but there's an error: exception javax.servlet.ServletException:
Good day. I need some help. I want to make program in Delphi, and

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.