Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Not able to connect to SQLite database if share is hidden

Not able to connect to SQLite database if share is hidden

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasehtmlsqlitesysadminannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JacquesUrlus
    wrote on last edited by
    #1

    When I use the connection string ‘\\\\network\share\file.db’ it works fine. But if the share is hidden the SQLite database can not be found. I use the connectionstring as follows: Con As New SQLite.SQLiteConnection With {.ConnectionString = "Data Source=\\\\network\share\file.db;Version=3;"} The \\\\ is according this article: unable to open database file on a local network

    D L 2 Replies Last reply
    0
    • J JacquesUrlus

      When I use the connection string ‘\\\\network\share\file.db’ it works fine. But if the share is hidden the SQLite database can not be found. I use the connectionstring as follows: Con As New SQLite.SQLiteConnection With {.ConnectionString = "Data Source=\\\\network\share\file.db;Version=3;"} The \\\\ is according this article: unable to open database file on a local network

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      If the user running the code doesn't have read and write permissions to share and to the folder the database is in, it's not going to open. There is no such thing as a "hidden"(*) share. You either have permissions to use it or you don't. * There are admin shares, where the name ends in a $, but you need admin permissions to see them. Normal users will never know they exist.

      Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
      Dave Kreskowiak

      1 Reply Last reply
      0
      • J JacquesUrlus

        When I use the connection string ‘\\\\network\share\file.db’ it works fine. But if the share is hidden the SQLite database can not be found. I use the connectionstring as follows: Con As New SQLite.SQLiteConnection With {.ConnectionString = "Data Source=\\\\network\share\file.db;Version=3;"} The \\\\ is according this article: unable to open database file on a local network

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        @"\\network\share\file.db" or "\\\\network\\share\\file.db" ..but what Mish answered, won't work :)

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups