13.07.2015 Views

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

286<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>: A Beginner’s <strong>Guide</strong>ever again. To get rid of the unused table, the (deadly) DROP <strong>com</strong>mand is available. Theformat is exquisitely simple:DROP TABLE tableNameSo, if you want to tidy up your database and get rid of the example CodeTable createdat the beginning of the chapter, you would useDROP TABLE CodeTableAs noted with the DELETE <strong>com</strong>mand, you want to give the users fair warning that theyare about to permanently eliminate a table and all of its data. So be sure to have somekind of button or label to wave a flag in front of the users to make certain they wish toeliminate the old table.SummaryIn this chapter you only saw a single listing that invoked <strong>ASP</strong>.<strong>NET</strong> and C# with SQL<strong>com</strong>mands. That was by design to show how you could do so without the aid of VisualStudio 2008. Otherwise, this chapter’s focus has been on SQL as a language in its ownright. Similar SQL <strong>com</strong>mands can be used with different types of languages and systems.For example, you could use Perl, PHP, or Adobe ColdFusion and the SQL language. Thus,to set off SQL as a language, this chapter saw very little of <strong>ASP</strong>.<strong>NET</strong> or C#.In the next chapter, Chapter 12, all of this will change. Not only will you see a lotmore <strong>ASP</strong>.<strong>NET</strong> and C# code with SQL statements embedded in C# strings, you will seeVisual Studio 2008 in a much larger role. Most of the SQL you’ve learned in this chapterwill make more sense in Chapter 12 because you can see it actually make changes ina database table.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!