Code Monkey home page Code Monkey logo

Comments (4)

shueybubbles avatar shueybubbles commented on June 4, 2024 1

thx for opening an issue!
The implications of this issue are pretty bad, considering querying rows is the primary use of the driver.
Have you tried reverting to any older versions of the driver, including the old denisenkom versions, to see if this bug is relatively new or old?

from go-mssqldb.

mathiasyeremiaaryadi avatar mathiasyeremiaaryadi commented on June 4, 2024

Hi, I haven't tried the older version, but I'll try it out. Which is the older version should I try?
And something that I suspect is, there is a frequent restore activity on the table from my other team, is it affecting the rows that I fetched ?

from go-mssqldb.

shueybubbles avatar shueybubbles commented on June 4, 2024

i'd assume ongoing restores would disrupt a multimillion row query, depending on what kinds of locks are in use.
They'd probably be upset if your query grabbed a lock on the entire content of the table...

from go-mssqldb.

mathiasyeremiaaryadi avatar mathiasyeremiaaryadi commented on June 4, 2024

Somtimes my SELECT query failed with error like this:

"Error": {
  "Number": 927,
  "State": 6,
  "Class": 14,
  "Message": "Database 'xxxx' cannot be opened. It is in the middle of a restore.",
  "ServerName": "xxxx",
  "ProcName": "",
  "LineNo": 1,
  "All": [
   {
    "Number": 927,
    "State": 6,
    "Class": 14,
    "Message": "Database 'xxxx cannot be opened. It is in the middle of a restore.",
    "ServerName": "xxxx",
    "ProcName": "",
    "LineNo": 1,
    "All": null
 }

So I can tell my SELECT query was interrupted with the restore actitivy.
I think it is make sense that the restore acitvity cause I can't retrieve a complete record from the table.

from go-mssqldb.

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.