Windows 2000/ XP Overview Norman White Stern School of Business.

Slides:



Advertisements
Similar presentations
Database Management Using Microsoft Access Xinhua Chen, Ph.D. Chinese Association of Professionals in Science and Technology March 23, 2003.
Advertisements

DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
Presentation Heading – font Arial
Browsers and Servers CGI Processing Model ( Common Gateway Interface ) © Norman White, 2013.
1 Chapter 12 Working With Access 2000 on the Internet.
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Using Visual Basic 6.0 to Create Web-Based Database Applications
1 Active Server Pages Active Server Pages (ASPs) are Web pages ASP = server-side scripts + HTML The appearance of an Active Server Page depends on who.
4/8/99 C. Edward Chow Page 1 Active Server Page It is a server-side scripting environment for creating dynamic content. ASP are files with.asp extension,
Network Printing. Printer sharing Saves money by only needing one printer Increases efficiency of managing resources.
4/8/99 C. Edward Chow Page 1 Internet Services Manager Click Start | Programs | Administrative Tools | Internet Services Manager.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
1 DOS with Windows 3.1 and 3.11 Operating Environments n Designed to allow applications to have a graphical interface DOS runs in the background as the.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
Creating Web Page Forms
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
PHP Programming. Topics Background and History of PHP Installation Comments in PHP Variables Conditions Loops Functions File Handling Database Handling.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 24 – Web Servers (PWS, IIS, Apache, Jigsaw) Outline 24.1Introduction 24.2Microsoft Personal.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Interacting With Data Databases.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
Advanced Database Management System Lab no. 11. SQL Commands (for MySQL) –Update –Replace –Delete.
Chapter 7 PHP Interacts with Ms. Access (Open DataBase Connectivity (ODBC))
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
Data-Enabled Web Sites: Classibooks.com & Internet Database Technologies Colin Fukai April 4, 2000 Gonzaga University.
3/8/00asp00 1 Active Server Pages from Microsoft Nancy McCracken Northeast Parallel Architectures Center at Syracuse.
Server Side Programming ASP1 Server Side Programming Database Integration (cont.) Internet Systems Design.
Using Visual Basic 6.0 to Create Web-Based Database Applications
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 6 1 Microsoft Office FrontPage 2003 Tutorial 6 – Publishing a Web Site.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
Putting it all together Dynamic Data Base Access and Authentication Norman White Stern School of Business.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
ASP-12-1 Data Store Access Colorado Technical University IT420 Tim Peterson.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Database Connectivity and Server-Side Scripting Chapter 12.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Unit 1 – Web Concepts Instructor: Brent Presley.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring Windows Server 2008 Printing.
Using databases ActiveX Data Objects (ADO) Connecting to a database Reading data from a database Inserting, updating and deleting records Using databases.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
ASP.NET Programming with C# and SQL Server First Edition
Data Virtualization Demoette… ODBC Clients
Introduction to Dynamic Web Programming
Microsoft Office Illustrated
VISUAL BASIC INTRODUCTION TO DATA CONNECTIVITY.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Web Application Development Using PHP
Presentation transcript:

Windows 2000/ XP Overview Norman White Stern School of Business

Windows 2000 as a Web Platform What are the issues one needs to address in considering W2K/ XP as a web Platform? What is W2K? –Several Variations Professional Server Advanced Server DataCenter Server

Professional Upgrade to NT Workstation –Designed for single users, small workgroups –More secure and reliable than 98, NT etc. –Supposedly crashproof due to major system redesigns

Win 2K Server Entry level Server Version Supports 5 connections IIS Web Server included Basic File and Print Sharing Can support up to 4 Processors

Win 2K Advanced Server Supports multiple systems (up to 8 processors each) 25 users (more at $40/user) Semi fault tolerant

Win 2K Data Center Server Mainframe competition 32 processor support System clustering support Can Scale up (more processors) or out (more Clusters) Designed for Mission critical environments

Problems fixed/addressed under Win 2K Plug and play supports most (not all ) new devices Designed to be crash proof (claims are % up time for Win2K Data Center) –Windows File protection keeps new applications from replacing DLLs with older or incompatible versions –Reboots no longer necessary to install software –Terminal Services Access Client through IE

