Create the script to create the ms sql table

Assignment Help PL-SQL Programming
Reference no: EM13909609

Database table: MosaicVisits

I have a database table named "MosaicVisits" attached. I would like to create search page to retrieve and display the data from the database table either search by the LastName or between a date range. For example, I can select the option search by LastName and enter last name into the textbox and click on Submit button, records associated to that LastName will display.

Or you can select to search by a date range. For example, the start date is 1/14/2013 and end date is 2/11/2013. Once you click on the Submit button, the following records will display.

VisitID Tech_ID LastName PurposeStudy PurposeSocial PurposeGroupProjects PurposeOther Ethnicity VisitDate
19 11053394 Ford 0 1 0   White 1/14/2013 9:44
17 12339966 Anderson 0 1 0   AfricanAmerican 1/14/2013 9:39
58 12339966 Anderson 1 1 0     1/16/2013 9:00
89 12339966 Anderson 1 1 0     1/18/2013 9:03
67 12339966 Anderson 1 0 0     1/17/2013 8:45
78 288982 Johnson 1 0 0   Asian 1/17/2013 11:50
28 713754 Vang 0 1 0   Asian 1/14/2013 12:25
25 234567 Vang 1 1 0   Asian 1/14/2013 10:56
118 234567 Vang 1 1 0   Asian 1/23/2013 10:53
190 10996760 Vang 1 0 0   Asian 2/11/2013 11:18

You can only perform one search option at a time. All leading zero should also display.

Below are what I need:

1. Create the script to create the MS SQL table

2. Create the script to create a store procedure

3. Create c# script that connect to the store procedure named MosaicVisitsDB.CS.

Below is a sample of the c# format to connect to the store procedure.

using System;
usingSystem.Collections.Generic;
usingSystem.Configuration;
usingSystem.Data;
usingSystem.Data.SqlClient;
usingSystem.Linq;
usingSystem.Web;

///<summary>
/// Summary description for StdntLookupDB
///</summary>
publicenumQueryType
{
ByLastName,
ByTechID
}

publicclassStudentDB
{
publicSqlDataReaderGetStudents(QueryTypequeryType, stringqueryText)
{
// Create Instance of Connection (establishing the SQL Server connection)
varmyConnection = newSqlConnection(ConfigurationManager.ConnectionStrings["ARDevConn"].ConnectionString);

//Create SqlCommandObj (usp_GetStudentInfoByLastName will be the name of the store procedure)
varmyCommand = newSqlCommand("usp_getstudentdata", myConnection);

// Mark the Command as a Store Procedure
myCommand.CommandType = CommandType.StoredProcedure;

//Set up params
varparamFilterBy = newSqlParameter("@FilterBy", SqlDbType.Int, 8);
paramFilterBy.Value = (int)queryType;
myCommand.Parameters.Add(paramFilterBy);

varparamFilterText = newSqlParameter("@FilterText", SqlDbType.NVarChar, 50);
paramFilterText.Value = queryText;
myCommand.Parameters.Add(paramFilterText);

// Open the connection
myConnection.Open();
//Execute the Command
SqlDataReader result = myCommand.ExecuteReader(CommandBehavior.CloseConnection);

//Return the datareader result
return result;
}
}

4. Create the search web page by either the LastName or between a date range in asp.net 2013.

5. Create c# handler or code behind to perform the function, which will connect the store procedure to the search web page form.

Attachment:- Data.rar

Reference no: EM13909609

Questions Cloud

