Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

SQL 2000 - Cannot "USE database" - Incorrect Syntax??
Hello,

First off I want to say that I am a "noob" when it comes to MS SQL. I
have an odd issue. I have a database that's called 001 - When issue the
command "use 001" in Query Analyzer, I get the error "server: msg 170,
level 15" Syntax incorrect by 001.

The database exists! if I do a "SP_databases" the database does show up
as 001. Why can I not use it?

Thanks in advanced.


Report this thread to moderator Post Follow-up to this message
Old Post
patrick.mcdonald@gmail.com
11-30-06 05:12 AM


Re: SQL 2000 - Cannot "USE database" - Incorrect Syntax??
USE [001]

The standard for names requires the first character be alphabetic.  A
name that voilates that must be put in square brackets.  I strongly
suggest that since you are just getting started you use name that fits
the standard.

Roy Harvey
Beacon Falls, CT

On 29 Nov 2006 17:44:40 -0800, patrick.mcdonald@gmail.com wrote:

>Hello,
>
>First off I want to say that I am a "noob" when it comes to MS SQL. I
>have an odd issue. I have a database that's called 001 - When issue the
>command "use 001" in Query Analyzer, I get the error "server: msg 170,
>level 15" Syntax incorrect by 001.
>
>The database exists! if I do a "SP_databases" the database does show up
>as 001. Why can I not use it?
>
>Thanks in advanced.

Report this thread to moderator Post Follow-up to this message
Old Post
Roy Harvey
11-30-06 05:12 AM


Re: SQL 2000 - Cannot "USE database" - Incorrect Syntax??
Thanks alot that helps!

Patrick


Roy Harvey  wrote:[color=darkred
]
> USE [001]
>
> The standard for names requires the first character be alphabetic.  A
> name that voilates that must be put in square brackets.  I strongly
> suggest that since you are just getting started you use name that fits
> the standard.
>
> Roy Harvey
> Beacon Falls, CT
>
> On 29 Nov 2006 17:44:40 -0800, patrick.mcdonald@gmail.com wrote:
> 


Report this thread to moderator Post Follow-up to this message
Old Post
patrick.mcdonald@gmail.com
11-30-06 05:12 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 08:53 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006