Giter VIP home page Giter VIP logo

Comments (7)

OCS2000 avatar OCS2000 commented on July 26, 2024

@GoEddie, do you have any advice on this issue?

from sqlcover.

GoEddie avatar GoEddie commented on July 26, 2024

Are you settting the name of the database in the connection string to the temporary database?

from sqlcover.

OCS2000 avatar OCS2000 commented on July 26, 2024

@GoEddie, thank you for your suggestion. I did not, but I did just try this now and with this change I get the same error:
$temporaryConnectionStringWithInitialCatalog = "$temporaryConnectionString;Initial Catalog=$database"
$coverage = New-Object SQLCover.CodeCoverage($temporaryConnectionStringWithInitialCatalog, $database)

from sqlcover.

GoEddie avatar GoEddie commented on July 26, 2024

I can't help thinking that the error is something to do with the connection string, that error isn't generated by SQLCover but (I think) by the sql connection. Try using this for the connection string "server=servername;integrated security=sspi;" instead of data source.

from sqlcover.

OCS2000 avatar OCS2000 commented on July 26, 2024

"server=servername;integrated security=sspi;" with MS SQL instance name changed gives the same error. I'm not able to identify where in the SQLCover source code such error can arise. Still I have confirmed that the error definitely occur on this line: "$coverageResults = $coverage.Stop()" and that "$coverage.Start()" returns without an error.

from sqlcover.

GoEddie avatar GoEddie commented on July 26, 2024

If you download the source, you can debug it by passing true for the debug flag to Start - then if you attach visual studio it should stop on the line where the exception occurs.

Iā€™d turn on logging as well.

To get to those flags you call the constructor without the defaults.

from sqlcover.

OCS2000 avatar OCS2000 commented on July 26, 2024

This issue has now been resolved although I don't understand the cause of the exception. All versions I built myself from source code in the Git repository using the latest Visual Studio Community 2019 does not produce this exception.

https://github.com/GoEddie/SQLCover/archive/0.5.0.zip: Exception
922d7d2: No exception (Debug & Release)
https://github.com/GoEddie/SQLCover/tree/0.5.0-p: No exception (Release)
https://github.com/GoEddie/SQLCover/tree/0.5.0: No exception (Release)

from sqlcover.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.