Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

asp page IIS 6.0 and SQL 2000

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  404 errors with cgi scripts  
Author Message
godtoall1

External


Since: Dec 16, 2004
Posts: 24



(Msg. 1) Posted: Tue Feb 15, 2005 8:56 am
Post subject: asp page IIS 6.0 and SQL 2000
Archived from groups: microsoft>public>inetserver>iis (more info?)

This might be an ASP group question, looking to IIS group on how to
troubleshoot problem below.

When the backend SQL server stops fulfilling the request below, my
w3wp.exe hit %100 CPU, IIS recycle the application pool and then the
new w3wp.exe goes to %100 CPU. The DBAs restart SQL and everything
works fine. This only happens once a week. Curious to know why the
below code would max the cpu out. Thanks for any help. I can give more
detailed information if needed.


'setup connections
set connFooter = Server.CreateObject ("ADODB.Connection")
connFooter.open gConnString

'get URL so I know what row to update
strPage = request("URL") 'obviously I prefer the real URL
if strPage = "" then strPage = request("SCRIPT_NAME") 'all below are
alternates
if strPage = "" then strPage = request("PATH_INFO")
if strPage = "" then strPage = request("PATH_TRANSLATED")
if strPage = "" then strPage = "Unknown"

'get current count for this page
strSQL = "use DB select field from TBL WITH (NOLOCK) where PAGE = '" &
strPage & "'"
set rsFooter_meCount = connFooter.execute (strSql)

 >> Stay informed about: asp page IIS 6.0 and SQL 2000 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 2) Posted: Tue Feb 15, 2005 1:48 pm
Post subject: Re: asp page IIS 6.0 and SQL 2000 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jeremy Smith" <godtoall RemoveThis @hotmail.com> wrote in message
news:1108486564.157405.160400@f14g2000cwb.googlegroups.com...
 > This might be an ASP group question, looking to IIS group on how to
 > troubleshoot problem below.
 >
 > When the backend SQL server stops fulfilling the request below, my
 > w3wp.exe hit %100 CPU, IIS recycle the application pool and then the
 > new w3wp.exe goes to %100 CPU. The DBAs restart SQL and everything
 > works fine. This only happens once a week. Curious to know why the
 > below code would max the cpu out. Thanks for any help. I can give more
 > detailed information if needed.
 >
 >
 > 'setup connections
 > set connFooter = Server.CreateObject ("ADODB.Connection")
 > connFooter.open gConnString
 >
 > 'get URL so I know what row to update
 > strPage = request("URL") 'obviously I prefer the real URL
 > if strPage = "" then strPage = request("SCRIPT_NAME") 'all below are
 > alternates
 > if strPage = "" then strPage = request("PATH_INFO")
 > if strPage = "" then strPage = request("PATH_TRANSLATED")
 > if strPage = "" then strPage = "Unknown"
 >
 > 'get current count for this page
 > strSQL = "use DB select field from TBL WITH (NOLOCK) where PAGE = '" &
 > strPage & "'"
 > set rsFooter_meCount = connFooter.execute (strSql)

What does your connection string look like?
Is your field actually named "field"? Isn't that reserved?
What are the purposes of "use DB" and "WITH (NOLOCK)"? I don't ever use
those statements (keep in mind I'm not a SQL expert) ...<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: asp page IIS 6.0 and SQL 2000 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
cannot run asp page in iis 4.0 - Hi, everybody. I have problem wth running asp pages under IIS 4.0. HTML pages are running. Can anybody help?

ASP page - I am trying to set up Web data administrator for the SQL server. I am using IIS 5.0 and windows 2000 server. When i start the web data administrator it is supposed to default the default login default.aspx webpage instead it is displaying the source of..

SSI on a .htm page - Can SSI be used for a .htm page or does it need to be .asp? If it can be used on .htm pages, how do I set this up (I assume in IIS)? Thanks, -- "Some see the glass as half-empty; some see the glass as half-full. I see the glass as too big." ...

.stm page? - What the heck is an .stm page and why wont my IIS5 display them?

IIS ASP page using ADO - i'm trying to work with an access database inside an ASP page using ADO connection. I can read tables but not write to them. Where can i check for the write permission setting?
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]