Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 Search Timeout
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Astralis
Senior Member

USA
1218 Posts

Posted - 09 February 2005 :  19:14:54  Show Profile  Send Astralis a Yahoo! Message
Now that I've switched from Access to SQL, I get this error on any search:

Microsoft OLE DB Provider for SQL Server error '80040e31'

Timeout expired

/forum/search.asp, line 376

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 February 2005 :  20:32:29  Show Profile  Send ruirib a Yahoo! Message
Try searching the archive for this forum using 'search' as the keyword. There are at least two mods for that (one from me and another from gary).


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 10 February 2005 :  05:05:31  Show Profile  Visit HuwR's Homepage
the reason it is timing out is because the sql server you are using is underpowered for the traffic it gets.
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 10 February 2005 :  08:49:02  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Is the forum on W2003 Astralis ?

I agree with HuwR, apparently CT put upwards of 400 db's on their servers.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.

Edited by - Podge on 10 February 2005 08:50:44
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 10 February 2005 :  16:58:44  Show Profile  Send Astralis a Yahoo! Message
hmm...interesting. Do you see a problem with this? Do you think CT would entertain the idea of scaling back the number of dbs per server?

Ruirib, thanks...your page works and the search function is great.

Podge, I'm not sure what the server is on.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 February 2005 :  19:27:19  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by Astralis

hmm...interesting. Do you see a problem with this?

Of course. It's not the same dividing CPU and RAM through a dozen DBs or hundreds of them.
quote:
Do you think CT would entertain the idea of scaling back the number of dbs per server?


They should, but I don't think they will.

quote:

Ruirib, thanks...your page works and the search function is great.


You're welcome.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

CalloftheHauntedMaster
Junior Member

289 Posts

Posted - 09 June 2005 :  15:58:10  Show Profile
I have the same problem:

Microsoft OLE DB Provider for ODBC Drivers error '80040e31'

[Microsoft][ODBC SQL Server Driver]Timeout expired

/bbs/search.asp, line 376


Ruirib, I searched and I didn't find the mod that was supposed to correct this. If someone can link me to where I can find the solution, I'd greatly appreciate it because I've been having this problem for a while now without any successes.

This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums!
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 June 2005 :  16:41:24  Show Profile  Send ruirib a Yahoo! Message
CalloftheHauntedMaster

First, you should change your connection string to use the SQLOLEDB driver instead of ODBC.
Second, a changed search.asp is available here: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=42411

Its was made for a version previous to the current one, though I think it will work ok with 3.4.05.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

CalloftheHauntedMaster
Junior Member

289 Posts

Posted - 09 June 2005 :  16:51:41  Show Profile
I'm not familiar with connection strings. How would I change it?

Also, would changing to SQLOLEDB require me to change anything else major, or is this a relatively simple procedure?


This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums!

Edited by - CalloftheHauntedMaster on 09 June 2005 16:52:56
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 June 2005 :  16:53:46  Show Profile  Send ruirib a Yahoo! Message
Have a look in config.asp. There are examples there and you can use the similar values from your current ODBC string.

You should change the connection string regardless of the issue with search. OLEDB drivers are always faster and more robust than ODBC.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

CalloftheHauntedMaster
Junior Member

289 Posts

Posted - 09 June 2005 :  16:59:45  Show Profile
Here's what I have in config.asp. Since you're the expert in these things and I'm not even close, what would need to be changed? Basically, I'm just trying to fix the search, and nothing else. This is still new to me and I don't want to recode the whole server just to fix the search feature.

Code removed by ruirib

This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums!

Edited by - ruirib on 09 June 2005 18:14:06
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 June 2005 :  18:18:41  Show Profile  Send ruirib a Yahoo! Message
What's the point of posting a whole file just because of a single connection string line?

We strongly discourage direct code posting, when the code is large in size. In those circunstamces, always post the code as a link to a text file. Also I do not think it's a wise move to post your SQL Server access data, unless you want someone to connect to your database.
Use this connection string:

strConnString = "Provider=SQLOLEDB;Data Source=SERVER_NAME;database=DB_NAME;uid=UID;pwd=PWD;"

Replace SERVER_NAME, DB_NAME, UID and PWD by the corresponding values from your current connection string.



Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

CalloftheHauntedMaster
Junior Member

289 Posts

Posted - 10 June 2005 :  14:33:25  Show Profile
Well, my current connection string looks like this:

'strConnString = "Provider=SQLOLEDB;Data Source=SERVER_NAME;database=DB_NAME;uid=UID;pwd=PWD;" '## MS SQL Server 6.x/7.x/2000 (OLEDB connection)

My problem is that there are three other strings that look like this:

'strConnString = "Provider=Microsoft.Jet.OLEDB.4.0

Am I supposed to replace the "Microsoft.Jet.OLEDB.4.0" with "SQLOLEDB" on all three of those strings?

This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums!
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 June 2005 :  16:16:42  Show Profile  Send ruirib a Yahoo! Message
That was not the uncommented string in your posted config.asp and that could not be the string you had when the error ocurred. It's not possible that an error with the ODBC driver occurs if you're using an OLEDB provider!


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

CalloftheHauntedMaster
Junior Member

289 Posts

Posted - 10 June 2005 :  16:30:20  Show Profile
Well, this is the error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e31'

[Microsoft][ODBC SQL Server Driver]Timeout expired

/bbs/search.asp, line 376

Ruirib, is there some way I can show you the connection strings in private and you'll help me understand what's wrong???

This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums!

Edited by - CalloftheHauntedMaster on 10 June 2005 17:26:48
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 June 2005 :  06:50:21  Show Profile  Send ruirib a Yahoo! Message
You can email me your config.asp file and I'll change it for you. Email me through the forum, I'll reply and you'll reply then with the file attached.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07