Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Running query

Author  Topic 

mbevon
Starting Member

41 Posts

Posted - 2002-05-14 : 14:34:43
I'm accessing the server with the domain name STATISTICS
I'm new to SQL 2000, I'm in the Query Analyser trying the following.


SELECT *
FROM BB1999C

IT'S NOT WORKING, THIS IS HOW I'M SEEING THE TABLE
STATISTICS\marlon_b.BB1999C
i'M MARLON_B

HOW DO I RUN THE QUERY?

THANKS

Kevin Snow
Posting Yak Master

149 Posts

Posted - 2002-05-14 : 14:45:38
Make sure you are using the correct database (as shown in the dropdown selection box at the top of Query Analyzer) If there is any question, try the three part name-

Select * from [databasename].dbo.BB1999C

If this still doesn't find it, try to locate the table. sp_tables will give a list of all tables found in the current database. If it's not in the list, then the table isn't in the database.

Other than that, your syntax is correct. If there is a table BB199C, AND you have access rights and are currently in the correct database, that statement should return the expected record set.

If not, please provide any error messages accompanying the failure.
Go to Top of Page
   

- Advertisement -