0% found this document useful (0 votes)
47 views25 pages

WDT Pract

The document provides steps for creating a database, tables, and columns in SQL Server Management Studio. It describes how to set primary keys, data types, and relationships. Sample tables are provided for customers, orders, order details, genres, and videos along with the columns for each. Steps are also included for creating a database diagram to show relationships between tables.

Uploaded by

kartikshukla10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views25 pages

WDT Pract

The document provides steps for creating a database, tables, and columns in SQL Server Management Studio. It describes how to set primary keys, data types, and relationships. Sample tables are provided for customers, orders, order details, genres, and videos along with the columns for each. Steps are also included for creating a database diagram to show relationships between tables.

Uploaded by

kartikshukla10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

Practical-6

Work with administration menu and Dashboard: Logging in and


looking around

Step One:
Navigate to Appearance > Menus

Step Two:
Under the Menu Name add how you would like to call your menu and click on Create Menu
button

Step Three:
After the menu is created, move to your left, choose the menu location (currently 4 menu
positions are available) select one of them and click save.

For this specific tutorial, were creating the top menu, however the same rule applies to all of
them.
Step Four:
When we selected the menu and saved it, lets move down to the page and choose the items you
wish to display and add them to your newly created menu.

Step Five:
Save the menu and thats all folks, we just created custom menu in few easy steps.

Few notes:
If you dont have a Home item, you wish to remove Home or simply to rename it, click on View All
under the Pages and thats where the Home item will be located.

To add more menus, or to list all four locations, just click on the plus tab and repeat the steps
from above.

Just in case that you need to include dropdowns, that part is also very simple. All we need here
is to drag the the items toward the right and WordPress will automatically treat them as the child
page, also know as the dropdown.















Practical-7
Installing themes in Wordpress.


Adding New Themes


