cancel
Showing results for 
Search instead for 
Did you mean: 

I found a table named mt and creator is dba, but in the code seems we didn't create it

Former Member
0 Kudos
1,709

I found a table named 'mt' and creator is dba, but in the code seems we didn't create it.

If the table create by db, it should be a sys table, but it showed as created by dba...Does sql anywhere 9.0 create any table as dba automatically? Since I didn't find this table using sqlanaywhere 10.0

Accepted Solutions (0)

Answers (2)

Answers (2)

jeff_albion
Product and Topic Expert
Product and Topic Expert

As Breck has implied, SQL Anywhere does not (and has never) created a table named 'mt'. Perhaps it was a typo in syntax at one point...?

Do you have a complete transaction log for the database since it was initialized? You can try translating the transaction log using "dbtran" to a SQL file and look for "CREATE TABLE" statements.

VolkerBarth
Contributor
0 Kudos

FWIW, looking for "ALTER TABLE ... RENAME " would also make sense.

If you don't have the according log, you still might be able to use the table_id value of that table (in systable) to find out whether that table was created before/after tables you are aware of, as table_ids are incremented chronologically - that might or might not give a clue...

Breck_Carter
Participant

Even the MobiLink tables start with the letters "ml", not "mt", and in Version 9 they were all owned by dbo.

So, no, mt was probably created after SQL Anywhere 9 was installed. If you show us what the table looks like (schema and data) perhaps someone will recognize what might have created it (if it was created by some other software package).