Thanks for posting in the Lucidchart Community! Just to make sure we’re on the same page, are you trying to import your ERD from SQL Server? If so, it looks like you have run the right query on your database. Please note that the DBMS directly supported by Lucidchart for ERD import are PostgreSQL, MySQL, SQL Server, and Oracle. Each of these has its own Lucidchart provided query. When ran on your DBMS, those queries generate a .csv, .tsv or .txt file, which means that the output file depends on the structure of your database (e.g., the number of entities and attributes). My guess is that your database structure is massive and the vast number of rows in your output file is a result of this large scale.
Unfortunately, I’m afraid that there is nothing we can do on our end to get that file generated by your database query. Additionally, if you get to generate the output file that large, it's unlikely that you will be able to successfully import it into Lucidchart. As an alternative, you may try to modify the query provided so that your database only pulls the pieces of information that is relevant to you (probably a small subset of the entire database) and then return with fewer results on the output file.
For more detailed information on how to import your ERD into Lucidchart, please review our Entity Relationship Diagrams (ERDs) article and let me know if you have any questions about the intended functionality of this feature. Hope this helps!