Presentation is loading. Please wait.

Presentation is loading. Please wait.

CC SQL Utilities. CC SQL Utilities Overview The Primary tech tool used for viewing and changing data directly in the database The Primary tech tool used.

Similar presentations


Presentation on theme: "CC SQL Utilities. CC SQL Utilities Overview The Primary tech tool used for viewing and changing data directly in the database The Primary tech tool used."— Presentation transcript:

1 CC SQL Utilities

2 CC SQL Utilities Overview The Primary tech tool used for viewing and changing data directly in the database The Primary tech tool used for viewing and changing data directly in the database Backup and restore Backup and restore Import and exporting Import and exporting SQL Query editor SQL Query editor Attaching and detaching databases Attaching and detaching databases Other tech tools Other tech tools

3 CC SQL Utilities Logon Choose SQL sever Choose SQL sever computer name\comcash computer name\comcash Enter username and password Enter username and password sa - no password sa - no password

4 Utilities Launches Initially the server name appears Initially the server name appears Run SQL Server Service Manager Run SQL Server Service Manager Check Program Versions Check Program Versions Attach Database Attach Database Prompts for.mdf file Prompts for.mdf file Check for CC SQL Utilities update Check for CC SQL Utilities update Needs internet connection Needs internet connection Expand the server Expand the server The attached databases are displayed The attached databases are displayed

5

6 Select a database The database properties are displayed The database properties are displayed Size Size Date created Date created File location File location Name of.mdf file Name of.mdf file Name of.ldf file Name of.ldf file

7 Go Live Clears out any unwanted data entered while evaluating ComCash Clears out any unwanted data entered while evaluating ComCash Select to keep some data (optional) Select to keep some data (optional) Customers Customers Cashiers Cashiers Registers Registers Products Products Quick Service Menu Quick Service Menu Vendors Vendors Consignors Consignors Prompts to backup existing data Prompts to backup existing data

8 Empty one or more tables Very powerful Very powerful Always BACKUP data first Always BACKUP data first

9 Display row count for all tables in the database Helpful tool to display the number of rows in all tables Helpful tool to display the number of rows in all tables Click on Number of Rows column header to list table in order of row count. Click on Number of Rows column header to list table in order of row count.

10 Detach Database Cannot detach until all connections are cleared first Cannot detach until all connections are cleared first

11 Change Location Changes the location number the data is associated with Changes the location number the data is associated with

12 Delete Location Deletes all records associated with a specified location number Deletes all records associated with a specified location number

13 Set modified flags in one or more tables Marks records as modified for specified tables (forces records to poll) Marks records as modified for specified tables (forces records to poll) Prompts for location number Prompts for location number

14 Clear modified flags in one or more tables Clears the modified property of records for tables specified. (records will not poll) Clears the modified property of records for tables specified. (records will not poll)

15 SQL Query Interface Utility Warns user – this is a very powerful utility Warns user – this is a very powerful utility Can write and run SQL statements Can write and run SQL statements Select Select Update Update Delete Delete Insert Insert Results are returned in a powerful grid format Results are returned in a powerful grid format

16 Grids in CC SQL Utilities Click column headers to: Click column headers to: Sort data by any field Sort data by any field Drag the column header up Drag the column header up to group bar to Group data by any field to group bar to Group data by any field Filter Data by: Filter Data by: All – no filter All – no filter Selection – choose an available value from a field Selection – choose an available value from a field Custom – use logic to build custom filters (can be saved and recalled) Custom – use logic to build custom filters (can be saved and recalled)

17 Custom Filters Equals \ does not equal Equals \ does not equal Is less than \ is less than or equal to Is less than \ is less than or equal to Is greater than \ is greater than or equal to Is greater than \ is greater than or equal to Is like \ is not like Is like \ is not like Use _ to represent any single character Use _ to represent any single character Use % to represent any series of characters Use % to represent any series of characters Is blank \ is not blank Is blank \ is not blank Use And\or operators to create compound filters Use And\or operators to create compound filters

18 Print Grids as a report Use the report designer feature to customize the report Use the report designer feature to customize the report

