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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:40:56+00:00 2026-05-15T12:40:56+00:00

I am having trouble running a simple sql query in Microsoft SQL Server 2005

  • 0

I am having trouble running a simple sql query in Microsoft SQL Server 2005 to create a database and im not sure why.

When I run this query

CREATE DATABASE 4444-virtual2

I receive this error

Incorrect syntax near ‘4444’.

Is there anything in particular that I must specify if I am creating a database table with numeric values in the name? Or am I forgetting something?

  • 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-15T12:40:57+00:00Added an answer on May 15, 2026 at 12:40 pm

    Database names need to start with a letter, underscore, at sign or number sign:

    The first character must be one of the
    following:

    • A letter as defined by the Unicode
      Standard 3.2. The Unicode definition
      of letters includes Latin characters
      from a through z, from A through Z,
      and also letter characters from other
      languages.

    • The underscore (_), at sign (@), or
      number sign (#).

    Certain symbols at the beginning of an
    identifier have special meaning in SQL
    Server. A regular identifier that
    starts with the at sign always denotes
    a local variable or parameter and
    cannot be used as the name of any
    other type of object. An identifier
    that starts with a number sign denotes
    a temporary table or procedure. An
    identifier that starts with double
    number signs (##) denotes a global
    temporary object. Although the number
    sign or double number sign characters
    can be used to begin the names of
    other types of objects, we do not
    recommend this practice.

    Some Transact-SQL functions have names
    that start with double at signs (@@).
    To avoid confusion with these
    functions, you should not use names
    that start with @@.

    Unless you want to delimit every use of the name with double quotes "4444-virtual2" or brackets [4444-virtual2].

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

Sidebar

Related Questions

I am having trouble running this simple statement in the IDLE prompt. if True:
Hey, this is probably a simple question, but I am having trouble running my
I'm having trouble getting a client/server implementation of Quartz.NET working. I have a SQL
I'm having trouble incorporating a bit of logic into a large SQL query. I'm
I'm running pywin32 build 216.1 and am having trouble using the simple print function
I am running Ubunutu Linux server, PHP5, Apache2 and am having trouble getting any
I'm having trouble running a simple bash script from Java. Specifically: ... try{ ProcessBuilder
I'm writing a simple server for my networks class and I am having trouble
This seems like a simple question, but I am having trouble finding the answer.
I have trouble to update some rows in SQL Server (2005 and 2008). Often,

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.