To finance its ongoing construction project : To finance its ongoing construction project, Bowen-Roth Inc. will need $5,000,000 of new capital during each of the next 3 years. The firm has a choice of issuing new debt or equity each year as the funds are needed, or issue only debt now and equity..
Find a right eigenvector for each distinct eigenvalue : Find a right eigenvector for each distinct eigenvalue, and show that the eigenvalue of multiplicity 2 does not have two linearly independent eigenvectors.
What is the approximate price of the leyda bond : Assume that Leyda Inc. has an outstanding bond with a 6.5% annual coupon, exactly 10 years to maturity, a par value of $1000 and a yield of 5%. The bond is convertible into 100 shares of Leyda stock, which is currently priced at $10.25 per share. Wha..
Residual dividend policy and maintains a debt-equity ratio : Northern Foods has aftertax earnings of $43,200 for the year. The firm adheres to a residual dividend policy and maintains a debt-equity ratio of .6. The firm needs $45,000 for capital investment. How much will the firm pay out in dividends from this..
Create the script to create the ms sql table : Create the script to create the MS SQL table, Create the script to create a store procedure, Create c# script that connect to the store procedure named MosaicVisitsDB.CS
Common stock and the investment banking process : Which of the following statements concerning common stock and the investment banking process is NOT CORRECT?
Weighing the merits of leasing the equipment or purchasing : Stanley Inc. must purchase $6,000,000 worth of service equipment and is weighing the merits of leasing the equipment or purchasing. The company has a zero tax rate due to tax loss carry-forwards, and is considering a 5-year, bank loan to finance the ..
Write brief description abott laboratories including sector : Write a brief description of Abott Laboratories including the sector, products, key executives (CEO, CFO, COO) information - name, education, years of experience. You may use yahoo finance, morningstar or any financial websites. One page
Develop a specific set of realistic question : Develop a specific set of realistic questions (at least five per member) that you will ask each of the three executive team members based on their specific roles, responsibilities, and perspectives regarding the causes of the operating losses and the..

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  What is the expected profit for one month

Investigate the profitability that would result if instead of baking 30 batches each morning, they bake 25, 30, 35, or 40 batches. Which would you recommend and why? (You should use Decision Table with Crystal Ball, or Scenario Manager if plain Ex..

  Write a pl/sql solution that displays the registration

Write a PL/SQL solution that displays the registration and the maximum and the minimum miles travelled by a car during the rental period for all the bookings where the booking has been paid for.

  Create the sql queries

Create the queries listed below: (Just write the SQL command for each query), RIDER - POINT TOTALS BY RACE LEVEL LISTING, List the Rider's Name, RaceLevel as Race_Level and the total number of all points based on their placement. Make sure that you..

  Create a script file containing the pl/sql code

For the lab, you will need to create a script file containing the PL/SQL code that will address the lab steps below. Run the script file in your SQL*Plus session using the SET ECHO ON session command at the beginning to capture both the PL/SQL blo..

  Display all the lastnames from the customers table

Display all the LastNames from the Customers table and any associated OrdersIDs from the Orders Table. Show the LastName even if they do not have any associated orders. Order the results by LastName in ascending order.

  Write a perl subroutine for temperature conversion

Write a perl subroutine for temperature conversion named ' convert_temp '. It should be able to handle both Fahrenheit to Celsius conversions as well as Celsius to Fahrenheit conversions.

  Write pl-sql block to display the last name of people

Write a PL/SQL block that displays the last name and salary of the following people. Each of these can be done separately as PL/SQL, first to test and get the output lines then encapsulated in the procedure.

  Write the sql ddl to create the database

Write a command that will remove the Jones that lives in Orange from the Customer table .Write the SQL DDL to create the database that contains each of the relations shown in the above ERD.

  Analyse er diagram and database schema

Display the structure details for which the smallest total billable activity (time) has been performed in the last month - Display details of all employees (number, name) for whom billingrecords have been created when they are not identified as havi..

  Description of vulnerability, exploit and attack software

Describe the vulnerability that the attack exploits, including how or why the vulnerability exists; what versions of software are vulnerable.

  Select distinct cmdclient

SELECT DISTINCT CMDclient.'Client Code SCA' as GuestCode, CMDextras.ArrivalDate as arr, CMDextras.DepartureDate as dep, CMDapr.FirstName as fname, CMDapr.Surname as lname

  Querries related to sql programming

Create a parameter query based on the Customer tablethat prompts for customers in a specific state. Do not just make a select query. A parameter is different. Display the CustomerNum, CustomerName, City, and State fields.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd