If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Underscore in database name

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-05, 11:05
jds1 jds1 is offline
Registered User
 
Join Date: Sep 2004
Posts: 3
Underscore in database name

DB2 7.1
Fixpack 10
W2K SP4

How do you put an underscore in the database name? When I restore a database from CLP using the following command:

restore database TESTDATABASE from d:\backup\ taken at 20050111190052 to d:\ into TEST_DATABASE

I get the following error:

SQL0104N An unexpected token "TEST_DATABASE" was found following "INTO"
Expected tokens may include: "<database-alias>". SQLSTATE=42601

I know that underscore is a valid character since our live database has an underscore in it. I just don't know how it was setup that way.

Thanks
Justin
Reply With Quote
  #2 (permalink)  
Old 01-12-05, 11:22
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
This isn't the actual command you're issuing, is it? As far as I know the length of the database name (or alias) is limited to 8 characters...
Reply With Quote
  #3 (permalink)  
Old 01-12-05, 11:57
jds1 jds1 is offline
Registered User
 
Join Date: Sep 2004
Posts: 3
You're right. I just tried it with a shorter name with an underscore and it worked fine.

Thanks
Justin
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On