473,383 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

isql error message

Hi,

I have created a database as pubs.qa and wrote a command utility to
query a table.

isql -S server -E -d pubs.qa -i qry.sql -b -n
contents of qry.sql

select * from users
go

when i run this command, error message
Msg 911, Level 16, State 1, Server XXXXXXX, Line 1
Could not locate entry in sysdatabases for database 'pubs'. No entry
found with that name. Make sure that the name is entered correctly.

However, I am able to use this database in Query Analyzer and execute
the query.

I am just wondering if the database name with '.' is the problem...

Any pointers to proceed further.

Thanks in advance
-Anu

Jul 23 '05 #1
3 3594
Probably - try using delimiters, ie [pubs.qa] Since the dot/period
character is used to separate parts of an object name in MSSQL
(server.database.owner.object), it is usually a bad idea to use it
within an object name. pubs_qa would probably be a better choice in
this case.

See "Delimited Identifiers" and "Using Identifiers as Object Names" in
Books Online.

Simon

Jul 23 '05 #2
Right, try:
isql -S server -E -d [pubs.qa] -i qry.sql -b -n

Jul 23 '05 #3

sqlmatt wrote:
Right, try:
isql -S server -E -d [pubs.qa] -i qry.sql -b -n


Thanks, it worked.

-Anu

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jacob Grydholt Jensen | last post by:
I am trying to learn iSQL*Plus for the 1Z0-007 exam. I am having a bit of problems with the substitution variables. My understanding was that they behave as in SQL*Plus, but my experiments beg to...
6
by: Alex Vilner | last post by:
Hello! We have a set of individual .SQL scripts which we would like to execute against a MS SQL Server 2000. Is there any way to have ISQL utility (or any other means) to execute all of them...
5
by: Jay Chan | last post by:
I am trying to use a command line program to run a stored procedure that generates output in a comma-delimitted format. Somehow, ISQL or OSQL always wrap the lines at 256 characters. I believe this...
1
by: Gary | last post by:
I want to run and 'Alter Database' statement from within a batch file. The batch file is to be run from an external automation program, (don't ask why).. I know the syntax for the alter db...
4
by: Marcin Zmyslowski | last post by:
Hello everyone! I have the following problem. I`ve opened a Query Analyser and write the statement: -isql -S 'PL6XXXX' -i 'd:\SQL_Server_2000\Raport_WWW.sql' I got the following erorr...
3
by: yanakal | last post by:
Hi, I'm using isql to query data and output the same to a flat file. The isql has the following command options ' -h-1 -w500 -n -b -s"" '. In the SQL_CODE, the first two lines before the select...
1
by: Philip Bondi | last post by:
Hello to all SQL Server junkies who work with non-English characters: For people running scripts from the command line using ANSI files with special characters, it is very important to use isql...
0
by: rbarry | last post by:
I have a stored procedure that contains a statement like: select @myvar = count(*) from mytable where mycolumn is null when I run the procedure from query analyser a value is set in @myvar...
0
by: Bre-x | last post by:
Server: Windows 2000 Pervasive: SQL 2000i Webserver: Fedorca Core 4 PHP: PHP Version 5.1.6 I have install the Pervasive linux client libraries on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.