Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - SQL 2005 server asp connection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SQL 2005 server asp connection

 Post Reply Post Reply
Author
fototrefpunt View Drop Down
Newbie
Newbie
Avatar

Joined: 03 February 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fototrefpunt Quote  Post ReplyReply Direct Link To This Post Topic: SQL 2005 server asp connection
    Posted: 27 March 2007 at 2:46pm
Hi everybody,
 
I think I need to re-configure the database_connection.asp
 
My provider is telling me this:

SQLOLEDB and SQL Native Client are both connection protocols, you don't use one to connect to the other.

* SQLOLEDB is part of the MDAC protocols, you can use it to connect to SQL Server 2005, but it doesn't support some of the new 2005 objects.

* SQL Native Client (SNAC) is the new 2005 connection protocol. It support using ODBC, OLEDB and Shared Memory connections and supports all the new 2005 "stuff".

How can I configure the Database connection with the correct string? Does anybody have an example for me? I am kind of stuck....
 
Regards.
Back to Top
fototrefpunt View Drop Down
Newbie
Newbie
Avatar

Joined: 03 February 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fototrefpunt Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2007 at 5:57pm
Update:
 
I have changed this line:
strCon = "Provider=SQLOLEDB;Connection Timeout=90;" & strCon
To:
strCon = "Driver={SQL Native Client};Connection Timeout=90;" & strCon
 
And I can access the forum.
 
But when I try to login I get the folowing error:
Server Error in Forum Application
An error has occured while writing to the database.
Please contact the forum administrator.

Support Error Code:- err_SQLServer_loginUser()_update_USR_Code
File Name:- functions_login.asp

Error details:-
Microsoft OLE DB Provider for ODBC Drivers
Query cannot be updated because the FROM clause is not a single simple table name.
Can somebody tell me whats wrong?
 
Best regards Gerry
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2007 at 6:56pm
If this is for Web Wiz Forums it has been designed and built to run with SQLOLEDB driver and will not run with the SQL Native Client driver.
Back to Top
fototrefpunt View Drop Down
Newbie
Newbie
Avatar

Joined: 03 February 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fototrefpunt Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2007 at 7:15pm
Is there no way around this? Can you tell me the difference between SQLOLEDB and the native client??

Edited by fototrefpunt - 27 March 2007 at 7:16pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.