dotConnect for SQLite Documentation
Devart.Data.SQLite Namespace / SQLiteConnection Class / DataSource Property

In This Topic
    DataSource Property (SQLiteConnection)
    In This Topic
    Gets or sets the location of the database.
    Syntax
    'Declaration
     
    Public Shadows Property DataSource As String
    public new string DataSource {get; set;}

    Property Value

    The path and file name of the database.
    Remarks

    This parameter supports both file system paths and URI format like:

    file:test.db?cache=private
    file:///D:/my/path/test.db?cache=private
    
    This support includes in-memory databases, for example:
    "DataSource=:memory:"
    "DataSource=:memory:?cache=shared"
    "DataSource=file::memory:"
    "DataSource=file::memory:?cache=shared"
    "DataSource=file:memdb1?mode=memory&cache=shared"
    
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also