SlideShare a Scribd company logo
1 of 3
Database Tutorial in .NET<br />Create a new Windows Forms Application in Visual Studio<br />Resize the form to 600 x 480<br />Right-click your project and Add > New Item…<br />Choose Service-based Database and rename it to TutorialDB.mdf (and wait while Visual Studio set up the database for you)<br />Select Dataset in the Data Source Configuration Wizard<br />Use the suggested name TutorialDBDataSet and click finish<br />3119755675640-4445681990The Solution Explorer should look something like image to the right (below). In Visual Studio you find the Server Explorer tab where you usually find the Toolbox when working on Windows Form. Your Server Explorer should look like image to the left (below).<br />In the Server Explorer, right-click Tables > Add New Table<br />Create Column Name, Data Type and Allow Nulls according to image (below). The         Primary Key is set using the Table Designer toolbar<br />When you set the Primary Key to the column ContactID, you specify that this field is required when writing new posts to the database.<br />The data type int, you already know, but if you are unfamiliar with databases, varchar(50) is equivalent to String in .NET limited to 50 character. Data Type bit is equivalent to Boolean using False and True. The datetime data type explains itself as we continue this tutorial.<br />Click the Save-button, type People as the name of the table<br />Expand the Tables folder and right-click the People table. If you select Show Table Data, you get a new window in your workspace. Add a few contacts here, which you later on will see in your Windows Form. The Last Call column should be entered as English date format (mm/dd/yyyy)<br />When you have entered your contacts, close the Table Data file and the People Table file.<br />Select Data menu item and Show Data Sources to view your Data Sources.<br />From the Data Sources view, drag’n’drop the People table to your Windows Form. <br />Select the down-arrow directly following the People table, and select Details. Drag’n’drop the People table once again to your Windows Form, and your solution should look like the following image.<br />Refresh the database, in the Data Sources view.<br />Compile and run your application, and start working with your first database application.<br />
Database Tutorial in .NET
Database Tutorial in .NET

More Related Content

What's hot

Ms access basics ppt
Ms access basics ppt Ms access basics ppt
Ms access basics ppt vethics
 
Microsoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 EcdlMicrosoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 EcdlRichard Butler
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft accessHardik Patel
 
Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)teng113
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksskomadina
 
Tutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft AccessTutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft Accessmcclellm
 
Intro to Microsoft Access
Intro to Microsoft AccessIntro to Microsoft Access
Intro to Microsoft AccessDUSPviz
 
Class viii ch-3 working with tables
Class  viii ch-3 working with tablesClass  viii ch-3 working with tables
Class viii ch-3 working with tablesjessandy
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access pptanuj
 
Microsoft Access 2010 - a jargon free guide
Microsoft Access 2010 - a jargon free guideMicrosoft Access 2010 - a jargon free guide
Microsoft Access 2010 - a jargon free guidePaul Barnett
 
MS Access Ch 1 PPT
MS Access Ch 1 PPTMS Access Ch 1 PPT
MS Access Ch 1 PPTprsmith72
 
Access lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAccess lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAram SE
 
Quickstart Microsoft access 2013
Quickstart Microsoft access 2013Quickstart Microsoft access 2013
Quickstart Microsoft access 2013comatsg
 
MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access TutorialvirtualMaryam
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPTokmomwalking
 

What's hot (18)

Ms access basics ppt
Ms access basics ppt Ms access basics ppt
Ms access basics ppt
 
Microsoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 EcdlMicrosoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 Ecdl
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft access
 
Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasks
 
Tutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft AccessTutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft Access
 
Intro to Microsoft Access
Intro to Microsoft AccessIntro to Microsoft Access
Intro to Microsoft Access
 
Ms access
Ms accessMs access
Ms access
 
Class viii ch-3 working with tables
Class  viii ch-3 working with tablesClass  viii ch-3 working with tables
Class viii ch-3 working with tables
 
Access ppt
Access ppt Access ppt
Access ppt
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
 
Microsoft Access 2010 - a jargon free guide
Microsoft Access 2010 - a jargon free guideMicrosoft Access 2010 - a jargon free guide
Microsoft Access 2010 - a jargon free guide
 
