all groups > sql server new users > january 2007 >
You're in the

sql server new users

group:

SQL 2000 DB Naming


SQL 2000 DB Naming Hulicat
1/18/2007 5:15:10 PM
sql server new users:
I am trying to run a t-sql script against a database named 'voInit2.2'

Query analyzer keeps puking; erroring out that the db does not exist.

Hopefully there is a working around for this?

Thanks,
H
Re: SQL 2000 DB Naming Hulicat
1/18/2007 5:19:59 PM
I figured it out brackets [voInit2.2]




[quoted text, click to view]
Re: SQL 2000 DB Naming Dave Markle
1/19/2007 9:15:54 PM
Put brackets around the name of the database:

USE [voInit2.2]



[quoted text, click to view]
Re: SQL 2000 DB Naming Hari Prasad
1/19/2007 9:41:04 PM
Hi,

You can use the SQUARE bracket as a solution.

SELECT * from [DBNAME].DBO.Tablename

But it is recommended to rename the database using SP_RENAMEDB or ALTER
database with valid qualifiers.

Thanks
Hari

[quoted text, click to view]

AddThis Social Bookmark Button