janmotl / linkifier Goto Github PK
View Code? Open in Web Editor NEWDatabase reverse engineering
License: BSD 2-Clause "Simplified" License
Database reverse engineering
License: BSD 2-Clause "Simplified" License
Hi,
if sql server collation is "Latin1_General_CI_AS" but the database collation is different, for example "SQL_Latin1_General_CP850_BIN2" i get the exception:
Successfully connected to: MESMID.dbo @ Microsoft SQL Server 14.00.1000
Table count: 61
com.microsoft.sqlserver.jdbc.SQLServerException: Non è possibile risolvere il conflitto tra le regole di confronto "SQL_Latin1_General_CP850_BIN2" e "Latin1_General_CI_AS" nell'operazione equal to.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:217)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1655)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:885)
at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:778)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7505)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2445)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:191)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:166)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeQuery(SQLServerStatement.java:677)
at vendor.MSSQL.getColumnStatistics(MSSQL.java:194)
at main.Schema.getPrimaryKeys(Schema.java:29)
at example.Linkifier.estimatePk(Linkifier.java:45)
at controller.Events$RunService$1.call(Events.java:274)
at controller.Events$RunService$1.call(Events.java:257)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javafx.concurrent.Service.lambda$null$493(Service.java:725)
at java.security.AccessController.doPrivileged(Native Method)
at javafx.concurrent.Service.lambda$executeTask$494(Service.java:724)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Something went wrong...
Linkifier version: 3.2.4
Please, send an email to the developer at [email protected]
Regards,
Filippo.
Hi,
I'm connecting to:
Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64) Jun 28 2012 08:36:30 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) (Hypervisor)
Pressing Extimate I get:
Successfully connected to the database.
Table count: 62
com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'Columns'.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:217)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1655)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:885)
at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:778)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7505)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2445)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:191)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:166)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeQuery(SQLServerStatement.java:677)
at vendor.MSSQL.getColumnStatistics(MSSQL.java:174)
at main.Schema.getPrimaryKeys(Schema.java:29)
at example.Linkifier.estimatePk(Linkifier.java:45)
at controller.Events$RunService$1.call(Events.java:266)
at controller.Events$RunService$1.call(Events.java:256)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javafx.concurrent.Service.lambda$null$493(Service.java:725)
at java.security.AccessController.doPrivileged(Native Method)
at javafx.concurrent.Service.lambda$executeTask$494(Service.java:724)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Something went wrong...
Regards,
Filippo.
Hi janmotl,
This is an absolute good tool!
I'd appreciate if there is some support of command line mode.
Because I don't know too much about java, I try to use Python to call some class of this module, but it failed.
Do you any plan about that?
Best regards,
Ziyang
The java class "example.Linkifier" is missing from github project
Testing with a mssql server (docker mssql https://github.com/Microsoft/mssql-docker | https://hub.docker.com/r/microsoft/mssql-server-linux/ )
got something like this
Successfully connected to the database.
Table count: 443
Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
Something went wrong...
Contact the developer at **** => the printed email is not working
It appears that the number of rows stored by linkifier is an Integer. This seems to cause an issue for large tables:
com.mysql.jdbc.exceptions.jdbc4.MySQLDataException: '4.0053988E9' in column '2' is outside valid range for the datatype INTEGER.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.Util.getInstance(Util.java:408)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:897)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:886)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
at com.mysql.jdbc.ResultSetImpl.throwRangeException(ResultSetImpl.java:7058)
at com.mysql.jdbc.ResultSetImpl.parseIntAsDouble(ResultSetImpl.java:6336)
at com.mysql.jdbc.ResultSetImpl.getInt(ResultSetImpl.java:2506)
at vendor.MySQL.useTables(MySQL.java:75)
at vendor.MySQL.getTableStatistics(MySQL.java:47)
at main.Schema.getPrimaryKeys(Schema.java:28)
at example.Linkifier.estimatePk(Linkifier.java:45)
at controller.Events$RunService$1.call(Events.java:236)
at controller.Events$RunService$1.call(Events.java:226)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javafx.concurrent.Service.lambda$null$492(Service.java:725)
at java.security.AccessController.doPrivileged(Native Method)
at javafx.concurrent.Service.lambda$executeTask$493(Service.java:724)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Even though I meet all the dependencies, I cannot seem to run your .jar file. I also tried with the source code itself but to no avail. I seem to get a "Could not find or load main class controller.MainApp". I am very interested in your project, could you help me?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.