MS Access Ch 1 PPT
MS Access Ch 1 PPTMS Access Ch 1 PPT
MS Access Ch 1 PPT
 
Access lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAccess lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access Basics
 
Quickstart Microsoft access 2013
Quickstart Microsoft access 2013Quickstart Microsoft access 2013
Quickstart Microsoft access 2013
 
MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access Tutorial
 
Ms access
Ms accessMs access
Ms access
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPT
 

Viewers also liked

Card Sorting @ EuroVis2015
Card Sorting @ EuroVis2015Card Sorting @ EuroVis2015
Card Sorting @ EuroVis2015ryodejaneiro
 
Användbarhet i praktiken
Användbarhet i praktikenAnvändbarhet i praktiken
Användbarhet i praktikenBenny Skogberg
 
Website Learnability Study
Website Learnability StudyWebsite Learnability Study
Website Learnability StudyBenny Skogberg
 
Utvecklar för användbarhet
Utvecklar för användbarhetUtvecklar för användbarhet
Utvecklar för användbarhetBenny Skogberg
 
Android Training Syllabus - Course
Android Training Syllabus - CourseAndroid Training Syllabus - Course
Android Training Syllabus - CourseTOPS Technologies
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application DevelopmentBenny Skogberg
 

Viewers also liked (9)

Card Sorting @ EuroVis2015
Card Sorting @ EuroVis2015Card Sorting @ EuroVis2015
Card Sorting @ EuroVis2015
 
Användbarhet i praktiken
Användbarhet i praktikenAnvändbarhet i praktiken
Användbarhet i praktiken
 
Website Learnability Study
Website Learnability StudyWebsite Learnability Study
Website Learnability Study
 
Utvecklar för användbarhet
Utvecklar för användbarhetUtvecklar för användbarhet
Utvecklar för användbarhet
 
Net database
Net databaseNet database
Net database
 
Opentaps CRM
Opentaps CRMOpentaps CRM
Opentaps CRM
 
Card Sorting Tools
Card Sorting ToolsCard Sorting Tools
Card Sorting Tools
 
Android Training Syllabus - Course
Android Training Syllabus - CourseAndroid Training Syllabus - Course
Android Training Syllabus - Course
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 

Similar to Database Tutorial in .NET

Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptJoshCasas1
 
B.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessB.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessRai University
 
B.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms accessB.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms accessRai University
 
B.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms accessB.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms accessRai University
 
access1.ppt
access1.pptaccess1.ppt
access1.pptmayada34
 
Part 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxPart 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxdanhaley45372
 
msexcess-150903114645-lva1-app6892.pdf
msexcess-150903114645-lva1-app6892.pdfmsexcess-150903114645-lva1-app6892.pdf
msexcess-150903114645-lva1-app6892.pdfNamangupta562588
 
Part 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docxPart 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docxdewhirstichabod
 
PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |Umesh Kumar
 
MS Access - Supriya.pptx
MS Access - Supriya.pptxMS Access - Supriya.pptx
MS Access - Supriya.pptxShivansh725543
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notesart02
 
Lesson Four Setting Up Tables And Fields
Lesson Four   Setting Up Tables And FieldsLesson Four   Setting Up Tables And Fields
Lesson Four Setting Up Tables And Fieldsguevarra_2000
 
Create a basic performance point dashboard epc
Create a basic performance point dashboard   epcCreate a basic performance point dashboard   epc
Create a basic performance point dashboard epcEPC Group
 
Access Basics 01
Access Basics 01Access Basics 01
Access Basics 01Lets try
 
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docx
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docxCase Study Part 2 - Provider Database (Access) AssignmentsPart.docx
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docxmichelljubborjudd
 
CS1100 Access Lab 1 Creating and Querying Database.docx
CS1100 Access Lab 1  Creating and Querying Database.docxCS1100 Access Lab 1  Creating and Querying Database.docx
CS1100 Access Lab 1 Creating and Querying Database.docxfaithxdunce63732
 
Microsoft access 2007 tutorial
Microsoft access 2007 tutorialMicrosoft access 2007 tutorial
Microsoft access 2007 tutorialGhazali_MFP
 
