Using the Connector
This section provides a walk-through for writing OneNote data access code in Python script.
Connecting from Code
To connect with the onenote.connector module and its related classes, see Connecting.
The connection's cursor object is used to directly execute SQL queries. See Querying Data to execute SELECT statements and process the returned result sets. See Updating Data to modify the data in OneNote with INSERT, UPDATE, and DELETE statements.
Executing Stored Procedures
You can call stored procedures by using the EXECUTE statement. See Calling Stored Procedures for more information.