Adding an Existing database

Add a database

Feed password ManasnewPx237,
Drag SQlDatasource

Use smart tag to configure data source

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot\aspnet.35\mm.Access1\App_Data\NewPro1.mdb;Persist
Security Info=True;Jet OLEDB:Database Password=ManasnewPx237


Selecting above creates a string in Web.config
<connectionStrings>
<add name="winepro1" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\inetpub\wwwroot\aspnet.35\mm.Access1\App_Data\NewPro1.mdb;Persist
Security Info=True; Jet OLEDB:Database Password=ManasnewPx237"
providerName="System.Data.OleDb" />
</connectionStrings>



Property window of SqlDataSource, provides all the help you may
need to connect and query the database. Unlike SQL , Access database
uses hard coded path. The database can remain the same or anywhere
in the network.

Add a Grid Box

