Replies: 8 comments 1 reply
-
@aisbergde - This could be better documented, I admit. This is an open source project, and I am only able to focus on a limited number of things at a time. If you need consulting effort, please see the consulting page on the website. Your best bet is to use the interactive shell. Once you work out what options you need to use, you can string them together in a single command-line. The Katacoda tutorial on the interactive shell walks you through the following concepts:
The load command has many loaders, which run sequentially. You provide options for these loaders with the The execute command has many command. You provide options for these command with the Similarly, for connections, you can run something like I will add a In between the connect and the load step, you can:
Now that I have typed up all this information, I will add this to the Katacoda tutorial and the website too. Hope this helps you. |
Beta Was this translation helpful? Give feedback.
-
@sualeh I know, this is an open source project. That's why I share my experience, because I hope this will help other users when they get similar problems. I want to use SchemaCrawler also for open source projects, where I also spent my time. But I will not buy consulting for the usage of open source software in my own open source projects. Consulting I could and would order in a paid project where the final customer could or should pay for this. The idea of SchemaCrawler is very good, but it seems to be non-trivial to use in with any database, especially with SQL Server. And I realize that you can't expect the database developer to support everything for free. Also the Katacoda is an excellent solution to learn the usage, I went through it, but only with the sqlite sample, which works fine and demonstrates all the features.
I wanted to try it with my own SQL Server databases. Because I hope to eventually be able to create diagrams for my own databases. And there I fail already at the first step. In the other issue #410 (which was unfortunately locked) I have also investigated exactly this issue and described what the reason for the problems could be and even presented a solution. But this solution does not work for interactive use. And I don't know if SchemaCrawler has already been tested interactively with the SQL server, because I can hardly imagine that there should be such problems only with me. So here are the options:
If this is the way, then I don't know what to do. I spent hours, I found the reason for the issue and solutions to solve the issues and posted them. And I asked questions. And I get answers, like:
Of course, I did this. But maybe I am too stupid to find the answers there, otherwise I would not ask. I don't know from the documentation which driver is used at runtime, because I have many JDBC drivers on my PC and there is no information at runtime, which driver is used by SchemaCrawler. And I am not a Java developer. Maybe my issues are related to the
There is no setting for the
But the issue with SQL server is: to make it work the database needs to used twice: when connecting and when using the I guess I'll give up for now then, because I have no idea how to interactively get SchemaCrawler to load the data of the right SQL Server database in the right way, so that all objects in that database are also displayed. And I'm afraid this issue here will then also just be locked. So if my feedback is not perceived as something useful, but as intrusive and burdensome, and the issues just will be locked, then I might as well not bother giving detailed feedback. Maybe other users will get it right the first time with SQL Server. |
Beta Was this translation helpful? Give feedback.
-
@aisbergde - I locked the other issue to encourage you to open targeted issues for each on of your problems, not one single catch-all issue. Your feedback is valuable, and I made a new release just for you. I am currently working on improving documentation based on some of your suggestions. If you want to have a discussion, please have it in the discussion section, not in the issues section. Please read the message above carefully. I am repeating it here:
If you run |
Beta Was this translation helpful? Give feedback.
-
SchemaCrawler runs tests with SQL Server with every build, and has a large community of users who use it with SQL Server. |
Beta Was this translation helpful? Give feedback.
-
@aisbergde - Converting to a discussion. |
Beta Was this translation helpful? Give feedback.
-
If this works: Then try this in the interactive shell
|
Beta Was this translation helpful? Give feedback.
-
@aisbergde - please mark this question as answered, if you are done. |
Beta Was this translation helpful? Give feedback.
-
@sualeh the issue is not solved. In the shell the regex doesn't work correctly. |
Beta Was this translation helpful? Give feedback.
-
Bug Report
it looks like the only way to learn how to generate output files is to use examples on kataconca.com
I try to repeat the steps with my own SQL Server instances, to learn, how I could generate diagrams. But I get issues at the very beginning. I can't connect to the desired database and desired schemas.
Is it possible to learn the usage and commands without this kataconda examples, just from some documentation?
If it is not possible to use the interactive shell, I could use non-interactive. But where to find the required commands to generate output files, not using kataconda?
The following works when not interactive:
schemacrawler --url=jdbc:sqlserver://localhost;instancename=sql2019;databaseName=WideWorldImporters; --schemas=WideWorldImporters\..* --info-level=standard --command=list --user=readonly --password=xxx
and I try similar in the interactive shell
but the generated schema.txt looks like a connection to the server ignoring
--schemas
, I get some objects from different databases, the same what I get when not interactively connected to the database without setting--schemas
I also tried this:
execute --command=schema --no-info --output-file=./share/schema2.txt --schemas=WideWorldImporters\..*
But with the same effect
Issue
Specify the
Beta Was this translation helpful? Give feedback.
All reactions