Re: create database 2bad - - Fails?
From: oj (nospam_ojngo_at_home.com)
Date: 06/08/04
- Next message: oj: "Re: Question about indexes with BIG tables"
- Previous message: Hugo Kornelis: "Re: create database 2bad - - Fails?"
- In reply to: Yaiz: "create database 2bad - - Fails?"
- Next in thread: Hari: "Re: create database 2bad - - Fails?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 8 Jun 2004 15:27:19 -0700
This is by design. You must follow unique identifier rule for naming.
http://msdn.microsoft.com/library/en-us/acdata/ac_8_con_03_6e9e.asp
The first character must be one of the following:
a.. A letter as defined by the Unicode Standard 2.0. The Unicode
definition of letters includes Latin characters from a through z and from A
through Z, in addition to letter characters from other languages.
If you must use # as the first letter, you could enclose the name in []
bracket.
e.g.
create database [123abc]
"Yaiz" <anonymous@discussions.microsoft.com> wrote in message
news:807AD1A3-B57C-46A2-859D-A57BF4E7E2D4@microsoft.com...
> The following commands fail in the SQL query Analzyer
>
> Command,
> create database 2bad
>
> Error,
> Server: Msg 170, Level 15, State 1, Line 1
> Line 1: Incorrect syntax near '2'.
>
> Command,
> create database too bad
>
> Error,
> Server: Msg 170, Level 15, State 1, Line 1
> Line 1: Incorrect syntax near 'bad'.
>
> Why?
>
> create database v2bad, works correctly
>
> Thanks for your help
- Next message: oj: "Re: Question about indexes with BIG tables"
- Previous message: Hugo Kornelis: "Re: create database 2bad - - Fails?"
- In reply to: Yaiz: "create database 2bad - - Fails?"
- Next in thread: Hari: "Re: create database 2bad - - Fails?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|