They used to be stored in Appdata roaming. They are now stored in a local sqlite database at %LOCALAPPDATA%\Packages\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe\LocalState\plum.sqlite
First, create your certificate with something like... CREATE CERTIFICATE YourTestKey1 ENCRYPTION BY PASSWORD = 'a secure password WITH SUBJECT = 'My Test Key', EXPIRY_DATE = '20201231'; GO More to follow.....
Rarely do you need select from a select statement. Occasionally this pops up with complex PIVOTs and UNPIVOTs. The tip when doing this is (in MSSQL) is the "table" select statement needs to be aliased. For example, the following statement will not work: SELECT * FROM ( SELECT * FROM blah ) However, the following statement will work: SELECT * FROM ( SELECT * FROM blah ) x