Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 2nd, 2007, 12:36 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

I am N.Ramasamy. I am working as a programmer. To connect oledb with MS Access, we want to write the query string as follows

string qs = @"PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=e:\db\names.mdb";

 one important thing is we want to give space in between DAtA and Source

I have created one database named as names.mdb and it has name as a table.

The name table has the following fields

  1.ID
  2. Name

the database placed within e:\db

coding

string qs = @"PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=e:\db\names.mdb";
        OleDbConnection con = new OleDbConnection(qs);
        con.Open();
        OleDbCommand com = new OleDbCommand( "select * from name", con);
        OleDbDataReader reader =com.ExecuteReader();
        while (reader.Read())
        {
            Response.Write("<br>" + reader["ID"]);

            Response.Write("<br>" + reader["Name"]);
        }


 
Old May 2nd, 2007, 12:39 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default



I am N.Ramasamy. I am working as a programmer. To connect oledb with MS Access, we want to write the query string as follows

string qs = @"PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=e:\db\names.mdb";

 one important thing is we want to give space in between DAtA and Source

I have created one database named as names.mdb and it has name as a table.

The name table has the following fields

  1.ID
  2. Name




string st = @"PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source="+ Server.MapPath("~/App_Data/names.mdb") ;
        OleDbConnection con = new OleDbConnection(st);
        con.Open();

        OleDbCommand com = new OleDbCommand("select name from name", con);

        OleDbDataReader reader= com.ExecuteScalar();

        while (reader.Read())
        {
            Response.Write("<br>" + reader["name"]);
        }



        con.Close();

 
Old May 16th, 2010, 09:01 AM
Registered User
Points: 37, Level: 1
Points: 37, Level: 1 Points: 37, Level: 1 Points: 37, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow Could not find Installable ISAM

This problem is usually found with MS Access 2007 that is why many still prefer to use MS access 2003. This problem usually arises due to non availability of ODBC driver for Access. I think you should download the ODBC driver from Microsoft website for Access database .I hope that will solve your problem.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Could not find installable ISAM dummy Classic ASP Basics 0 May 16th, 2007 02:36 AM
"Could not find installable ISAM" evidica ASP.NET 1.0 and 1.1 Basics 3 March 12th, 2007 11:27 AM
Could not find installable isam Johno13 BOOK: Beginning VB.NET Databases 1 October 5th, 2006 11:46 AM
Couldnot find installable ISAM jitheshsunny ASP.NET 1.x and 2.0 Application Design 1 February 1st, 2006 03:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.