How to Used Qalite
Transcript of How to Used Qalite
-
7/25/2019 How to Used Qalite
1/26
HOW TO USED QALite
(SQL Client Acces)
Installation QALite for SQL Server
-
7/25/2019 How to Used Qalite
2/26
QALite is a SQL Server client tool with a rich set of features. Written in VB.Net, QALite is
designed to take full advantage of what .Net has to offer.
Version 1.x features include:
Create queries and eecute the! against SQL Server "#$%&&&'
Locate and view data(ase o()ects
*et detail infor!ation a(out an o()ect
*enerate Select, +date, -nsert, elete state!ents
Scrit data(ase o()ect"s'
*enerate L / sa!le data
Co!are data(ase0to0data(ase sche!a
Co!are individual o()ect0to0o()ect sche!a
Co!are scrit files
irect data0entr1
ownload and uload BL2Bs
Load and eecute SQL scrits
Save results as tet files
Save results as !l files
3rint results or reorts
Custo!i4e shortcuts
SQL s1nta coloring
License
5ou !ust read the license agree!ent in full and indicate 1our agree!ent to its ter!s rior to
installing or using the software. All rights, title and interest not eressl1 granted are reserved.
Freeware
6his software !a1 not (e distri(uted or (undled with an1 roduct that is sold for co!!ercial
rofit without the elicit er!ission of the author.
6he ter! freeware refers onl1 to the !ode of distri(ution, the eecuta(les and source are
co1righted. 7euse of this code in a co!!ercial alication is not er!itted.
Disclaimer
6he author here(1 disclai!s all warranties relating to this software, whether eress ori!lied, including without li!itation an1 i!lied warranties of !erchanta(ilit1 or fitness for a
-
7/25/2019 How to Used Qalite
3/26
articular urose. 6he author will not (e lia(le for an1 secial, incidental, consequential,
indirect or si!ilar da!ages due to loss of data or an1 other reason, even if the author or an
agent of the author has (een advised of the ossi(ilit1 of such da!ages. -n no event shall the
author8s lia(ilit1 for an1 da!ages ever eceed the rice aid for the software, regardless of the
for! of the clai!. 6he erson using the software (ears all risk as to the qualit1 anderfor!ance of the software.
2en Source9
::)ktgrhnoc;we(:QA7eortsQA Lite Setu
http://smb//jktgrhxnoc4web/QAReportshttp://smb//jktgrhxnoc4web/QAReports -
7/25/2019 How to Used Qalite
4/26
Instalation
6o -nstall QALite 1ou need to run 1our !achine under windows s1ste! and 1ouneed to install Microsoft .Net Frameworfirst.
Ste! "# ste! for Microsoft .Net Framewor instalation9
-
7/25/2019 How to Used Qalite
5/26
>. Choose $%S 2tion
;. Wait =or the 3rocess.
?. 5our installation succes -f 1ou see this notification
-
7/25/2019 How to Used Qalite
6/26
Ste! Ste! For Installin' QALite
. Choose 1our destination folder and click net
-
7/25/2019 How to Used Qalite
7/26
;. 2nce all require!ents co!lete, 1ou can click net to start installation
?. Wait for installation rocess
-
7/25/2019 How to Used Qalite
8/26
@. =inish 1our installation (1 click close
-
7/25/2019 How to Used Qalite
9/26
(unnin' QaLite For First )ime
5ou can run QaLite (1 click shortcut icon in deskto windows or fro!
Start enu all rogra!7ac;SqlQaLite
(e'ister Serial Num"er
=or first use, 1ou need to use serial nu!(er to active this software.
Access code for the downloaded 7AC roduct is9
&
-
7/25/2019 How to Used Qalite
10/26
*onnectin' to SQL Server
icrosoft SQL Server suorts two authentication !odes9
Windows authentication !ode "Windows authentication' 0 allows users to connect via
Windows N6 account. When the users tr1 to connect via Windows authentication
"6rusted connection', SQL Server will do a call(ack to the Windows oerating s1ste!
to validate the account (efore it allows or denies connection.
ied !ode "Windows authentication and SQL Server authentication' 0 users can use
either Windows authentication or SQL Server authentication. When users tr1 to
connect via nontrusted connection "SQL Server authentication', SQL Server will check
its internal data(ase to validate the login and assword.
Note:Windows authentication is not used when SQL Server is installed on Win.
Server:
-
7/25/2019 How to Used Qalite
11/26
%xecutin' a Quer#
+on a successful connection to SQL Server, QALite will resent the user with a quer1
window. 6his is where the user can enter an1 6ransact0SQL state!ents of his or her choice
and eecute it against the connected server. ore infor!ation on 6ransact0SQL can (e found
here.
QALite suorts various oututs, such as to grid, tet, flat or !l file, for an1 given quer1. As
shown (elow, the user can either select the otion fro! the Quer1 !enu or through various
shortcut ke1s. 6he default is E7esult in *ridE.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_tsqlcon_6lyk.asphttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_tsqlcon_6lyk.asp -
7/25/2019 How to Used Qalite
12/26
2nce an outut !ethod has (een selected, a quer1 can (e eecuted (1 one of the following9
. 3ress E=?E or EC67L/E shortcut ke1s
-
7/25/2019 How to Used Qalite
13/26
(esult to -rid
When E7esult to *ridE otion is selected, the result of a quer1 is retrieved fro! the data(ase
and disla1ed in a datagrid. 6his is the FfastestF !ethod of disla1ing a resultset as there is no
consequent for!atting done once the resultset is fetched.
-
7/25/2019 How to Used Qalite
14/26
(esult to )ext
When E7esult to 6etE otion is selected, the result of a quer1 is retrieved fro! the data(ase
and will (e disla1ed in a tet(o. 6o change this view of result go to
Quer1 "in !enu (ar'then select Gresult to tetH
Because so!e rocessing is required to for!at and align each colu!n of the resultset, getting
a result for a quer1 !ight see! a (it slower. Iowever, disla1ing the resultset in tet allows
the user to force a conversion of Es1ste!.(1teJKE arra1, which is a default datat1e for (inar1,
var(inar1, and i!age colu!ns, to a headeci!al string. QALite will convert the first %??
(1tes if the otion E=orce B1teJK to Ieadeci!alE is checked.
-
7/25/2019 How to Used Qalite
15/26
(esult to File
When E7esult to =ileE otion is selected, the user will (e ro!ted to secif1 a filena!e and a
for!at "flat or !l file' for the result of a quer1 to (e saved. -f the user enters an invalid na!e
or chooses EcancelE, the quer1 will not (e eecuted.
6o change this result otion, do this following action
Quer1 "in !enu (ar'then select Gresult to =ileH
-
7/25/2019 How to Used Qalite
16/26
"/ect &rowser
QALite rovides access to SQL Server o()ects through its 2()ect Browser tree.
6he user can drill down the tree and quickl1 access detail infor!ation a(out a data(ase o()ect.
6he 2()ect Browser tree also rovides access to !an1 useful functions si!l1 (1 right
clicking on a tree node "o()ect' and selecting a desired otion fro! the contet !enu.
-
7/25/2019 How to Used Qalite
17/26
-ettin' Detail Info
2ne of QALite features is the a(ilit1 to get FdetailF infor!ation a(out a SQL Server o()ect.
6his is done si!l1 (19
Selecting an o()ect "tree node'
7ight clicking on the o()ect and selecting Eetail...E fro! the contet !enu or
Selecting Eetail -nfoE fro! 6ools !enu
-
7/25/2019 How to Used Qalite
18/26
-eneratin' DDL and Insert statements
A!ong !an1 other useful features QALite is offering, generating ata efinition Language
"ddl' "often understood as a SQL state!ent that is used to create an o()ect' can (e as si!le as)ust a few !ouse clicks awa1. QALite suorts a ddl generation of a single o()ect "i.e. a
data(ase, ta(le, view, stored rocedure, etended rocedure, and function' or a grou of
o()ects "i.e. ta(les, views, stored rocedures, etended rocedures, and functions' in a single
(atch.
Selecting an o()ect "tree node'
7ightclicking the o()ect and selecting ECreate...E fro! the contet !enu or
Selecting ECreateE fro! 6ools !enu
6o !ake it easier for users to recreate and transfer data fro! a ta(le to a new one, QALite
offers users the a(ilit1 to generate ddl and insert state!ents in a single (atch. 6his can (e
acco!lished (19
Selecting an o()ect "tree node'
7ightclicking the o()ect and selecting EL -nsertE fro! the contet !enu or
Selecting EL -nsertE fro! 6ools !enu
-
7/25/2019 How to Used Qalite
19/26
%dititin' Data
QALite allows the user to view and erfor! data entr1 directl1 to a ta(le, rovided that the
ta(le has a ri!ar1 ke1. QALite does not allow editing of a s1ste! ta(le or a view in this
version.
6o start data entr19
Select$highlight a ta(le$view "tree node' fro! the 2()ect Browser window
7ight click and select E2en$ditE fro! the contet !enu or
Select E2en$ditE fro! 6ools !enu
-
7/25/2019 How to Used Qalite
20/26
-f the colu!n of interest is an -!age "(lo(' colu!n, QALite !akes it eas1 for the user to
uload or download the content. 6o uload or download (lo(s9
7ight click on the cell of interest and select either E+loadE or EownloadE fro! the
contet !enu or
Select the cell of interest and select either E+loadE or EownloadE fro! 6ools !enu
Note9 6he changes do not save to the data(ase until E+dateE (utton is clicked.
*om!arin' Data"ases
Co!aring two data(ases8 o()ects has never (een easier than now with QALite. With a few
!ouse clicks the user will (e resented with a list of differences (etween two data(ases. 6he
findings can then (e rinted or saved for later use.
-
7/25/2019 How to Used Qalite
21/26
-
7/25/2019 How to Used Qalite
22/26
=or ea!le, co!aring an o()ect8s sche!a is as si!le as selecting E2()ect Sche!aCo!areE. A window will !ateriali4e and allow the user to select an1 source$target data(ase,
ta(le, view, stored rocedure, and function to co!are.
2nce the target o()ect is selected, the result is then disla1ed in various colors denoting the
findings.
-
7/25/2019 How to Used Qalite
23/26
-
7/25/2019 How to Used Qalite
24/26
*om!arin' Scri!t Files
Co!aring scrit files "or an1 tet files' could not (e easier when using QALite. 6he user can
si!l1 select EScrit Co!areE fro! the 6ools !enu to (ring u the selection screen. Note9
6he user needs not (e connected to a SQLServer to use this feature.
2nce the source and target files have (een secified, click the ECo!areE (utton to signal the
co!aration rocess. 6he result is disla1ed in the (otto! section. ou(le click on an1 line to
quickl1 (rowse to the differences.
-
7/25/2019 How to Used Qalite
25/26
*reatin' *ustom Sortcuts for *ommonl# +sed *ommands
QALite allows u to ten "
-
7/25/2019 How to Used Qalite
26/26
ter *ommonl# +sed )ass
=ile !enu rovides access to so!e of the co!!on tasks, such as9
Connect$isconect to$fro! a SQL Server
Create a new Quer1 Window
Load a SQL scrit to eecute
Save a SQL scrit, result, and reort for later use
Setu, review, and rint a scrit, result, reort
it the alication