[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

11/03/2004 at 08:40PM PST, ID: 21194037
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

html sql - sql timeout

Asked by larksys in Hypertext Markup Language (HTML)

Tags: isql, timeout

I get the following error;

Error Number: 350
Error Text: Native SQL Error Code
Error Hint Text: Native SQL Error Code

SQL STATEMENT: INSERT INTO xcards2004 (Use_Flag,Company_Number,Company_Name,Home_Email,Work_Email,First_Name) VALUES(' ','000031352','Deloitte & Touche LLP ','michael_santoro@yahoo.com ','micsantoro@deloitte.com ','MICHAEL ')
SQL 350 STATEMENT: [Microsoft][ODBC SQL Server Driver]Timeout expired


The code is as follows;

<iINCLUDE name='d:\usersites\htdocs\admin\include_top.inc'>

<div class="d" align="center">AS/400 User Interface</div>
<ieq name="filepath1" value='d:\emaildata\'>
<ieq name="filepath2" value='.txt'>
<ieq name="filepath" value=:filepath1:CallListName:filepath2>
<ieq name="cdata" value=`}<iFile name=":filepath" op="read">`>
<iEQ name="Ctext" value="text">
<iEQ name="CLText" value=:CallListName:Ctext>
<iEQ name="begin" value="Begin">

<iREGEXLIST      SRC=`:cdata` REGEX=".*}" LISTNAME="TESTLIST" MAX="10000" FLAGS="EIN">
<iEQ name=NumOfRecords value=<iListget name=TESTLIST op=count>>

<iIf cond=<iStrcmp src=<iStrlen src=`:cdata`> dst="1">>
<p align="center">
No data was transfered from the AS400.<br>
Go back to the first page and check your data.<br>
:CallListName<br>
:filepath<br>
</p>
<iElse>

<iEQ name=fieldstring value="Use_Flag,Company_Number,Company_Name,Home_Email,Work_Email,First_Name">

<iSQL DBNAME="emailerdb" SQL="CREATE TABLE :CallListName (List_ID integer NOT NULL IDENTITY,Use_Flag VARCHAR(1) NULL,Company_Number VARCHAR(9) NULL,Company_Name VARCHAR(255) NULL,Home_Email VARCHAR(255) NULL,Work_Email VARCHAR(255) NULL,First_Name VARCHAR(255) NULL)" LOGIN="tax-talentdata/tony12" ALIAS="TABLETEST">
</iSQL ALIAS="TABLETEST">
<iSQL DBNAME="emailerdb" SQL="CREATE INDEX CnameIndex ON :CallListName (Company_Name)" LOGIN="ta" ALIAS="TABLETEST2">
</iSQL ALIAS="TABLETEST2">


<iLOOP initial=1 final=:NumOfRecords>
<iEQ name=item1 value=`<iListget name=TESTLIST op=getat index=:i_loop>`>

<iREPLACE var=item1 src="}" dst="">
<iREPLACE var=item1 src="~" dst="','">
<iEQ name=finalitem1 value="'">
<iEQ name=finalitem value=":finalitem1:item1:finalitem1">



<iSQL DBNAME="emailerdb" SQL="INSERT INTO :CallListName (:fieldstring) VALUES(:finalitem)" FAILURE="ErrorIDENTIFIER: :i_error :i_errortext :i_sqlerrortext" LOGIN="ta" ESC=FALSE>


</iLOOP>
</iSql>
<p align="center">
<br>Number of Records: :NumofRecords<BR><BR>
Done!<br><br>
The data has been stored in a table called :CallListName.<br>
</p>

</iIf>

<iINCLUDE name='d:\usersites\taxtalent2\htdocs\admin\include_bottom.inc'>


This code runs for a small file of 15 records but not for 600. I have no idea what timeout happened. I checked the ODBC and SQL. I changed the IIS server timeout from 120 to 360 but no change. The timeout actually happens at about 45 seconds. The table has about 130 records in it when it fails (starts with zero).

[+][-]11/03/04 11:29 PM, ID: 12490836

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]11/04/04 11:37 AM, ID: 12497264

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Hypertext Markup Language (HTML)
Tags: isql, timeout
Sign Up Now!
Solution Provided By: gagaliya
Participating Experts: 2
Solution Grade: C
 
 
[+][-]11/05/04 09:03 AM, ID: 12506440

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91