PC Review


Reply
Thread Tools Rate Thread

DSN Data Source and VPN

 
 
BigBird
Guest
Posts: n/a
 
      21st Feb 2006
I am trying to use MS Access front end to my SQL database over VPN but
I am having trouble creating a DSN (used by Access to reach the linked
tables). Any help is greatly appreciated.

 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      22nd Feb 2006
Use the ODBC tool in "Administrative Tools" on your server to create a DSN
(Data Source Name). Name that DSN with a single word like "BusinessData".
Then you can connect with something like:

Dim cnnConnection As ADODB.Connection
Dim comCommand As ADODB.Command
Dim rstNumber As ADODB.Recordset
Dim strConnect As String

strConnect = "Provider=SQLOLEDB;Data Source=ServerName;" & _
"Initial Catalog=BusinessData;" & _
"User ID=Arvin;password=ItsASecret"

Set cnnConnection = New ADODB.Connection

cnnConnection.Open strConnect


"BigBird" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I am trying to use MS Access front end to my SQL database over VPN but
> I am having trouble creating a DSN (used by Access to reach the linked
> tables). Any help is greatly appreciated.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ReportViewer: A data source instance has not been supplied for the data source Rupinder Microsoft Dot NET 0 9th Nov 2009 03:25 AM
Pivot Table data source "data source contains no visible tables" =?Utf-8?B?SmFuZQ==?= Microsoft Excel Worksheet Functions 0 29th Sep 2005 08:28 PM
How can i set the source-data-range of pivottable2 to the source . =?Utf-8?B?UGlldA==?= Microsoft Excel Misc 0 5th Mar 2005 09:31 PM
Chart Source Data Ranges Changing when Data Sheet updated from text file source. Tekn0 Microsoft Excel Charting 3 8th Jan 2004 04:45 PM
File Data Source Vs Machine Data Source Tamer Seoud Microsoft Access External Data 0 17th Dec 2003 08:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:30 PM.