question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sysdiagram and related SPs are not excluded by default

See original GitHub issue

Hello!

After adding support for diagrams in my DB, Facil included related types and SPs in the generated file. At a first glance this is not a problem by itself, but it produced an unexpected behavior, my code started raising a System.AccessViolationException.

The culprit for raising this exception are one or many of these: type sysdiagrams type sp_alterdiagram_Executable type sp_alterdiagram type sp_creatediagram_Executable type sp_creatediagram type sp_dropdiagram_Executable type sp_dropdiagram type sp_helpdiagramdefinition_Executable type sp_helpdiagramdefinition type sp_helpdiagrams_Executable type sp_helpdiagrams type sp_renamediagram_Executable type sp_renamediagram type sp_upgraddiagrams

As a workaround, we excluded these DB elements using “except” mechanism (facil.yaml) provided by Facil.

Kind regards, Mauricio

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cmeerencommented, May 25, 2023

Thanks. If you believe this is a compiler issue, you should raise an issue at https://github.com/dotnet/fsharp. But I’m not sure it can be considered a compiler issue. 70k lines is a lot.

0reactions
mauriciomagnicommented, May 25, 2023

hello @cmeeren

  1. The file was almos 70k lines of code, now the biggest one is 44k lines.
  2. Yes, I think this issue is related with the size of the file. Of course, this is just speculation, but my gut says it is because of the extensive use of generic type validation. It catches our attention the time it takes to compile the assembly.
  3. Correct Sadly, I made the mistake of mention we were using Facil and they decided to blame the library. I have insisted it is not the library and gave them a more detailed info (copy below), but I have not heard back from Microsoft: image
Read more comments on GitHub >

github_iconTop Results From Across the Web

exclude MS-SQL system table 'sysdiagrams' #9826
In MS-SQL the (system) table sysdiagrams is automatically generated when you enable the database diagrams functionality. This table gets listed in Directus:.
Read more >
Exclude sysdiagrams · Issue #623 · ErikEJ/SqlCeToolbox
I dont see any reason why one should import the sysdiagrams table, so it could be excluded by default. image. Further technical details....
Read more >
How To Exclude System Table When Querying Sys.Tables?
SSMS uses an extended property to mark the sysdiagrams table as a sort of pseudo system table. Try this: SELECT S.name as Owner, ......
Read more >
Query to list SQL Server stored procedures along with lines ...
I want a query that returns a list of all the (user) stored procedures in a database by name, with the number of...
Read more >
How to retrieve whether database has any tables?
1 Answer 1 · Just tested on a newly created database. The table "sysdiagrams" also appears in that collection ( is_ms_shipped is "0")....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found