What about Win2K as a Web Platform? IIS - Top Rated Web server, easier to administer than Unix servers Supports most common add-ons like Php, PERL, JRE etc. In addition supports ASP, Active Server Pages Also supports Front Page Extensions which allow Front Page users advanced development tools, including Visual Studio.

Win2K /IIS IIS also includes a built-in Indexing Server for searching content “Virtual sites” allow you make any folder on the system appear as a /directory under the root directory. ODBC support of Win2K allows easy access from ASP to other databases, either local or remote

IIS/ASP Integration with Office IIS and Office are tightly integrated in Office 2000 Office applications can be used to directly generate Web applications, including Data Base applications Integration makes it a great development environment for prototyping But first, what is ASP?

Active Server Pages Concept is to have web pages that dynamically change (at the server) depending on external events (data, time, client, form inout etc). ASP is Visual Basic Code embedded in the web page (like Javascript) and interpreted at the server before the page is delivered.

ASP Processing Unlike CGI processing and some other approaches, the ASP processor is part of the IIS web server (just as javascript is part of the browser). This means that the OS does not have to start up another application on every page. If the page has an ASP extension, the web server will look for embedded ASP code.

ASP coding Whenever the web server finds an ASP reference, it turns control over to ASP. The ASP processor executes the instructions and the returns control to the web server. Since the ASP processor is part of the web server, it can do things like generate HTML directly. But it can also do almost anything you can do in VB, including data base access.

More ASP Forms Since ASP is part of the WEB server access to form information is much easier than most other approaches. Var = request.QueryString(“fieldname”); –will place contents of field “fieldname” in Variable “Var” –(nicer than Unix shell huh?) Var = Request.Form(“fieldname”) for POST

ASP and Office Even better is the ability of Office to generate working ASP applications Just click on “save as” and scroll down to the Active Server Pages option –Office will generate a set of ASP files that implements the application on the WEB using ASP. Then move application to the web server and run (maybe…)

ASP and Databases ASP accesses data bases using ODBC (Open Data Base Connectivity ) now called ADO (ActiveX Data Objects) and MDAC The name keeps changing, but the concept is the same –Application Opens a data base connection to a local data object (which can point to remote data) –It then manipulates the data base

ODBC Naming As long as the ODBC name is the same on the system you develop app and the web server, everything should run on the web server (or else you need to change the name) To add an ODBC data source to a system, Click on Start, Settings, Control Panel, ODBC Data Sources (32 bit) Give the Data source a name, and then pick the database system, the server and the userid and password

Sample ASP file Example 1 <% FirstVar = "Hello world!" %>

Looping in ASP Example 2 <% FirstVar = "Hello world!" %>

Functions in ASP Example 3 <% FirstVar = "Hello world!" %> The time is:

Conditional Execution in ASP Language=VBScript %> Example 4 18 OR Hour(time) Good Night Everyone. Good Morning Everyone.

Sample Form (from Microsoft ASP Tutorial) Button Form Computer Programming Experience: Less than 1 year. 1-5 years. More than 5 years.

Guestbook Application Need to –Create Database using Access I.e. create Table and fields –Move Data Base to web server or create database in c:\inetpub\wwwroot\Tutorial\ (Default web server root) –Create ODBC DSN for Database –Create ASP application (guestbook.asp)

Guest Data Base fields Field Name Data Type and General Properties ID AutoNumber, Field Size=Long Integer, New Values=Increment, Indexed=Yes(No Duplicates) TB1 Text, Field Size=255, Required=No, Allow Zero Length=Yes, Indexed=No TB2 Text, Field Size=255, Required=No, Allow Zero Length=Yes, Indexed=No TB3 Text, Field Size=255, Required=No, Allow Zero Length=Yes, Indexed=No TB4 Text, Field Size=255, Required=No, Allow Zero Length=Yes, Indexed=No MB1 Memo, Required=No, Allow Zero Length=Yes

Creating ODBC Data Source 1.In the ODBC Data Source Administrator, select the ODBC icon. 2.Select File DSN. 3.Select Add, select Microsoft Access Driver, and click Next. 4.Type in a descriptive name for your file DSN (Guestbook) and click Next. 5.Click Finish, click Select, specify the location of the database file, and select OK. 6.Click OK twice. After you specify the location of the database file, the ODBC Data Source Administrator creates a file DSN for it.

