Jump to content

Search the Community

Showing results for tags '_SQLite_Backup'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hi, I to access a DB every few seconds so I thought to take the file DB "mirror"/copy it to a memory DB and check the memory DB every few seconds. sqlitebackup.au3 seems an easy way to do this - to make the memory copy. But I must be missing something when I try a simple test because I didn't get anything from a select statement on the memory DB. But when I substitute the disk DB with the same code it works. I tried: ... ... #include <SQLite.au3> #include <SQLite.dll.au3> #include <sqlitebackup.au3> $sSQliteDll = _SQLite_Startup() $sDbName = "C:\sqlite\relays.db" $hDskDb = _SQLite_Open($sDbName) Local $aRow Local $hmemDb = _SQLite_Backup($hDskDb, ':memory:', Default, Default, Default, Default, Default) Local $d = _SQLite_Exec($hmemDb, "Select * From sched", "_cb") ; this does not work ; Local $d = _SQLite_Exec($hDskDb, "Select * From sched", "_cb") ; this works Func _cb($aRow) For $s In $aRow ConsoleWrite($s & @TAB) Next ConsoleWrite(@CRLF) EndFunc ;==>_cb ; ... ; ... _SQLite_Close() _SQLite_Shutdown() I guess my questions is - What am I doing wrong? Thanks.
×
×
  • Create New...