ISDBDatabase::ExecSQL

From MediaMonkey Wiki
Revision as of 14:37, 21 March 2007 by Jiri (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CoClass SDBDatabase, Interface ISDBDatabase

Sub ExecSQL(SQL As String)


Parameters

Name Type Description
SQL String Full SQL to be executed


Method description

Executes SQL in the MS Access database that is used for Library storage. In order to understand how to construct such SQL commands you have to know SQL language and the structure of MM database.

Example code

SDB.Database.ExecSQL( "UPDATE Songs SET PlayCounter=0")   ' Clears # played of all tracks in the library