19 Backup Manager Overview Creates a.bak file manually or automatically When restored, it replaces existing data (does not add to it) Creates a.bak file manually or automatically When restored, it replaces existing data (does not add to it) Backs up, literally, all the data Backs up, literally, all the data Can be moved to another computer and restored Can be moved to another computer and restored All prior backups are listed in the back up registry making them easy to find and restore. All prior backups are listed in the back up registry making them easy to find and restore. Marked with date\time stamp Marked with date\time stamp

20 Automatic Backups Turn on automatic backup feature in ComCash Manager Registers Turn on automatic backup feature in ComCash Manager Registers Entire database is backed up daily with close of day Entire database is backed up daily with close of day Backups are named for the day of the week (Monday, Tuesday, Wednesday, etc.) Backups are named for the day of the week (Monday, Tuesday, Wednesday, etc.) This Mondays backup will overwrite last Mondays backup This Mondays backup will overwrite last Mondays backup.bak stored in C:\Program Files\ComCash\CCDatabases\Backups.bak stored in C:\Program Files\ComCash\CCDatabases\Backups Offload c:\Program Files\ComCash 8.0\CCDatabase\backups folder once a week for a 365 day accounting of the data Offload c:\Program Files\ComCash 8.0\CCDatabase\backups folder once a week for a 365 day accounting of the data Restore the auto-backups just like any other backup Restore the auto-backups just like any other backup

21 Manual Backups Create a new backup Create a new backup Prompts user for a directory Prompts user for a directory Appears in the registry Appears in the registry Restore selected backup Restore selected backup Overwrite selected backup Overwrite selected backup Delete selected backup Delete selected backup Register a backup from another server.bak file backed up from another server only registered backups can be restored Register a backup from another server.bak file backed up from another server only registered backups can be restored

22 Expand the database and select a table Initially the first 200 rows are displayed Initially the first 200 rows are displayed One does not want to inadvertently display all rows in a 500,000 line item table One does not want to inadvertently display all rows in a 500,000 line item table Displayed in powerful grid Displayed in powerful grid

23 Read\Write Mode (toggle) Read mode Read mode Data can only be viewed Data can only be viewed Read\write mode Read\write mode Allows user to edit, append and delete data directly on grid Allows user to edit, append and delete data directly on grid

24 SP Helper Stings Used by programmers and very advanced users to aid writing stored procedures and queries Used by programmers and very advanced users to aid writing stored procedures and queries

25 Clear table Empties the selected table Empties the selected table

26 Export Data

27 Exporting Data Overview Data from any selected table can be exported All fields or only specified fields can be exported Data from any selected table can be exported All fields or only specified fields can be exported All rows or only rows meeting specified criteria can be exported All rows or only rows meeting specified criteria can be exported Exported files includes field names for column headers Exported files includes field names for column headers Data is exported to a.csv file (comma separated) Data is exported to a.csv file (comma separated).csv is the most common file type for exported files.csv is the most common file type for exported files Can be imported into Microsoft Excel (and many other programs). Export wizard starts Can be imported into Microsoft Excel (and many other programs). Export wizard starts

28 Step 1 – Enter File Name Prompts for file name/directory User can browse to the directory Prompts for file name/directory User can browse to the directory

29 Step 2 – Create / Load Data Map Select fields to export (all or only selected) Select fields to export (all or only selected) Choose the order of fields to export Choose the order of fields to export Save, Load, Rename, and Delete created data maps Save, Load, Rename, and Delete created data maps

30 Step 3 – Export the data Offers user the option of entering a SQL where clause to limit the exported data by specified criteria (i.e. where dept = 4) Offers user the option of entering a SQL where clause to limit the exported data by specified criteria (i.e. where dept = 4) Click Start Click Start Progress bar is displayed Progress bar is displayed Number of rows exported is displayed Number of rows exported is displayed

31 Import Data

32 Import Data Overview Uses a mapping method to import data from a.csv file into the selected table Uses a mapping method to import data from a.csv file into the selected table Errors will be reported at the end of the import process and any rows not imported can be saved in a separate file so that they may be reviewed and corrected. Errors will be reported at the end of the import process and any rows not imported can be saved in a separate file so that they may be reviewed and corrected.

