17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

B<br />

Very Simple<br />

Connectivity Examples<br />

Entire books are written around the subject of connectivity. For the first several books I put out, I<br />

deliberately avoided the topic entirely in the basic belief that it is a simply huge topic — one that is<br />

difficult to do justice to in less than a full book. That said, having a <strong>SQL</strong> <strong>Server</strong> but not allowing<br />

programs to connect to it is the same as not having a <strong>SQL</strong> <strong>Server</strong> at all. Sure, we may log into<br />

Management Studio and write queries directly, but the reality is that the vast majority of our users<br />

out there never actually see the database directly.<br />

For this “<strong>Beginning</strong>” title, I’m still going to touch on the subject only in a very limited fashion that<br />

is purely meant for quick reference once you’ve looked at other sources, or perhaps to give you an<br />

inkling of what is involved. If you’re serious about displaying excellence in working with <strong>SQL</strong><br />

<strong>Server</strong> or any other connectivity-based data solution, I highly recommend you purchase a book<br />

specifically on data access and connectivity.<br />

This appendix is a collection of extremely simple connectivity examples utilizing a couple of client<br />

languages and a few features in two different connectivity models. We’re going to stick a few basic<br />

examples of connecting within each language/model mix and leave the discussion of the whys<br />

and hows to books that are focused solely on connectivity.<br />

I can’t stress enough how these examples are truly the basics. You can make many, many choices and<br />

optimizations for connectivity. Each connectivity model has its own quirks, and different languages<br />

sometimes bring their own flair. If you’re trying to get more out of this than just a basic feel for how<br />

it’s done (or perhaps an “Oh yeah, I forgot that part”), check out the connectivity coverage I offer<br />

in Professional <strong>SQL</strong> <strong>Server</strong> <strong>2008</strong> Programming or perhaps another connectivity-specific book.<br />

(There are likely entire books just for your particular language and connectivity model mix.)<br />

Connectivity models covered here include:<br />

❑ ADO.NET<br />

❑ ADO

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

Saved successfully!

Ooh no, something went wrong!