how can I output something to the SSMS "Messages" tab from an SSMS add-in - ssms-addin

I'm working on an SSMS 2014 addin, and I need to output stuff to the messages tab of the active document.
I know I can get that document like this :
var document = ((DTE2)ServiceCache.ExtensibilityModel).ActiveDocument;
but I've not been able to figure how to access its Messages tab (nor its Results tab for that matter)
Of course, as usual with SSMS Addins, there's no documentation.

Related

Access 2016 - cannot add new links to External Machine Data Source - ODBC database tables

I'm running Access 2016 (64 bit) on Windows 10 and only recently noticed this problem. I have several functioning databases that already have a number of working links to tables on two or more External Machine Data Sources. When attempting to add a new link I go through the usual procedure of clicking on "External Data", "ODBC Database" select "Link to the data source by creating a linked table" then go on to select the desired Machine Data Source; at this point the list of available tables comes up and everything seems fine. The problem arises when I select a new table (one I do not already have a link to), click the "Save password" box then proceed: I ultimately end up with an "ODBC--call failed" error that specifies "Error while executing the query (#1)". The first thing I would normally suspect would be a problem with the ODBC driver configuration but all my pre-existing external links continue to function just fine; I only encounter problems when attempting to add new links. How can I find out more about the query mentioned in the error message? Is this "query #1" a universal thing or could it be specific to the way my particular ODBC driver config is set up?

skype: how to read chat message using main.db

I have tried upto a level but after that I am stuck. Let share steps I followed:
I can see main.db file at this location C:\Users\Admin\AppData\Roaming\Skype\paul.lowry198.
To open this main.db file I have installed SQL Lite BB Browser application.
This application can show all existing tables in DB. There is one table chats. On this table I am firing a query select * from Chats where friendlyname = 'Jimmy Trevor'; It resulted 69 results.
Now after this how to read the message that he wrote but deleted(or any message) before I could read it.
What could be the correct query that can show me the message?
I've done this 4 years ago and today I need that again.
So after opening main.db file using SQLite Browser you need to:
Determine id of conversation (one person could be in multiple conversations):
select conv_dbid, * from Chats where friendlyname like '%Friendly Name%';
OR you can find desired conversation id using
select * from Conversations where identity like '%accountname%';
Finally, SQL Query to get all messages from desired conversation:
select body_xml, datetime(timestamp, 'unixepoch'), edited_by, edited_timestamp
from Messages where convo_id=YOUR_CONVERSATION_ID;
Unfortunately I discovered that main.db fields body_xml, edited_by and edited_timestamp changed every time person editing/deleting message and there is no backup of body_xml in main.db.
But don't worry! There is a folder chatsync near main.db database (in your skype account folder /AppData/Roaming/Skype/Account_Name_Folder).
All messages in chatsync is in Skype binary format, to read them you can use lightweight free utility http://www.nirsoft.net/utils/skype_log_view.html
Here is the start dialog of SkypeLogView, it automatically selects your skype directory (better close your skype application, but it is not necessary). Choose dates to faster up search process.
Voila!
Note that as of April 2017 and the new Skype for Windows 10 (Skype UWP - Universal Windows Platform), the main.db file has moved to
%localappdata%\Packages\Microsoft.SkypeApp_kzf8qxf38zg5c\LocalState\<SkypeUsername>\main.db
with %localappdata% being C:\Users\<username>\AppData\Local
Browse and export your Skype history online
I recently used the following platform :
http://www.skypebrowser.com/ (UPDATE the domain is down)
Steps
Click to upload your Skype database (Max 30 MB).
find main.db from local disk
Find the main.db file:
C:\Users<WindowsUserName>\AppData\Roaming\Skype<SkypeUserName>\main.db
wait a couple minutes to upload the file:
Uploaded main.db file
After open file, you can export as html zip file to your local disk, with export button. Export as zipped html file
Save as the file.
Save as the zip file
Inside zip file, exist all conversations with people or groups in different html files.

