3 Replies - 20374 Views - Last Post: 11 July 2011 - 06:20 AM Rate Topic: -----

#1 archana_vb   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 12-February 08

how to code for database connection in vb.net 2005?

Post icon  Posted 12 February 2008 - 01:01 AM

how to code for database connection in vb.net 2005?
Is This A Good Question/Topic? 1
  • +

Replies To: how to code for database connection in vb.net 2005?

#2 Jayman   User is offline

  • Student of Life
  • member icon

Reputation: 423
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: how to code for database connection in vb.net 2005?

Posted 12 February 2008 - 02:04 AM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 sskhanrules   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 11-July 11

Re: how to code for database connection in vb.net 2005?

Posted 11 July 2011 - 06:15 AM

View Postarchana_vb, on 12 February 2008 - 01:01 AM, said:

how to code for database connection in vb.net 2005?


Access

Module Module1

    Public str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=database path;"
    Public cn As New OleDbConnection(Str)

End Module

Was This Post Helpful? 0
  • +
  • -

#4 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6248
  • View blog
  • Posts: 24,014
  • Joined: 23-August 08

Re: how to code for database connection in vb.net 2005?

Posted 11 July 2011 - 06:20 AM

The RIGHT answer to this is to read some tutorials and if you're having difficulty with connection strings visit http://www.connectionstrings.com
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1