26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

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.

Note:- The above code is provided in CD in folder WindowsAppSqlClient”.Comments in<br />

the code do explain a lot but we will again iterate through the whole code<br />

later..”LoadData” is the main method which loads the data from SQL SERVER.Before<br />

running this code you have to install SQL SERVER in your machine.As we are dealing<br />

with SQLCLIENT we need to setup database in SQL SERVER.For this sample i have<br />

imported access “Nwind.mdb” in “SampleAccessDatabase” folder in CD in to<br />

SQlSERVER.Depending on computer you will also have to change the connectionstring in<br />

Web.config file.<br />

For setting up the sample SQL table we can use the DTS import wizard to import.See the<br />

below figure which is using data source as Microsoft Access.While importing the database<br />

author had give the database name as “Employees”.<br />

Figure:- 9.2 Loading “Nwind.mdb” in SQL SERVER for the sample<br />

180<br />

* Are you comfortable with location shift ? If you have personal problems say no right at<br />

the first stage.... or else after joining surely you will repent.

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

Saved successfully!

Ooh no, something went wrong!