Create table error in Valentina Studio

I am unable to create a table in Valentina Studio in my sqlite database.
Using another application called Datum, I am able to open the sqlite database 'data.db' and run the query 'CREATE TABLE a(b INT, c INT)' successfully.
When I open Valentina Studio and click on the database in the first window and then click on the green plus sign with 'Create' listed to the right, a dialog box pops up. The title bar of the dialog box says 'Create Table' and in the table tab when I type 'table1' beside 'Name' and add a field named 'dog' under the Fields tab and press the 'Create' button then I get an error. The error says 'Sqlite db "/[path-to-file]/data.db": Error : "unable to open database file"' (It doesn't really say [path-to-file], this is just an alias for the path on my filesystem).
I am the primary user of this computer and write/read permissions are enabled for me on 'data.db' and on the folder that contains 'data.db' for me. I am using a Mac Book Pro.
Maybe you are using MAS edition of Valentina Studio?
According to MAS/Apple rules, such app works in sandbox mode,
to work with db files located e.g. on the desktop or other folders,
you need at first once Allow Access. You can do this in
Preferences Dialog - Allowed Locations Help
Normal (not MAS) edition of Valentina Studio for Mac do not require this step.

How can I connect my eclipse program to SQLite?

I am just a new programmer., can someone please give me a step by step procedure on how to connect my eclipse program to sqlite?
from http://wiki.eclipse.org/Connecting_to_SQLite
1) Download the SQLite drivers from: [1]. The actual zip file with the driver is at [2]. Expand the zip somewhere locally and note the location.
2) Put the sqlite_jni.dll from the zip into your JRE's bin directory. The driver requires this file to be in the java library path.
3) In Eclipse with DTP 1.0 installed (preferably the final build or a nightly build dated 110806 or later), go to the Preferences (Window->Preferences) and select the Connectivity->Driver Definitions page.
4) Select the "Generic JDBC" category in the Available Driver Definitions tree and click "Add...".
5) Select "Generic JDBC Driver->Generic JDBC Driver" in the Available Driver Templates tree. Give the new generic JDBC driver a name like "javasqlite JDBC driver". Click OK.
6) Click "Add Jar/Zip" and select the sqlite.jar from the driver zip you expanded in step 1. Click Open.
7) In the Properties table, select the Driver Class property and click the "..." button. If the jar is accessible, you will see a dialog appear with at lease one class in the list. Select "SQLite.JDBCDriver". Click OK.
8) Also in the Properties table, select the Driver URL property and type the following: jdbc:sqlite:/DRIVE:/dirA/dirB/dbfile
9) Click OK on the Edit Driver Definition dialog. You should see your new driver appear in the driver list on the Driver Definitions preference page.
10) Click OK to close the Preferences dialog.
11) If the Data Source Explorer is not open, open the Connectivity->Data Source Explorer view from the Window->Show View menu or open the Database Development perspective from the Window->Open Perspective.
12) In the Data Source Explorer, right-click on the Databases category and select New...
13) In the New Connection Profile wizard's Wizard Selection Page, choose the SQL Model-JDBC Connection entry in the list and click Next.
14) Give your new profile a name like "SQLiteTestDB". Click Next.
15) In the "Select a driver from the drop-down" combo box, select your new SQLite driver definition. Modify the file path in the sample URL to match the path to your local SQLite database.
16) Click "Test Connection" to verify you can connect to your database.
17) Click Finish to create the profile.
18) In the Data Source Explorer, right-click on the new profile and select Connect. You should see content appear in the tree beneath the profile. Browse through your database to view available tables and their columns.

Chrome Console : How to edit sqllite database?

I created a database using html5 and i can see this in Chrome's console but I can't edit them. Is there a way to do this in console? I want to populate and modify the table. Please help.
thanks.
Just click on the database name in the Resource tab, a console appears to the right with a prompt. There you can start typing sql.

Resources