Problem with introspection and dumping DDL.
已回答
Hi, I'm connected to Azure SQL Database. I'm trying to dump all DDLS into files. Basically for each view I've got
alter view schema.views as
-- missing source code
;For tables I see only column names, without datatype, constraints etc..
The introspection on Database is set to level 3
请先登录再写评论。
Hi Walisko Rafal,
Are you using the SQL Scripts | SQL Generator to obtain the DDLs? Could you please provide:
Hi @Anastasia Zhukova
I'm using: Click on DB > Import/Export/ > Dump To DDL Data Source
It looks like, I can get here everything I want. The problem occurs for dumping whole data source
So are you getting the correct DDLs when using SQL Scripts | SQL Generator for specific objects and when using SQL Scripts | Generate DDL to Clipboard for the whole data source?
Also, could you let me know you DataGrip version?
Actually no.. when I use this method it gives me mixed results, for some objects I have the proper DDL, for other: -- missing source code. With popup. however the whole database was set to introspection at level 3.
Altough your queries always give me the correct DDL, maybe there is some kind of instrospection problem
I see, thank you for clarifying it. May I ask you to additionally collect the log archive as follows?
Ok, during the force refresh process I saw many schemas were introspected at level 2, some of them were at level 3.
Upload id: 2025_10_21_DU3j6wbJPyBnP3NjWDPi1S (file: datagrip-logs-20251021-1522344118512667702116742.zip)
Walisko Rafal,
Could you first generate the diagnostic dataSource*.log as described here (with Force Refresh instead of Step 2. “Run the introspection ...”), wait for the introspection to finish, disable the Diagnostic Mode, and then collect the log archive once again?
Also, please share a screenshot of the Introspection Level setting from the Options tab of the data source properties.
Here's the log: Upload id: 2025_10_22_2ARwCLT6fsSacV6qvh6yJW (file: dataSource-20251022-051516-Raitddb.log)
Walisko Rafal, thank you. I've reported it in the DBE-24519. Could you also attach the latest idea.log file (Help | Show Log in Explorer) to the ticket, just to have the logs aligned with each other (by default, the attached files are only available to our team)?
As for the tables, do you see only the column names without datatypes, constraints, etc. for all of them, or is it just specific ones? Could you share a sample table DDL as well?