VB.NET provides tools for accessing and manipulating database content using ADO.NET objects like the Connection, Command, DataAdapter and DataSet. The DataAdapter fills a DataSet with data retrieved from a database using an OLE DB or ODBC connection. Bound controls can then display and edit this data. Unbound controls can navigate records by changing the current position in the DataSet using methods like Find, MoveNext and filtering with parameter queries.
This presentation gives introduction to ADO.Net.
Basic introduction to connected & Disconnected architecture.
and explain the each every component in Ado.net
ADO.NET by ASP.NET Development Company in india
ADO.NET is a data access technology from the Microsoft .NET Framework that provides communication between relational and non-relational systems through a common set of components.
Video :
Courtesy:
http://www.ifourtechnolab.com
Developing Dynamic Reports for TMS Using Crystal ReportsChad Petrovay
Like many other institutions, The Morgan Library and Museum utilizes TMS to generate reports using templates prepared in Crystal Reports. But the reports and forms we desire most – loan agreements, condition reports, and exhibition checklists – need to be highly dynamic. Instead of typesetting each block of text or checkbox, the Morgan leverages Crystal Reports’ powerful capabilities to make reports flexible and easy to maintain. This presentation will dissect some of our most complicated reports to look at the underlying structures and formulae, and allow attendees to step up their Crystal Report skills.
This presentation gives introduction to ADO.Net.
Basic introduction to connected & Disconnected architecture.
and explain the each every component in Ado.net
ADO.NET by ASP.NET Development Company in india
ADO.NET is a data access technology from the Microsoft .NET Framework that provides communication between relational and non-relational systems through a common set of components.
Video :
Courtesy:
http://www.ifourtechnolab.com
Developing Dynamic Reports for TMS Using Crystal ReportsChad Petrovay
Like many other institutions, The Morgan Library and Museum utilizes TMS to generate reports using templates prepared in Crystal Reports. But the reports and forms we desire most – loan agreements, condition reports, and exhibition checklists – need to be highly dynamic. Instead of typesetting each block of text or checkbox, the Morgan leverages Crystal Reports’ powerful capabilities to make reports flexible and easy to maintain. This presentation will dissect some of our most complicated reports to look at the underlying structures and formulae, and allow attendees to step up their Crystal Report skills.
Unix is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, developed in the 1970s at the Bell Labs research center by Ken Thompson, Dennis Ritchie, and others.
Initially intended for use inside the Bell System, AT&T licensed Unix to outside parties from the late 1970s, leading to a variety of both academic and commercial variants of Unix from vendors such as the University of California, Berkeley (BSD), Microsoft (Xenix), IBM (AIX) and Sun Microsystems (Solaris). AT&T finally sold its rights in Unix to Novell in the early 1990s, which then sold its Unix business to the Santa Cruz Operation (SCO) in 1995,[4] but the UNIX trademark passed to the industry standards consortium The Open Group, which allows the use of the mark for certified operating systems compliant with the Single UNIX Specification. Among these is Apple's OS X, which is the Unix version with the largest installed base as of 2014.
UNIT : -(6)
CONNECTING DATABASE WITH ADO.NET
Content:
•ADO.NET Architecture
•Data provider and its core object
•DataSet class
•Data Binding
•SQL Data Source
How Clean is your Database? Data Scrubbing for all Skill SetsChad Petrovay
With staff working from home, many institutions are prioritizing data quality projects. Join Chad Petrovay, TMS Administrator at The Morgan Library & Museum, as he shares his deep knowledge of data scrubbing. Power users, system administrators, and SQL experts will learn how to correct and monitor data quality, and are introduced to new low-cost/free tools.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
2. Microsoft Universal Data Access
• ODBC: Open Database Connectivity
– A driver manager
– Used for relational databases
• OLE DB: The OLE database protocol
– Allows a program to access information in many types
of data source.
– Data provider: databases, spreadsheets, etc.
• ADO.NET: ActiveX Data Objects
– An Interface for OLE DB.
– Allow programmers to use a standard set of objects to
refer to any OLE DB data source.
3. .Net Applications
OLE DB
Provider
OLE DB
Data Source
ADO.Net
OLE DB
Provider
ODBC
ODBC
Data Source
SQL Server
.Net Data Provider
SQL Server
Data Source
OLE DB
.Net Data Provider
4. Using ODBC
• Windows 2000/2003:
• Control Panel /Administrative Tools/DataSource(ODBC)
• Three types of data source names
– User DSN: usable only by you and only on the machine
currently using.
– System DSN: Any one using the machine can use.
– File DSN: Can be copied and used by other computers
with the same driver installed.
5. VB.NET Database Tools
• Database connection:
– Tool/Connect to database
• Provider:MS Jet 4.0 OLE DB Provider
• Connection
• Server Explorer
– Data connections:
• Right click and Add Connection
• Tables, Views
• Toolbox:Data tab
• Data Form Wizard
6. Steps to Retrieve Data
• Establishes a connection to the database.
• Executes commands against the database.
• Store data results.
7. ADO.NET Objects
.NET Applications
Data Set
Data Reader
Adapter
Command Object
Connection Object
Database
8. ADO.NET Objects
• Connection Object: Represent a connection to the
database.
• Command Object: The command object allows us
to execute a SQL statement or a stored procedure.
• DataReader: It is a read-only and forward-only
pointer into a table to retrieve records.
• DataSet Object: A DataSet object can hold several
tables and relationships between tables.
• DataAdapter: This the object used to pass data
between the database and the dataset.
9. How to create an ADO.Net object?
• Using Wizard
– Data Form Wizard
– Data Adapter Wizard
• Using code:
– Example:
– dim strConn as string ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source =
c:sales2k.mdb"
– dim objConn as new OledbConnection(strConn)
– objConn.open()
10. Data Form Wizard
• Creating a form with ADO.Net objects and data-bound
controls to display and update information
in a dataset.
• Demo: Using Data Form Wizard to create a
navigational form.
– Project/Add Windows Form/Data Form Wizard
– Set connection
– Choose tables
– Display records in grid or in text boxes.
12. Other Data Form Demos
• Display records in text boxes.
• Add /Modify/Delete records.
• Hierarchical forms:
– Parent/Child relationship
13. Creating A Database Application
Without Programming
• Creating a database application to display
information and update database.
• A main form with buttons to open data
forms:
– DisplayInfo
– Enter New
– Modify
– Exit
14. Data Adapter Wizard
• Configure Data Adapter and generating a
dataset:
– Drag OledbDataAdapter (or database’s table) to
the form.
– Use the Data Adapter Wizard to configure the
Adapter.
– Right Click the Adapter to preview data and
creating dataset.
• Bind the dataset to controls.
15. Data Binding
• Connect a control or property to one or more data
elements.
• Simple binding: Use simple binding to display a
field value in controls that show Data Bindings in
the property window, such as text box or label.
• Complex binding: Use complex binding to bind
more than one field to controls such as DataGrid
and list box. Use the control’s Data Source and
Data Member to bind the data.
16. Creating Bound Controls
• DataGrid control:
– Data Source property
– Data Member property
– In the Form Load event, use Adapter’s Fill
method to load the dataset:
• OleDbDataAdapter1.Fill(DataSet11)
17. Binding Text Box
• Data Bindings property:
– Text: choose field
• Add navigation buttons:
– The current record position within the dataset is
stored in a form’s BindingContext’s Position
property. This position is zero based. Add one
move to the next record, minus one move to the
previous record.
18. MoveNext and MoveLast Example
• MoveNext:
– Me.BindingContext(DataSet21, "customer").Position += 1
• MoveLast:
– Me.BindingContext(DataSet21, "customer").Position =
Me.BindingContext(DataSet21, "customer").Count -1
• How to MovePrevious and MoveFirst?
• Note: The Position property takes care of the end of file
automatically.
19. CurrencyManager
• Dim custCurrMgr As CurrencyManager
• Dim ordCurrMgr As CurrencyManager
• In a procedure:
– ordCurrMgr = Me.BindingContext(Ds31, "orders")
– custCurrMgr = Me.BindingContext(Ds31, “customer")
– custCurrMgr.Position += 1
– ordCurrMgr.Position += 1
20. Binding DataGrid
• From Server Explorer, drag the table from a
database connection (or from Data tab, drag
a oleDbAdapter) onto the form.
• Create dataset.
• Drag DataGrid and set the DataSource and
Data Member property.
• Use adapter’s Fill method to load the
dataset.
21. Displaying Many Tables with
One DataGrid
• Define one Adapter for each table.
• Create the dataset with multiple tables.
• Add a DataGrid control and set the
DataSource proeprty to the dataset name
and leave the DataMember property blank.
22. Creating Hierarchical Data Grid
• Define two Adapters, one for the parent table and
one for the child table.
• Create the dataset.
• Right-click the dataset to View Schema
• Right-click the parent table and choose Add/New
Relation
• Add a DataGrid control and set the DataSource
proeprty to the dataset.parentTable and leave the
DataMember property blank.
• Note: DO File/SaveAll after creating the relation.
23. Binding ListBox
• Example: Bind Customer Table’s CID field to a
listbox.
– Create a Adapter to retrieve CID (and Cname) fields ,
and generate the dataset.
– Add ListBox and set binding properties:
• Data Source
• Display Member
• Value Member: the actual values for items in the list box. To
display the selected item’s value in a text box, do:
– Textbox1.text = ListBox1.SelectedValue
• Can we use TextBox1.text=ListBox1.SelectedItem?
No!
25. ListBox SelectedItem Property
• How to display the selected record in unbound
textbox?
• After binding to a data source, this property return a
DataRowView object.
• What is DataRowView?
– Object Browser:
• System.Data
– System.Data
» DataRowView: Item property
• To retrieve a column from a DataRowView object
(use 0-based index to identity a column):
• ListBox1.SelectedItem.Item(1)
• Or: ListBox1.SelectedItem(1)
• Or: ListBox1.SelectedItem(“Cname”)
26. Using Object Browser
• View/Object Browser
• DataSet object model:
• System.Data
– DataSet
• Relations
• Tables
– Rows
– Columns
• Use Object Browser to study object’s properties,
methods.
27. Collection Structure
• Properties:
– Count
– Item(index), 0-based index
• Methods:
– Clear, Add, Insert, Remove, etc.
28. Navigate and Display Records in
Unbound Text Boxes
• Use code to assign field value to the text
box’s text property.
• Example:
– Dim drFound As DataRow
– drFound = DataSet11.CUSTOMER.Rows(0)
• Or DataSet11.Tables(“CUSTOMER”).Rows(0)
– TextBox4.Text = drFound.Item("cname")
• Or drFound.Item(1)
– Or: TextBox4.Text =
DataSet11.CUSTOMER.Rows(0).Item(1)
– Or: DataSet21.Tables.Item("customer").Rows.Item(0).Item(1)
29. Implement MoveNext Button
with Unbound Control
If rowIndex < DataSet11.CUSTOMER.Rows.Count-1 Then
rowIndex += 1
TextBox1.Text = DataSet11.Tables("customer").Rows(rowIndex).Item(0)
TextBox2.Text = DataSet11.CUSTOMER.Rows(rowIndex).Item(1)
Else
MsgBox("out of bound")
End If
Note: MovePrevious, MoveLast, MoveFirst?
31. Searching with the Find Method
Another Way to Bind Listbox and Display
Selected Record
• Create an adapter to retrieve Customer
records and create a dataset.
• Bind the CID field to the listbox.
• Use the Find method of Table’s Rows
collection to find the record.
• Display the found record in unbound text
boxes.
32. Code Example
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ListBox1.SelectedIndexChanged
Dim drFound As DataRow
drFound = DataSet41.CUSTOMER.Rows.Find(ListBox1.SelectedValue)
‘ Assume SelectedValue is CID
TextBox1.Text = drFound.Item("cname")
TextBox2.Text = drFound.Item("rating")
End Sub
Note: We can get the search value from other controls such as InputBox
and Textbox.
33. How to Determine If Record Exists
or Not
Dim foundRow As DataRow
Dim SearchValue as String
SearchValue=InputBox(“Enter CID”)
foundRow = DataSet41.CUSTOMER.Rows.Find (SearchValue)
If Not (foundRow Is Nothing) Then
TextBox1.Text = drFound.Item("cname")
TextBox2.Text = drFound.Item("rating")
Else
Messagerbox.show(“Record not exist”)
End If
34. Creating Parameter Query with Adapter
Configuration Wizard
• Parameter query: Selection criteria is entered at
run time.
• Command object’s Parameters property.
• Example: Orders table: OID, CID, Odate,
SalesPerson
• To create a parameter for the CID field:
– In the Query Design window’s criteria column of the CID field, add
criteria: =?
• To assign the parameter value:
– OleDbDataAdapter2.SelectCommand.Parameters("cid").Value =
• Demo: Get CID from a InputBox and display orders.
35. Parameter Query Example:
• Select CID from a listBox and display
orders of the selected CID in a DataGrid
– Create and bind the listbox (specify the valueMember).
– Create a second adapter and define a parameter query.
– In the Query Design window’s criteria column, add criteria: =?
– Generate a 2nd dataset (DataSet21 in this example) with the
parameter.
– Create and bind the DataGrid to the dataset.
– In the listbox’s SelectedIndexChanged event, assign the selected
value to the parameter and fill the dataset:
• DataSet21.Clear()
• OleDbDataAdapter2.SelectCommand.Parameters("cid").Value =
ListBox1.SelectedValue
• OleDbDataAdapter2.Fill(DataSet21)
36. Display Selected Record in Text Boxes
with Parameter Query
• Create and bind the listbox.
• Create a second adapter and define a parameter query.
– In the Query Design window’s criteria column, add criteria: =?
• Generate the dataset with the parameter.
• Create and bind textboxes to the dataset.
• In the listbox’s click event, assign the selected value to the
parameter and fill the dataset:
– DataSet11.Clear()
– OleDbDataAdapter2.SelectCommand.Parameters("cid").Value =
ListBox1.SelectedValue
– OleDbDataAdapter2.Fill(DataSet11)
37. Send Changes in a Bound DataGrid
Back to the Database
• Updating records in DataGrid:
– New records are added at the end of the grid.
– To delete a record, click the leftmost column to select
the record, then press the delete key.
– Modify record
• Add an Update button that use adapter’s update
method to send changes back to the data source:
– OledbDataAdapter1.Update(Dataset11)
38. Creating Parent/Child Form with
Binding
• Dataset contains Customer and Orders with
relation CustomerOrders.
• Bind the textboxes to Customer table.
• Bind the datagrid to the relation:
– DataSource: Dataset
– DataMember: Customer/CustomerOrders
• Note: Study the form created by the Data Form
Wizard.