Blink Home > Technology > How to Use the SQL Executer
How to Use the SQL Executer  
 
Summary: Use the SQL Executer if you can't obtain the results you want from any of the Link products or from a Standard Query in DataLink.

Note: If you don't know SQL programming language, you can use QueryLink by clicking the Queries button in FinancialLink, EmployeeLink, Blink Student/ Class Info, and DataLink.
What to do How to do it
1 Go to the SQL Executer.
  1. Open DataLink.
  2. Click the link on the left to open the SQL Executer.
    Note: Before you start be sure you:
    • Understand SQL commands and the Data Warehouse database environment
    • Are familiar with table and column names, and security access
2 Enter the SQL Code.
  1. Type the SQL commands in the free formatted text window.

3 Retrieve and/or save your SQL commands.
  1. 1. To use a command from a previous file, Browse to the location and retrieve your SQL from the file. The retrieved SQL commands will appear in the text window.
  2. If you want to save the command in the text window, press the Save SQL to File button and save it to your local drive as a text file.

4 Login to the database.
  1. If you are using the SQL Executer tool labeled SQL Executer:
    • Use the Database drop-down list to choose a subject area within the Data Warehouse production environment.
    • In the Userid/ Password fields, enter either your DARWIN or SQL-DSE user ID and password.

  2. If you are using the SQL Executer tool labeled Advanced SQL Executer
    • Use the server drop down list to choose a specific server within the Data Warehouse production environment.
    • In the Database field, enter the actual database name such as "pur."
    • In the Userid/ Password fields, enter either your DARWIN or SQL-DSE user ID and password.

5 Choose the output options you want.
  1. Complete these fields to determine how you'll receive the information.

    • Return Row Limit - By default 20 output rows will be returned from a SQL query. Leave this field at 20 until you are satisfied that your query is returning correct results.
    • Send Data To - How your information will be displayed and saved:
      • Screen - Returned to the screen
        PC File - Saved as a PC file.
        Mac File - Saved as a Macintosh file
        Unix File - Saved as a Unix file

    • Display Options - What your results will show:
      • Show general info with results - General info will be returned along with SQL results.
        Show SQL with results -The SQL code will be displayed along with SQL results.
        Show results in new window -The SQL results will be displayed in a new window (requires JavaScript).

    • File Options - What you want saved in your file:

      • Include column headings - Column headings will be saved along with the SQL results.
        Column Delimiter - If the SQL results are being sent to a file, specify the desired field delimiter.


6 Run the Query.
  1. Use the Run Query button.

7 Clear the form.
  1. Use the Reset button.




For more detailed instructions on SQL, enroll in a SQL training class.

If you have questions, contact the Data Warehouse team.


  Print
Print
this page
  Email
Share
this page
  Add to MyBlink
Save
this link
  Get notified when this page is updated
Notify
on change
  Add a sticky note to this page
Add
a note
 
Get what you wanted?    yes   no   Comments.


Last reviewed/updated on Aug. 22, 2007 (see more info)
Blink A-Z Index:   0-9  A B C D E F G H  I  J K L M N O P Q R S T U V W X Y Z 


Blink Home  Site Map  Help  Accessibility Tips  Privacy Statement  Content Manager  RSS Feed 


Copyright ©2008 Regents of the University of California. All rights reserved.
Official Web Page of the University of California, San Diego

Blink version 1.7 12-17/2007 Blink Usability Group