ACCUWEBHOSTING.COM
Live Chat
Sales / Billing / Support
Support
FAQ, Help Desk
Affiliate
Earn $20.00 / Sale
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    jeggebeen is offline Junior Member jeggebeen is on a distinguished road
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    Default Accessing SQL using a connection string



    The sql databases are hosted on different boxex than the websites. If I configure an active server page on the website to access the sql database on another server, what username/password would I use?

    Is there any problem with trusted connections between the website and database or account delegations problems? For example, annonymous access to the website still uses a user account. If the connection string uses a different user account, will there be a failure to connect?

  2. #2
    John_Accuwebhosting is offline Senior Member John_Accuwebhosting is on a distinguished road
    Join Date
    Jun 2006
    Posts
    124
    Blog Entries
    16
    Rep Power
    0

    Default Re: Accessing SQL using a connection string

    It should not create any issues. You can get the username and password to access your MS SQL database from your database hosting provider.

  3. #3
    Shane is offline Administrator Shane has disabled reputation
    Join Date
    Jun 2006
    Age
    27
    Posts
    266
    Blog Entries
    9
    Rep Power
    10

    Default Re: Accessing SQL using a connection string

    Hello Jeggebeen,

    If you have configured an ASP page to access SQL database on another server you need to use your database username and password with database server IP address details.

    It would not be an affect if anonymous access to the website. If the connection string uses a correct user account in connection strings then it will be working fine. For example I have posted below mentioned connection strings:

    - DSN less connection
    Dim SqlConn
    Set SqlConn = Server.CreateObject("ADODB.Connection")
    SqlConn.ConnectionString="Driver={SQL Server};" & _
    "Server=server IP address;" & _
    "Database=dbname;" & _
    "Uid=username;" & _
    "Pwd=password;"
    SqlConn.Open
    Response.Write "SQL Connection Successful"

    Thanks,

    Shane G.
    AccuWebHosting.Com

  4. #4
    kilter is offline Senior Member kilter is on a distinguished road
    Join Date
    Oct 2009
    Posts
    98
    Rep Power
    11

    Default Re: Accessing SQL using a connection string

    I didn't realise you didn't have any VB skills, if this is the case then DSN-less connections are probably not the way to go, unfortunately these require a good knowledge of VB and it is not just a case of me being able to tell you what to type and where as it will need customizing for you database and SQL Server...

    I would suggest playing around with the options in the ODBC connection; possibly start by creating a new test connection. At the end of the connection wizard there is a Test Connection button that will help you know if you have the settings correct. This is done in Control Panel > Admin Tasks > Data Sources (ODBC).

    The SQL Login box you are getting is part of the ODBC Connection and has nothing at all to do with Access. In fact you would get this box whatever program you used to connect to the ODBC Connection, Access or other.

    My immediate guess is that the username / password you have in your ODBC Connection is incorrect and does not correspond to an SQL User that is setup on your SQL Server, this can be entered on the second page of the ODBC Connection Wizard.
    We go beyond the usual all american packaging to offer you an HUB certified packaging supplier | packing supplies.

  5. #5
    lauren06 is offline Junior Member lauren06 is on a distinguished road
    Join Date
    Apr 2010
    Posts
    1
    Rep Power
    0

    Default Re: Accessing SQL using a connection string



    Thanx for sharing

    Managed Service provider

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
© Copyright 2010 - 2020 AccuWebHosting.Com. All rights reserved. AccuWebHosting.com,
48 Bi-State Plaza #185 Old Tappan, NJ 07675, United States of America

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45