33 Step 1 – Pick your CSV File Type in the name and path for (or browse to) your.csv file Type in the name and path for (or browse to) your.csv file Select the delimiter (tab or comma) Select the delimiter (tab or comma) Check box: The first line of the CSV file contains field names Check box: The first line of the CSV file contains field names Check the box if you have prepared your file by titling each column with the field name the data is destined for Check the box if you have prepared your file by titling each column with the field name the data is destined for Check the box if the file was exported using CC SQL Utilities Check the box if the file was exported using CC SQL Utilities Check box: Auto generate import rules based on CSV column names Check box: Auto generate import rules based on CSV column names Check the box if you checked the previous box and want the program to auto-generate rules for the import process to import data into fields where the field name matches the column header Check the box if you checked the previous box and want the program to auto-generate rules for the import process to import data into fields where the field name matches the column header

34 Step 2 – Create / Load a Map The table structure is displayed The table structure is displayed Field name Field name Data type Data type Length Length Required? Required? Delete, rename, load, and save created Maps Delete, rename, load, and save created Maps Create rules for all fields that are to receive data during the import. (You must create rules for required fields) Create rules for all fields that are to receive data during the import. (You must create rules for required fields)

35 Import Map Rules Import from a CSV column Import from a CSV column Enter the column number from the CSV file Enter the column number from the CSV file

36 Import Map Rules Insert a fixed text value Insert a fixed text value Enter the text value Enter the text value Program will populate field with the same value for all rows imported Program will populate field with the same value for all rows imported Example: you can use this feature to populate Size with Large for all rows imported. Example: you can use this feature to populate Size with Large for all rows imported.

37 Import Map Rules Enter a fixed integer value (whole number) Enter a fixed integer value (whole number) Enter the integer value Enter the integer value Program will populate a field with the same value for all rows imported Program will populate a field with the same value for all rows imported Example: you can use this feature to populate the location_no field with 1 for all rows imported Example: you can use this feature to populate the location_no field with 1 for all rows imported

38 Import Map Rules Enter a fixed floating point value (number with a decimal in it) Enter a fixed floating point value (number with a decimal in it) Enter the floating point value Enter the floating point value Program will populate field with the same value for all rows imported Program will populate field with the same value for all rows imported Example: you could use this feature to set the price 1.99 for all rows imported Example: you could use this feature to set the price 1.99 for all rows imported

39 Import Map Rules Insert an incrementing integer value from a fixed starting value Insert an incrementing integer value from a fixed starting value Enter the starting value Enter the starting value Enter the incrementing value Enter the incrementing value Example: if you re importing products, you can use this option to generate PLUs starting from Example: if you re importing products, you can use this option to generate PLUs starting from

40 Import Map Rules Insert an incrementing value starting from the columns current max value Insert an incrementing value starting from the columns current max value Enter the increment value Enter the increment value Example: if you are importing customers, you can use this feature to generate incrementing customer numbers for all rows imported starting with the highest customer number already in you customer table. Example: if you are importing customers, you can use this feature to generate incrementing customer numbers for all rows imported starting with the highest customer number already in you customer table.

41 Import Map Rules Bit value Bit value Inserts a fixed bit value for all rows imported Inserts a fixed bit value for all rows imported Example: you can use the set the modified field to true (1) for all rows imported Example: you can use the set the modified field to true (1) for all rows imported

42 Ready to import Click Start Click Start Progress bar is displayed Progress bar is displayed Error log is created and user is given the option to save it Error log is created and user is given the option to save it This is where the bad_CSV_rows information will go This is where the bad_CSV_rows information will go

43 Set Modified Marks records as modified for the selected table (forces records to poll) Marks records as modified for the selected table (forces records to poll) Prompts for location number Prompts for location number Clear Modified flags Clear Modified flags Un-marks records as modified for the selected table (records will not poll) Un-marks records as modified for the selected table (records will not poll) Prompts for location number Prompts for location number

44 View Table Structure Field names Field names Field types Field types i.e. char, int, bit i.e. char, int, bit Length Length Required Required Nulls allowed / not allowed Nulls allowed / not allowed

45 View Table Contents Shows table contents again when viewing table structure Shows table contents again when viewing table structure


Download ppt "CC SQL Utilities. CC SQL Utilities Overview The Primary tech tool used for viewing and changing data directly in the database The Primary tech tool used."

Similar presentations


Ads by Google