-
Notifications
You must be signed in to change notification settings - Fork 2
User guide
How to connect to a database
- Click Database\Connect menu item or press Ctrl+N.
- Click the New button.
- Enter the connection string paramateres of the new connection.
- Click Test button to test the connection.
- Click OK button to save the connection string.
How to create a new file based database
- Click Database\New menu item.
- Type the file name of the new database file (SQL Server Compact, SQLite).
- Click Save button.
How to open a file based database
- Click Database\Open menu item or press Ctrl+O.
- Select the required file type (Access, Excel, MSI, SQLite, SQL Server Compact)
- Enter the file name.
- Click Open button.
How to create a connection to a database
- Click the Database/Connect menu item.
- Click the New button.
- Type the name of the connection.
- Choose the provider (SqlServer2005, SqlServerCe40, Tfs, Wmi, etc.)
- Type the data source manually or click the dropdown button to enumerate the possible data sources. Click the Refresh button if you need the refresh the data source enumeration.
- Check the integrated security or type the user id and password.
- Choose the initial catalog.
- Click the OK button.
How to open a new query form to a database
- Click Database/Connect menu item.
- Double click left mouse button on the selected row or select the row and click the Connect button.
How to copy the result of a query from a source database to a target database
- Connect to the source database. Leave the query form open.
- Connect to the target database. Now you have two query forms.
- Type the text of the query into the source query form.
- Click right mouse button in the source query form. Click the ‘Create table’ menu item.
- Navigate to the Messages tab page. Copy the create table script to the clipboard.
- Navigate to the target query form. Paste the create table script to the target query form. Execute it.
- Navigate to the source query form. Click right mouse button and click the ‘Copy table’ menu item.
- Wait until the end of the query execution.
- Navigate to the target query form. Check the content of the table.
- Commit the transaction in the target database by clicking the Query/Commit Transaction menu item.
How to close a query form
- Double click the top left icon of the MDI child window (Ctrl+F4 is assigned to another function).
- The program automatically writes the content of the query textbox into the log file (%TEMP%\DataCommander.log).
- Syntax highlighting
- SQL keywords are marked with blue.
- Provider specific keywords are marked with red.
- The Data Commander specific exec keyword is marked with green.
Function | Hotkey |
---|---|
Database/Connect to database | Ctrl+N |
Database/Open file database | Ctrl+O |
Database/Save all | Ctrl+Shift+S |
Database/Exit | Alt+F4 |
Edit/Paste | Ctrl+V |
Edit/Find | Ctrl+F |
Edit/Find Next | F3 |
Edit/List Members | Ctrl+J |
Edit/Goto | Ctrl+G |
Edit/Increase Line Indent | Tab |
Edit/Decrease Line Indent | Shift+Tab |
Query/Describe Parameters | Ctrl+P |
Query/Execute Query | Ctrl+E or F5 |
Query/Execute Query (Single Row) | Ctrl+1 |
Query/Execute Query (Schema Only) | Ctrl+R |
Query/Execute Query (KeyInfo) | Ctrl+K |
Query/Execute Query (XML) | Ctrl+Shift+X |
Query/Open Table | Ctrl+Shift+O |
Query/Cancel Executing Query | Alt+Pause |
Query/Parse | Ctrl+F5 |
Query/Result Mode/Text | Ctrl+T |
Query/Result Mode/DataGrid | Ctrl+D |
Query/Result Mode/ListView | Ctrl+L |
Query/Close All TabPages | Ctrl+Shift+F4 |
Query/Create Insert Statements | Ctrl+I |
Object Explorer | F8 |
Help/Contents | F1 |
Check for updates | F12 |
How to open a file in the query text box
- Drag and drop the file into the query textbox.
- Click Database/Save menu item or press Ctrl+S to save the file.
How to go to a specified line
- Press Ctrl+G.
- Enter the line number.
- Press Enter.
How to execute a query
- Type the statement text into the query textbox.
- Click Query/Execute Query menu item or press Ctrl+E or press F5.
How to cancel an executing query
- Type the statement text into the query textbox.
- Click Query/Execute Query menu item or press Ctrl+E or press F5.
- Click Query/Cancel executing query menu item or press Clrl+F12.
How to create insert into ... values(…) SQL statements from a query result
- Type the query statement into the query textbox.
- Click Query/Create insert statements menu item or press the Ctrl+I key.
- The generated insert statements (and the create table statement of the result schema) will be added to the result messages tab page.
How to create insert into ... select … SQL statements from a query result
- Type the query statement into the query textbox.
- Click Query/Create insert select statements menu item.
- The generated insert statements (and the create table statement of the result schema) will be added to the result messages tab page.
How to use the auto completion listbox
- Press Ctrl+J
- Press Up or Down key to navigate to the previous/next member of the list.
- Press Shift+Up or Shift+Down to navigate to the next matching member of the list.
- Press Ctrl+Sub to filter items.
- Press Enter to select the current list member or press Escape to close the listbox.
How to modify the font of the query from
- Click Font menu item. Consolas Regular 9pt and Courier New Regular 8 are recommended.
- Restart the application.
How to show/hide object explorer
- Press F8.
How to refresh the root node of the object explorer
- Click Tools/Refresh Object Explorer’s root menu item.
How to find text in object explorer nodes
- Press Ctrl+F.
Result tab pages – Messages tab page
How to close a result set tab page
- Click right mouse button on the result set tab page header.
- Click close menu item.
Result tab pages - DataTableEditor
Top left header context menu items
- Copy column names
- Save table as
- Copy table
- Copy table as XML
- Edit dataview properties
- Unhide all columns
- Unhide all rows
Column header context menu items
- Copy column name
- Hide column
Row header context menu items
- Hide row
Cell context menu items
- Find
- Add row filter
- Remove row filter
- Copy string field
- Save string field as
- Save binary field as
How to save the table into a file
- Click right mouse button over the table.
- Click the ’Save table as’ menu item.
- Save the table as HTML, Fixed Width Columns or Tab Separated Values.
How to copy the table to the clipboard
- Click right mouse button over the table.
- Click the ’Copy table’ menu item.
- Open Microsoft Word or Excel and click Paste Special
How to sort and filter rows in a table
- Click right mouse button over the table.
- Click the ’Edit DataView Properties’ menu item. See MSDN RowFilter and Sort for more information.
How to hide/unhide columns in a table
- Click right mouse button over the table header.
- Click the Hide column or the Unhide all columns menu item.
How to hide/unhide rows in a table
- Select some rows.
- Click right mouse button over the row header.
- Click the Hide rows.
- Click right mouse button over the table header.
- Click hide all rows.
How to find text in a table
- Navigate to the data table editor to the first row and first column. The search will start from the selected cell. If the search starts in the first row then you can find column names, too.
- Click Edit/Find menu item or press Ctrl+F keys.
- Type the text to find to the find what textbox.
- Click the OK button or press the Enter key.
- Press the F3 key to the next search result (Find Next).
How to copy a string field to the clipboard or save a string field to a file
- Click right mouse button over the cell which contains the string.
- Click right click button and click the ’Copy string field’ or the ’Save string field as’ menu item.
How to show a field as XML in Internet Explorer
- Type the query statement into the query textbox which results an XML value.
- Click Qurery/Execute Query (Xml) menu item or press Ctrl+Shift+X keys.
How to edit data in a table
- Type the query statement into the query textbox.
- Click the Query/Edit Rows menu item.
- Modify the data in the data table editor.
- The generated SQL script (insert, update, delete) will be added to the query textbox.