Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7566553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:26:41+00:00 2026-05-30T14:26:41+00:00

I am tring to make the below application work with SQL Server 2005 Database

  • 0

I am tring to make the below application work with SQL Server 2005 Database

Currently it works for test.mdb, which is in the same folder with the application. How shoud I modify the MapPath to work with SQL Server.

Dim sDSN
' To use a DSN-Less Connection use the following sDSN definition.
' !!! By using this, UTE is able to detect Primary Keys accurately.

sDSN = "Provider=Microsoft.Jet.OLEDB.4.0;" &_
    "Data Source=" & Server.MapPath("test.mdb")

' To use a DSN (ODBC) Connection use the following sDSN defintion.
' You need to setup an ODBC data source.
' !!! By using this, UTE is *NOT* always able to detect Primary Keys accurately.                                        
' sDSN = "test"

Dim ute
Set ute = new clsUTE

ute.DBName      = "TEST.MDB"  ' Name of Database. For display purpose only
'ute.ReadOnly    = True       ' readonly mode
'ute.ListTables  = False      ' display toolbutton to list all tables within db
'ute.Filters     = False      ' display toolbutton to define and activate filters
'ute.Export      = False      ' display toolbutton to export all data to CSV file
'ute.SQL         = False      ' display toolbutton to show current sql statement
'ute.Definitions = False      ' display toolbutton to show field defintions

ute.Init sDSN   ' init must be called *before* any HTML code is
                ' is written, otherwise the export feature doesn't work !
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:26:42+00:00Added an answer on May 30, 2026 at 2:26 pm

    You don’t need to use Server.MapPath to connect to a SQLServer DB, unlike an *.mdb file you are not connecting to an individual file but to a running instance of SqlServer. See connectionStrings.com for more information.

    Your connection string will be something like:

    Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to make a MySQL-based application support MS SQL, I ran into the following
I am receiving errors and at the same time trying to make this work
I run an in-house application, programmed with visual studio 2008, that uses SQL Server
I'm trying to make matplotlib cooperate with wxPython, and my application listed below behaves
I'm working on a server application that's going to work on Linux and Mac
Can't seem to figure this out, see code below. Trying to make a GET
Trying to make a generic PL/SQL procedure to export data in specific XML format,
trying to make a page which will recursively call a function until a limit
I developed an application using VS 2008 and MS Access2007 and it works fine.
VB Windows form Application.. I am developing an application of which part of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.