The Application Logic Guestbook.asp See if “Message” field (hidden) is True –If true, retrieve field values and insert new entry into the database table Message not True –If message is not true, generate the form –with a hidden field “message” = TRUE –and have the action statement run Guestbook.asp (this asp file Note, only one file –It either processes the input, or generates the form for the input.

Guestbook.ASP file (put in c:\inetpub\wwwroot\Tutorial) Guest Book <% IF request.form ("Message")="True" THEN strTB1=request.form("To") strTB2=request.form(" Add") strTB3=request.form("CC") strTB4=request.form("Subject") strMB1=request.form("Memo") IF strMB1 = "" THEN iLenMB1=255 ELSE iLenMB1 = Len(strMB1) END IF

Create the Database connection ‘Connects to the Access driver and Access database in the Inetpub ‘directory where the database is saved strProvider = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=C:\Inetpub\Wwwroot\Tutorial\guestbook.mdb;" ‘Creates an instance of an Active Server component set objConn = server.createobject("ADODB.Connection") ‘Opens the connection to the data store objConn.Open strProvider ‘Instantiate Command object and use ActiveConnection property to ‘attach connection to Command object set cm = Server.CreateObject("ADODB.Command") cm.ActiveConnection = objConn

Create an SQL Query ‘Define SQL query cm.CommandText ="INSERT INTO Guestbook (TB1,TB2,TB3,TB4,MB1) VALUES (?,?,?,?,?)" ‘Define query parameter configuration information for guestbook fields set objparam=cm.createparameter(, 200,, 255, strTB1) cm.parameters.append objparam set objparam=cm.createparameter(, 200,, 255, strTB2) cm.parameters.append objparam set objparam=cm.createparameter(, 200,, 255, strTB3) cm.parameters.append objparam set objparam=cm.createparameter(, 200,, 255, strTB4) cm.parameters.append objparam set objparam=cm.createparameter(, 201,, iLenMB1, strMB1) cm.parameters.append objparam cm.execute response.write("Thank you!")

Handle New Entries ELSE%> Guestbook To Address CC Subject Message

So, How hard is that? Not too bad, but how does someone look at the guestbook? Need another ASP file to view entries Nice to allow users to sort entries...

Viewing Program View Guest Book <% ‘This section makes it possible for visitors to sort the data in the columns in ascending order. if request.form("sort")<> "" THEN StrSort=request.form("sort") ELSE StrSort="TB1 ASC" END IF

Connect to Guestbook and create query strQuery="SELECT * FROM Guestbook ORDER BY " &StrSort ‘Database path statement describing the driver to use and the path to the desired database. strProvider = "Driver=Microsoft Access Driver (*.mdb); DBQ=C:\Inetpub\Wwwroot\Tutorial\guestbook.mdb;" IF Request("ID") <> "" THEN strIDNum=Request("ID") ‘Creates an instance of an Active server component set objConn = server.createobject("ADODB.Connection") ‘Opens the connection to the data store objConn.Open strProvider ‘Instantiate Command object and use ActiveConnection property to ‘attach connection to Command object set cm = Server.CreateObject("ADODB.Command") cm.ActiveConnection = objConn

‘Define SQL query cm.CommandText = "DELETE FROM Guestbook WHERE ID = " &strIDNum cm.Execute END IF ‘Instantiate a Recordset object and open a recordset using ‘the Open method Set rst = Server.CreateObject("ADODB.recordset") rst.Open strQuery, strProvider %>

Guest Book <% ON ERROR RESUME NEXT IF rst.EOF THEN Response.Write "There are no entries in the database." ELSE%>

<% ‘Deletes rows from the database, this cannot be undone Response.Write " Delete Record " FOR i = 1 to rst.Fields.Count -1 Response.Write " " NEXT WHILE NOT rst.EOF %> <% Response.Write " Delete " FOR i = 1 to rst.fields.count - 1 Response.Write " " & rst(i) &" " NEXT rst.MoveNext WEND END IF %>

What is happening? What does the code do? Hint, What do you think the name of the asp file is?

Conclusion Win2K/XP fast development environment Integrated with Office BUT Win2K still not a mature platform Needs –Something like a standard shell language –Batch queues with priorities –Priority for different applications etc. Excellent system for small – medium businesses. Still problematical for very large sites, but moving fast.

Solution DOT NET…..