# ODBC connection with C# ASP.NET?

**URL:** https://forum.kirupa.com/t/odbc-connection-with-c-asp-net/163972
**Category:** Uncategorized
**Created:** [September 27, 2005, 6:46pm UTC](https://forum.kirupa.com/t/odbc-connection-with-c-asp-net/163972 "2005-09-27T18:46:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![G111](https://avatars.discourse-cdn.com/v4/letter/g/7ea924/32.png) [@G111](https://forum.kirupa.com/u/G111)
#### Post date: [September 27, 2005, 6:46pm UTC](https://forum.kirupa.com/t/odbc-connection-with-c-asp-net/163972/1 "2005-09-27T18:46:03Z")

</div>

Hi guys and gals…my question – how do you connect to an odbc data source with C# [ASP.NET](http://ASP.NET)???

At the moment I’m connecting using this:

```php

OleDbConnection objConn = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;"Data Source=path_to_db");

```

I’m having some folder restrictions with this command too when inserting data into a db so I guess I’m thinking that using a data source instead will irradicate this and also I need to know how to 🙂

Any help much appreciated…also to my knowledge its the same way you connect using [VB.NET](http://VB.NET)

cheers

G 🙂