Appearance Panel
There are many Themes available for download that will work with your WordPress installation.
If the Theme that you are installing provides instructions, be sure to read through and follow those
instructions for the successful installation of the Theme. It is recommended that Theme developers
provide installation instructions for their own Themes, because Themes can provide special
optional functionality that may require more steps than the basic installation steps covered here. If
your Theme does not work after following any provided instructions, please contact the Theme
author for help.
Adding New Themes using the Administration Panels
You can download Themes directly to your blog by using the Add New Themes option in the
Appearance sub-menu.
1. Log in to the WordPress Administration Panels.
2. Select the Appearance panel, then Themes.
3. Select Add New.
4. Either use the Search or Filter options to locate a Theme you would like to use.
5. Click on the Preview link to preview the Theme or the Install Now link to upload the Theme to your
blog,
6. Or use the Upload link in the top links row to upload a zipped copy of a Theme that you have
previously downloaded to your machine.
Adding New Themes by using cPanel
If your host offers the cPanel control panel, and the Theme files are in a .zip or .gz archive follow
these instructions. Note: This assumes the Theme you download is a compressed (.zip) file
containing a folder under which all the Theme files reside.
1. Download the Theme .zip file to your local machine.
2. In cPanel File Manager, navigate to your Themes folder. If your WordPress is installed in the
document root folder of your web server you would navigate to "public_html/wp-content/themes"
and if you have WordPress installed in a sub-folder called wordpress, you would navigate to
"public_html/wordpress/wp-content/themes".
3. Once you've navigated to the Themes folder in cPanel File Manager, click on Upload file(s) and
upload that .zip file you saved in Step 1.
4. Once the .zip file is uploaded, click on the name of that file in cPanel, then in the panel to the right,
click on "Extract File Contents", and that .zip file will be uncompressed.
5. Follow the instructions below for selecting the new Theme.
Adding New Themes Manually (FTP)
To add a new Theme to your WordPress installation, follow these basic steps:
1. Download the Theme archive and extract the files it contains. You may need to preserve the
directory structure in the archive when extracting these files. Follow the guidelines provided by
your Theme author.
2. Using an FTP client to access your host web server, create a directory to save your Theme in
the wp-content/themesdirectory provided by WordPress. For example, a Theme
named Test should be in wp-content/themes/test. Your Theme may provide this directory
as part of the archive.
3. Upload the Theme files to the new directory on your host server.
4. Follow the instructions below for selecting the new Theme.
Selecting the Active Theme
To select a Theme for your site:
1. Log in to the WordPress Administration Panels.
2. Select the Appearance panel, then Themes.
3. From the Themes panel, roll over the Theme thumbnail image for the Theme you are interested in
to see options for that theme.
4. You can view more information about any theme by clicking Theme Details.
5. A live preview of any Theme (using your blog's content) can be seen by clicking Live Preview.
6. To activate the Theme click the Activate button.
Your selection will immediately become active.

Practical-8
Install plugins and edit plugins.

Automatic Plugin Installation


WordPress Plugins Panel
To add a WordPress Plugin using the built-in plugin installer:
1. Go to Plugins > Add New.
2. Under Search, type in the name of the WordPress Plugin or descriptive keyword, author, or tag in
the search form or click a tag link below the search form.
3. Find the WordPress Plugin you wish to install.
1. Click Details for more information about the Plugin and instructions you may wish to print or
save to help setup the Plugin.
2. Click Install Now to install the WordPress Plugin.
4. A popup window will ask you to confirm your wish to install the Plugin.
5. If this is the first time you've installed a WordPress Plugin, you may need to enter the FTP login
credential information. If you've installed a Plugin before, it will still have the login information. This
information is available through your web server host.
6. Click Proceed to continue with the installation. The resulting installation screen will list the
installation as successful or note any problems during the install.
7. If successful, click Activate Plugin to activate it, or Return to Plugin Installer for further actions.
Some WordPress Plugins require more steps to customize them. The Details ReadMe file should
contain step-by-step instructions. After installation, this information is available on the Plugins Panel
for each Plugin. If you are having problems with a WordPress Plugin, see the Troubleshooting
section.
For information on how to install a WordPress Plugin manually, see our manual installation
guide below.
Manual Plugin Installation
There are a few cases when manually installing a WordPress Plugin is appropriate.
If you wish to control the placement and process of installing a WordPress Plugin.
If your server does not permit automatic installation of a WordPress Plugin.
The WordPress Plugin is not in the official WordPress Plugin Directory.
Installation of a WordPress Plugin manually requires FTP familiarity and the awareness that you may
put your site at risk if you install a WordPress Plugin incompatible with the current version or from an
unreliable source.
Backup your site completely before proceeding.
To install a WordPress Plugin manually:
1. Download your WordPress Plugin to your desktop.
2. If downloaded as a zip archive, extract the Plugin folder to your desktop.
3. Read through the "readme" file thoroughly to insure you follow the installation instructions.
4. With your FTP program, upload the Plugin folder to the wp-content/plugins folder in your
WordPress directory online.
5. Go to Plugins screen and find the newly uploaded Plugin in the list.
6. Click Activate Plugin to activate it.













PRACTICAL-9
CREATE A DATABASE (TABLES, COLUMNS, DIAGRAMS,
RELATIONSHIPS

Step 1: Open MS Sql Server Management Studio

Step 2: Choose necessary settings for your SQL Server. In my case, I chose Windows
Authentication

Step 3: Right click on Databases and select New Database

Step 4: Type the Database name of your desire. In my case, its DevPodSample. And dont forget to
press OK

After pressing OK. DevPodSample should appear below the Databases
Step 5.1: Create a new Table by Expanding the DevPodSample Database and right click on Tables

Step 5.2: Fill in necessary Column names and Data types.
FYI: Be careful in choosing a data type because if you have already set a data type and the table has
already records,(there are cases) it may not allow you to change data types because it will affect the
current records.

Step 5.3 How to set the Primary Key
Select & Right click a column and select Set Primary Key

Data Types in MS SQL Server 2008:
Step 5.4 Save the newly created table

Step 5.5 After saving Customer Table, create the following tables:
Table: Orders
Columns: OrderID[PK]-varchar(15), CustID[FK],varchar(15) TotalAmt-float, Date-datetime

Table: OrderDetails
Columns: OrderDetailsID[PK]-varchar(15), OrderID[FK]-varchar(15), VideoID[FK]-varchar(15),
Qty-int

Table: Genre
Columns: GenreID[PK]-varchar(15), Description-varchar(20)

Table: Video
Columns: VideoID[PK]-varchar(15), VideoTitle-varchar(50), GenreID-[FK]-varchar(15), Qty-int,
Price-money or float

Step 6: Create relationship & a diagram
Select and right click on Database Diagrams -> New Database Diagram

Step 7: Try selecting Customer.CustID and drag it to Order.CustID

and prompt will appear confirming your actions

Step 8: Do the rest and save the diagram


















Practical-10
I mport tables, database in Sql


Overview
SQL Server Management Studio (SSMS) provides the Import Wizard task which you can
use to copy data from one data source to another. You can choose from a variety of
source and destination data source types, select tables to copy or specify your own
query to extract data, and save your work as an SSIS package. In this section we will
go through the Import Wizard and import data from an Excel spreadsheet into a table in
a SQL Server database.
Explanation
To begin launch SSMS by clicking SQL Server Management Studio from the Microsoft
SQL Server program group. Upon launching SSMS you will be prompted for a
connection; connect to the Database Engine.
Locate the MSSQLTipsSSISTutorial database in the SSMS Object Explorer (create the
database if necessary); if the Object Explorer isn't visible click the View menu then select
Object Explorer:

Right click on the MSSQLTipsSSISTutorial database in the Object Explorer, select Tasks,
then Import Data from the context menu to launch the Import Wizard. Click Next to
advance past the Welcome dialog (if shown). In the following sections we will walk
through the wizard step-by-step.
Choose a Data Source
The Choose a Data Source dialog allows you to specify the source of your data. Fill in
the dialog as shown below to specify an Excel spreadsheet as the data source:

Click Next to proceed to the Choose a Destination dialog.
Choose a Destination
The Choose a Destination dialog allows you to specify the destination data source for the
data you are importing. Since we are running the Import wizard, the dialog will be
displayed with the values already filled in as shown below (based on the database you
right clicked to start the Import wizard):

Click Next to proceed to the Specify Table Copy or Query dialog.
Specify Table Copy or Query
The Specify Table Copy or Query dialog allows you to choose whether to import data by
selecting tables and/or views from the data source or specifying a query to extract
data. Select Copy data from one or more tables or views as shown below:

Click Next to proceed to the Select Source Tables and Views dialog.
Select Source Tables and Views
The Select Source Tables and Views dialog allows you to select the tables and views that
you want to import. For our demonstration we are going to select the DimGeography
table as shown below:

You can click the Preview button to view the first 100 rows of the data in the data source
as shown below:

You can click the Edit Mappings button (on the Select Source Tables and Views dialog) to
review the column mappings from the data source to the data destination as shown
below. If the table does not exist in the destination data source, you can also edit the
mappings.

You can click the option to drop and recreate the table in the destination data source; by
default this option is unchecked. You can click Enable identity insert if the destination
table has an identity column and the data source has values that you want to assign to
the identity column. If the table does not exist in the destination data source, the
Create destination table radio button will be selected and the other radio buttons will be
disabled. If the table already exists in the destination data source, the Create
destination table radio button will be disabled and you can select either the Delete or
Append options.
You can click the Edit SQL button to review and/or edit the SQL to create the table in the
destination data source as shown below:

Click OK twice to return to the Select Source Tables and Views dialog, then click Next to
proceed to the Save and Execute Package dialog.
Save and Execute Package
The Save and Execute Package dialog gives you options to perform the import operation
and to create an SSIS package and save it to SQL Server or the file system as shown
below:

For our purposes we will save the SSIS package. Click Next to proceed to the Save SSIS
Package dialog.
Save SSIS Package
The Save SSIS Package is invoked if you chose to save your import operation as an SSIS
package on the Save and Execute Package dialog. Fill in the dialog as shown below:

Click Next to proceed to the Complete the Wizard dialog.
Complete the Wizard
The Complete the Wizard dialog shows a summary of the options that you have chosen
for the import operation as shown below:

Click Finish to execute the SSIS package. You can open the imported table in SSMS and
view it. A portion of the table is shown below:

You might also like