Clear? Of course not. If you have a server running IIS you need an IIS licence, an SQL SP7 licence, and an SQL Server 7 Internet Connector. This will cost you at least 1000 dollars. If you are running NT4 then (above the NT4 licence) you will only need an SQL Server Pack 7 licence (around 400 dollars). However, you may wish to run on Win2000 (which contains IIS for free), but then, in addition to SQL SP7, the version of IIS that comes with Win200 needs SQL Server Pack 7 Active Directory Services. In all cases you may need MS Active X Data Objects 2.1, so ask your local Microsoft Certified Solution Provider for a concrete offer for your case. Connecting ASP to SQL databases is like with Access. In one unbroken line type: strConnect = "Driver={SQL Server};Server=servername; 2. The business layer (middleware) approach You have already explored the limits of what ASP can do with databases. It is toughyou know that it is a strenuous exercise to get the whole benefit. So several lines of thought have converged on "middleware." Middleware solves several problems:
Thus a three-tiered system has evolved. ASP is never allowed to talk directly to the database. Instead, ASP talks to middleware modules which are written in Visual Basic. This solves any security problems. On top of that, the Visual Basic lets you manipulate the database much better (so you can get more out of it) and faster. Why (you may ask again) was this not recommended from the start ? There are two answers. First, the book has to do with ASP, not Visual Basic, and second, would you really have gone out and spent 2000 dollars on a Visual Studio Enterprise Edition (which includes Visual Basic 6 and Visual InterDev)? 3. The vanishing milk problem Imagine an Internet supermarket selling milk (amongst other things). Late in the day there are 10 cyber-shoppers in the store. Each puts milk into their cyber-shopping baskets. However, in reality, there is only one carton of milk left on the shelves, so when the first one gets to the cash-out, the milk in the other 9 shopping baskets simply disappears! Everybody would like a lot of cyber-shoppers in their Internet store, so how do you keep a check on how much you have left ? If you check out as soon as stuff is put in a shopping basket, then youll soon have empty shelves, but all your cyber-shoppers may simply have shut down their browsers, so youve got no money either! The best answer was MTS, Microsoft Transaction Server. This became incorporated into Commerce Server 2000, which has recently been re-released in a slightly more user-friendly form (MS Commerce Server 2002). Unfortunately, this is not the right place to go into Commerce Server, but if you want an e-commerce solution (or be an e-commerce programmer), then this is the kind of problem youll have to address. 4. Life after ASP I hope you have got a few pointers as to what to do now. You need to look at transactions, you need to know more about databases, and, if you wish to continue in Microsoft services, then you need quite a bit of XML. Good luck. | Home | News | Catalog | Contacts | Review Copy Requests| Order | Errata | Submission Guidelines | History | Webcast Archives | eTechNotes | Instructors | ||||||||||||||