Question

Create a database in visual basic using sql server and create two tables to process information...

Create a database in visual basic using sql server and create two tables to process information from one table to the next

0 0
Add a comment Improve this question Transcribed image text
Answer #1

In this section, you'll create two tables, a primary key in each table, and a few rows of sample data. You'll also create a foreign key to specify how records in one table correspond to records in the other table.

Create the Customers table

  1. In Server Explorer, expand the Data Connections node, and then expand the SampleDatabase.mdf node.

  2. Open the shortcut menu for Tables, and then select Add New Table.

    The Table Designer opens and shows a grid with one default row, which represents a single column in the table that you're creating. By adding rows to the grid, you'll add columns in the table.

  3. In the grid, add a row for each of the following entries:

Column name Data type Allow nulls
CustomerID nchar(5) False (cleared)
CompanyName nvarchar(50) False (cleared)
ContactName nvarchar (50) True (selected)
Phone nvarchar (24) True (selected)            
Add a comment
Know the answer?
Add Answer to:
Create a database in visual basic using sql server and create two tables to process information...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Create a database in visual basic using sql server to use bound text boxes and combo boxes Please...

    Create a database in visual basic using sql server to use bound text boxes and combo boxes Please show step by step with photos

  • Programming Microsoft Visual Basic 2012/2015 - Create an SQL or Access database with all your friends’...

    Programming Microsoft Visual Basic 2012/2015 - Create an SQL or Access database with all your friends’ information and write a program to load the names in the combo box and also search the database and find your friend’s record off the database by name and retrieve all the information from the database to the form including your friend’s picture. You should be able to add new friends, update an existing friends’ information and delete a friend’s record. See the sample...

  • Create the database and tables for the database. Show all SQL statements. Include primary and foreign...

    Create the database and tables for the database. Show all SQL statements. Include primary and foreign keys. Insert data into each table. Show select statements and display the output of each table. Note:Student’s name must be inserted into table as part of the data! Perform the SQL below: Query one table and use WHERE to filter the results. The SELECT clause should have a column list, not an asterisk (*). State the purpose of the query; show the query and...

  • Complete the following using Microsoft® SQL Server® 2016: Write SQL scripts in Microsoft® SQL Server® for...

    Complete the following using Microsoft® SQL Server® 2016: Write SQL scripts in Microsoft® SQL Server® for OLTP that include: A Data Definition Language (DDL) script creating the four tables with appropriate data types, primary and foreign keys Data Manipulation Language (DML) scripts that insert a minimum of five records into each table Select scripts showing the full contents of each table Write and run a test script for Step Two. Save a screenshot of the results. Create a 6-page Technical...

  • Need help!!! I need two programs that use one common database.. One program using a Visual...

    Need help!!! I need two programs that use one common database.. One program using a Visual Basic windows form using textboxes for data input (first name, last name, phone, email) and it should save the info into an SQL database when a save button is clicked. Second program using a C# windows form that has a drop down menu with all the names that have been saved into the database, when one name is clicked all their information should pop...

  • Create a MySQL Database called “CSC306Class”. Create three (3) tables in the database called “studentInf”, “IntructorInf”,...

    Create a MySQL Database called “CSC306Class”. Create three (3) tables in the database called “studentInf”, “IntructorInf”, and “LikedAndDisliked”. Each table should consist of five columns that are relatable to the table name. Insert at least five row of data in each table. The data can be any information as long as it is related to the table name. Upload the codes to complete the above for grading. Extra Credit: If you were able to download and setup an php server...

  • Part I. Create a library check-out database using Microsoft SQL Server that stores data about books,...

    Part I. Create a library check-out database using Microsoft SQL Server that stores data about books, patrons, and the check-out process. Books (BookID, BookName, Author, YearPublished) Patrons (PatronsID, PatronsName, PatronsAddress, PatronsBirthday) CheckInOut (TransactionID, PatronID, BookID, CheckOutDate, NumDay, ReturnDate, Late, Fees, Paid) - the NumDay field contains the number of days patrons can keep the book, if the return date is over the number of day, then the Late field will have a Y value and a fee of $1.00 per...

  • Can anyone please help me with these SQL Server Questions? I am using SQL Server 2008...

    Can anyone please help me with these SQL Server Questions? I am using SQL Server 2008 1. Write the code to create two table with at least 10 fields of various data types. 2. Write the code to insert 20 rows of data into the table that you created. 3. Write the code – “Select” statements to write three different reports from your data. 4. Write the code to create a report that incorporates functions. 5. Write the code to...

  • Create a database called COMPANY using those generated SQL scripts in MySQL database. Show the screenshot...

    Create a database called COMPANY using those generated SQL scripts in MySQL database. Show the screenshot of your database and tables in MySQL. To manage your database, you can use the phpmyadmin tool or MySQL Workbench.

  • SQL Server is Microsoft’s popular database engine that uses the Structured Query Language (SQL) to accept...

    SQL Server is Microsoft’s popular database engine that uses the Structured Query Language (SQL) to accept requests for data access. Learn about SQL Server’s backup strategies. Mention the types of data corruption that might occur in an environment using SQL Server. Discuss some database backup requirements that a database administrator should consider when devising a backup strategy for her organization’s DBMS. Describe the different types of backup techniques supported by SQL Server. Conclude by explaining why it is essential to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT