Go Back   Web Server Hosting Forum by BODHost > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-29-07, 02:05
BOD Member
 
Join Date: Jan 2007
Posts: 39
Default Database Connection Question.

Hello every, I haven't been here for 2 days. and I got a question recently. My friend David has Visual Basic 2005 and SQL Server 2005. And he wants to know the steps for Database connection. Really appreicate your help..:D :D
Reply With Quote
  #2 (permalink)  
Old 01-29-07, 02:55
BOD Member
 
Join Date: Jan 2007
Posts: 66
Default

Try these steps:
(Both uses ADO Connection)
  • For Microsoft SQL Database
  • With DB
  • .ConnectionTimeout = 60
  • .Open "Driver={SQL Server};Server=srv_za_database...
  • End With

  • For Microsoft Access Database
  • Private DB as New Connection
  • With DB
  • .Provider="Microsoft.jet.oledb... (Access 2000)
  • .ConnectionString = "c:\Test.mdb"
  • .Open
  • End with
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:40.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.