Office productivity tools (part ii) (5.71 mb)
Office productivity tools (part ii) (5.71 mb)Office productivity tools (part ii) (5.71 mb)
Office productivity tools (part ii) (5.71 mb)IMRAN KHAN
 

Similar to Database Tutorial in .NET (20)

Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.ppt
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.ppt
 
06.ms acess
06.ms acess06.ms acess
06.ms acess
 
B.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessB.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms access
 
B.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms accessB.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms access
 
B.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms accessB.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms access
 
access1.ppt
access1.pptaccess1.ppt
access1.ppt
 
Part 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxPart 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docx
 
msexcess-150903114645-lva1-app6892.pdf
msexcess-150903114645-lva1-app6892.pdfmsexcess-150903114645-lva1-app6892.pdf
msexcess-150903114645-lva1-app6892.pdf
 
Part 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docxPart 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docx
 
PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |
 
MS Access - Supriya.pptx
MS Access - Supriya.pptxMS Access - Supriya.pptx
MS Access - Supriya.pptx
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
 
Lesson Four Setting Up Tables And Fields
Lesson Four   Setting Up Tables And FieldsLesson Four   Setting Up Tables And Fields
Lesson Four Setting Up Tables And Fields
 
Create a basic performance point dashboard epc
Create a basic performance point dashboard   epcCreate a basic performance point dashboard   epc
Create a basic performance point dashboard epc
 
Access Basics 01
Access Basics 01Access Basics 01
Access Basics 01
 
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docx
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docxCase Study Part 2 - Provider Database (Access) AssignmentsPart.docx
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docx
 
CS1100 Access Lab 1 Creating and Querying Database.docx
CS1100 Access Lab 1  Creating and Querying Database.docxCS1100 Access Lab 1  Creating and Querying Database.docx
CS1100 Access Lab 1 Creating and Querying Database.docx
 
Microsoft access 2007 tutorial
Microsoft access 2007 tutorialMicrosoft access 2007 tutorial
Microsoft access 2007 tutorial
 
Office productivity tools (part ii) (5.71 mb)
Office productivity tools (part ii) (5.71 mb)Office productivity tools (part ii) (5.71 mb)
Office productivity tools (part ii) (5.71 mb)
 

Recently uploaded

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

Recently uploaded (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Database Tutorial in .NET

  • 1. Database Tutorial in .NET<br />Create a new Windows Forms Application in Visual Studio<br />Resize the form to 600 x 480<br />Right-click your project and Add > New Item…<br />Choose Service-based Database and rename it to TutorialDB.mdf (and wait while Visual Studio set up the database for you)<br />Select Dataset in the Data Source Configuration Wizard<br />Use the suggested name TutorialDBDataSet and click finish<br />3119755675640-4445681990The Solution Explorer should look something like image to the right (below). In Visual Studio you find the Server Explorer tab where you usually find the Toolbox when working on Windows Form. Your Server Explorer should look like image to the left (below).<br />In the Server Explorer, right-click Tables > Add New Table<br />Create Column Name, Data Type and Allow Nulls according to image (below). The Primary Key is set using the Table Designer toolbar<br />When you set the Primary Key to the column ContactID, you specify that this field is required when writing new posts to the database.<br />The data type int, you already know, but if you are unfamiliar with databases, varchar(50) is equivalent to String in .NET limited to 50 character. Data Type bit is equivalent to Boolean using False and True. The datetime data type explains itself as we continue this tutorial.<br />Click the Save-button, type People as the name of the table<br />Expand the Tables folder and right-click the People table. If you select Show Table Data, you get a new window in your workspace. Add a few contacts here, which you later on will see in your Windows Form. The Last Call column should be entered as English date format (mm/dd/yyyy)<br />When you have entered your contacts, close the Table Data file and the People Table file.<br />Select Data menu item and Show Data Sources to view your Data Sources.<br />From the Data Sources view, drag’n’drop the People table to your Windows Form. <br />Select the down-arrow directly following the People table, and select Details. Drag’n’drop the People table once again to your Windows Form, and your solution should look like the following image.<br />Refresh the database, in the Data Sources view.<br />Compile and run your application, and start working with your first database application.<br />