CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2008 Tags:
Item Type: NewsGroup Date Entered: 11/11/2007 4:02:18 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 231 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
feridunt
Asp.Net User
Connect to Access database11/11/2007 4:02:18 PM

0/0

Hi i want to connect to an access database by using

Microsoft Access Database File (OLE DB)  on vs2008 beta2

but  can't figure out hat to write to connection string

 

Mikesdotnetting
Asp.Net User
Re: Connect to Access database11/11/2007 5:45:30 PM

0/0

Put the database file (mdb) in the App_Data folder of the web site, and use the following connection string:

"Provider=Microsoft.Jet.OleDb.4.0;Data Source=|DataDirectory|name_of_database.mdb" 

 


Regards Mike

8 out of 10 questions have already been asked. Their answers can be found using Google. Go on, try it.

If you prefer code samples or tutorials in another language, translate it for free at www.codechanger.com
feridunt
Asp.Net User
Re: Connect to Access database11/11/2007 8:29:15 PM

0/0

I am trying to do it on "add connection" on server explorer tag

 

when i write the connection string it says ok to the test connection. but when i click ok it says

 formaof the initializing string doesn't conform to specification starting at index 0

Mikesdotnetting
Asp.Net User
Re: Connect to Access database11/11/2007 10:16:59 PM

1/1

No - you wouldn't use this in the Server Explorer in VS.  It's for your ASP.NET pages, so they can connect to the database.  Server Explorer is something else entirely.  From what I remember, you just have to change the default pData Source from SqlClient to Microsoft Access Database File, then browse to it.  For your pages to connect, create this entry in your web.config (within the AppSettings section):

  <connectionStrings>
  <add name="MyConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|database.mdb"
   providerName="System.Data.OleDb" />
 </connectionStrings>

Use a SqlDataSource, not an AccessDataSource, and MyConnectionString will appear in the dropdown when you configure your datasource control.

 


Regards Mike

8 out of 10 questions have already been asked. Their answers can be found using Google. Go on, try it.

If you prefer code samples or tutorials in another language, translate it for free at www.codechanger.com
feridunt
Asp.Net User
Re: Connect to Access database11/16/2007 9:59:08 PM

0/0

 i can't still connect to a mdb file

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Excel 2003 VBA Programming with XML and ASP Authors: Julitta Korol, Pages: 948, Published: 2006
Master Visually Excel 2007 Authors: Elaine Marmel, Pages: 775, Published: 2008
Access 2007 VBA Bible: For Data-Centric Microsoft Office Applications Authors: Helen Feddema, Pages: 700, Published: 2007
Mastering C# Database Programming Authors: Jason Price, Pages: 688, Published: 2003
ADO.NET 3.5 Cookbook Authors: Bill Hamilton, Pages: 980, Published: 2008
Professional SQL Server 2005 Reporting Services Authors: Paul Turley, Todd Bryant, James Counihan, Dave DuVarney, Pages: 688, Published: 2006
ADO.NET Cookbook Authors: Bill Hamilton, Pages: 605, Published: 2003
Beginning SQL Server 2005 Express Database Applications: With Visual Basic Express and Visual Web Developer Express from Novice to Professional Authors: Rick Dobson, Pages: 596, Published: 2005
Sendmail: Bryan Costales, George Jansen and Claus Assmann ; with Gregory Neil Shapiro Authors: Bryan Costales, George Jansen, Claus Assmann, Gregory Shapiro, Pages: 1282, Published: 2007
Microsoft Office 2003: The Complete Reference Authors: Jennifer Ackerman Kettell, Guy Hart-Davis, Curt Simmons, Pages: 861, Published: 2003

Web:
ADO Database Connection The easiest way to connect to a database is to use a DSN-less connection. A DSN- less connection can be used against any Microsoft Access database on your ...
Using ASP to Connect to an Access Database Learn to connect an MS Access database to you ASP pages.
VB: Connect to Access database via ODBC datasource name - Visual ... VB: Connect to Access database via ODBC datasource name - Visual Basic 4 / 5 / 6 Community and Forum - Our VB forum is the place for Q&A-style discussions ...
Connect to Access Database in Visual Studio .NET - Tutorialized Apr 12, 2006 ... Connect to Access Database in Visual Studio .NET. ... ASP.NET Tutorials : Connect to Access Database in Visual Studio .NET ...
How to connect to Access 2000 database from ASP - ASPdev.org Connect to Access database from ASP tutorial. ... Connect to a Microsoft Access Database using DSN-less connection OLE-DB Set objConn = Server. ...
How to connect to MS Access Database Using ASP (ASP Programming ... This tutorial will show you how to connect to a MS Access database using the DSN -less approach. Remember, your database can reside anywhere in your computer ...
Connect to Access database with ASP/ADO. This example describes using ASP/ADO to connect to an Access Database. <% Dim oConn, oRs Dim qry, connectstr Dim db_path Dim db_dir db_dir = Server. ...
YouTube - [java] JDBC - Connect to access database Oct 12, 2007 ... Tutorial connect to database by jdbc in java programming.
Connect to Access Database in C# and ADO.NET Feb 26, 2008 ... This artilce explains how to connect and get data from an Access database in C# and ADO.NET.
Connect Your Access Database to Crystal XI Aug 13, 2008 ... Connect Your Access Database to Crystal XI. ... Connect Your Access Database to Crystal XI. 13 Aug. 2008. EzineArticles.com. ...

Videos:
[java] JDBC - Connect to access database Tutorial connect to database by jdbc in java programming
[java] JDBC - Connect to access database [java] JDBC - Connect to access database
Connect to Your Microsoft Access Database, Using Open ... visit http://www.screencastcentral.com for more. In this screencast tutorial, we show you the process of connecting Open Office Base to a ...
087-Oracle DBA Hands-On #21-Auditing a database As a DBA, you are responsible for auditing the database due to a suspicious transaction on certain table. An unknown user is deleting records and ...
How to connect Excel to Access How to connect Excel to Access
The ColdFusion Connection: Development with Dreamweaver Dreamweaver 8's database functionality makes it easier than ever to create dynamic, data-driven Web sites. Haven't yet taken the data-driving ...
Connect Access / OOBase to MySQL Using ODBC Part 1 of 2 This video demonstrates how to install and configure the MySQL ODBC driver on a Windows-based PC and then use it to connect either Microsoft ...
Connect Access / OOBase to MySQL Using ODBC Part 2 of 2 This video demonstrates how to install and configure the MySQL ODBC driver on a Windows-based PC and then use it to connect either Microsoft ...
How to make a database application in Delphi This Delphi tutorial shows how to connect to a Ms Access Database in Delphi. More at : http://www.delcode.com




Search This Site:










store photos in the upload directory

error installing starter kit

add roles for user problem

new installation problem

button placement in or after custom navigation template

aspnetaccessprovider in vs 2005 using vb.net

sql server in studio 2008??

linq and mysql

question authorization default.aspx

is there a module available to load other user controls?

contentholder in master pages

inserting from asp.net textbox

a side navigation menu for dnn

tabstrip/multipage printing

web site breakup in one application compiling problems

help migrating from static site to dnn

problem with web test in vs2008

include asp.net file

dnn 2.1.2 problem help!

can no longer debug asp.net/vb.net web solution...

missing module edit menu

createuserwizard not logging in user after created

assigning a profile value to a new user

deployment problems to production system

db connection issues

treeview default to open the second level.

anouncements updating calendar

vb.net version?

forms authentication timeout problem

sitemap control with subdomain

 
All Times Are GMT