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 8109677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:29:38+00:00 2026-06-06T01:29:38+00:00

I am trying to set up a connection to my SQL server inside of

  • 0

I am trying to set up a connection to my SQL server inside of a VBScript.

Whenever I have a connection to my SQL server there is an error on the webpage that says “There was a problem processing the URL” and to contact the administrator.

I know my connection string is correct because it works on all the others pages.

Here is the code I am using so far to set up the SQL connection

Const SQL_Connection_String = "Provider=sqloledb;SERVER=SQLPROD;DATABASE=MyDataBase;UID=MyUsername;PWD=MyPassword;"
    Set SQLConnection = CreateObject("ADODB.Connection")
    SQLConnection.provider = "ADODB.Connection"
    Set SQLConnectionRecordSet = CreateObject("ADODB.Recordset")

From what I know this should be a valid way of setting up the connection in a VBscript. I have not really found any good documentation on configuring these connections.

What I would like to know is: am I setting up the connection correctly, and Is there some strategy I could use to troubleshoot this? Meaning I’d like to be able to have a print statement that returns true or false if the connection was successful. I would also like to somehow print the contents of my reader to see if it has read from the database and if it read what I wanted it to read.

Thanks for any help. I’m using VBscript and ASP.net for the first time so I don’t know any of the subtlties.

  • 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-06-06T01:29:41+00:00Added an answer on June 6, 2026 at 1:29 am

    Your

    SQLConnection.provider = "ADODB.Connection"
    

    is definitely wrong. As you specify the provider in the connection string, there is a (small) chance that deleting that line, will make your script ‘work’.

    UPDATE

    (1) If you have problems connecting to your database, use this excellent source to get started on theory and samples, create an empty file (e.g. constr.udl), start it, and use the GUI to specify/test your connection. Leaving the dialog will save the connection string in the file, from where you can pick it up via a decent (Unicode enabled) editor.
    using .udl file

    (2) If you have too many errors on your ASP page, extract the (simplified) database code to a commandline .vbs script; that way you can focus on one foe (and deal with second one when you are sure, your SELECTs return the desired data).

    (3) If you have problems with specific SQL statements/features/expressions, study the docs; in this case look into your favorite SQL book or follow Google to LIKE (according to the horse). JOIN may be a candidate too. Then use (2) to start from simple statements, proceed to more complex ones after you have mastered the seemingly boring.
    (“Table2.Date LIKE ‘2011’” may work or not, depending on the type and content of the Date column (and isn’t Date a reserved/key word?)

    (While Derek will surely read an answer to another of his question, other poeple starting here will probably profit from reading this too.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a connection to sql server database(hosted on localhost) but keep
I have a SQL Server 2008 database with SET ALLOW_SNAPSHOT_ISOLATION ON and a Person
I have problem with connecting to Sql Server from my local machine. Seems like
I set up an SQL server on my Windows 7 PC. I have a
I am trying to set up Rails tests with MS SQL server. Currently Rails
I'm trying to develop an ASP SQL connection to a MSSQL 2005 server. The
I have an existing stored procedure in SQL Server that I need to call
I am trying to set up SSH connection to Bitbucket using Mercurial. I first
I am trying to set the request (and connection) timeout for a jax-ws-webservice-client generated
I'm trying to execute a stored procedure (against SQL Server 2005 through the ODBC

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.