I am having a problem with SQL Server 2000 Enterprise Manager. I have a few tables that have similar names but Enterprise Manager is not handling them properly. The table names are FnlVldQTR_370Q1_A, FnlVldQTR_370Q1_D, FnlVldQTR_370Q10A, and FnlVldQTR_370Q12D.
I open up the Enterprise Manager application. I then navigate to my table FnlVldQTR_370Q1_A and right-click the mouse. The next thing I do is select Open Table --> Return all rows. The table is returned but there are 0 rows where there should be over 1 million. (It should be noted that FnlVldQTR_370Q10A has 0 rows in the table)
I then click the SQL pane button to display the SQL Code. The SQL code is: SELECT * FROM dbo.FnlVldQTR_370Q10A, this is WRONG!!!! The SQL code should be SELECT * FROM dbo.FnlVldQTR_370Q1_A. So, at this point, I go ahead and manually change the SQL statement to SELECT * FROM dbo.FnlVldQTR_370Q1_A and then click on the "!" to run the query. Upon clicking the "!", Enterprise Manager changes the SQL from dbo.FnlVldQTR_370Q1_A to dbo.FnlVldQTR_370Q10A.
This above problem happens on both the FnlVldQTR_370Q1_A and FnlVldQTR_370Q1_D tables when trying to query the with Open Table --> Return all rows. When you use Open Table --> Return Top.... or Open Table --> Query it will return rows from the proper table. But, if you make a change via the SQL code pane, the Diagram pane, or the Grid pane it reverts back to the dbo.FnlVldQTR_370Q10A from the dbo.FnlVldQTR_370Q1_A table and the same goes for Q1_D and Q12D tables.
Has anyone else experienced this problem w/ SQL Server 2000 Enterprise Manager? To further test the problem I created another table FnlVldQTR_370Q32D because I had a table FnlVldQTR_370Q3_D in the database. After creating the 32D table the same problem happened. It would "return all rows" on the 32D table even though I was right clicking and working on the 3_D table. Any thoughts?