trace_xe_action_map
and trace_xe_event_map
- what are those and where are they? I don't want to return those. How to change the parameters?
Currently I am using:
databaseMetadata.getTables(null, null, null, {"TABLE"} );
trace_xe_action_map
and trace_xe_event_map
- what are those and where are they? I don't want to return those. How to change the parameters?
Currently I am using:
databaseMetadata.getTables(null, null, null, {"TABLE"} );
Assuming you're using MS SQL 2012 (or possibly later, but I haven't tried those). Try entering a schema name e.g:
ResultSet tableRS = dbMeta.getTables(null, "dbo", null, new String[] {"TABLE"});
as those tables have moved to sys.trace_xe...
By default all the tables in MS SQL are created in "dbo" default schema. So, to retrieve tables from meta data we have to mention the schema name. Note : if schema name is not mentioned all the tables will be returned.
ResultSet rs = connection.getMetaData().getTables(dbName, schemaName, null, new String[]{"TABLE"});