ASP Free Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherASP Free Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 20th, 2004, 09:59 AM
torch2moon torch2moon is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 torch2moon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
affecting globally

Please Just go through the following error which is generated while accessing asp page...

Ifxoledbcerro r ' 80040e14 '


ES 0001 : ( - 310 ) Table ( prodn_t ) already exists in database. / online / xyz.asp, line 36

explanation is given below....



Explaination :

I have informix database on unix server & IIS on Win2k. I am accessing unix server (database) from windows 2k server through ODBC using ASP server scripting.

Problem is ... In informix coding there is a concept of creating temproary tables at runtime.this concept we use to generate reports to get the data in our format..... these tables will not affect globally... means ...these tables effects only that session, that user, that computer only. means if more than one user is accessing same program from different pc's at the same time...for each user it creates temproary table...it drops that table after completion of that program or session.... table created by one user will not affect other user..... this how temp table concept works in informix programming...

Same concept I used in ASP to get data.... Yes, I could able to get data.

Problem is.... temproary tables created to get data are getting affected to all programs, all users globally. assume that I have created a report ASP in which I have created one temproary table ' prodn_t ' . if more than one users are accessing the same report at the same time from different PC's.... Ist user will get the data ... remaining users... are getting above mentioned error ...

what could be the problem.....

Whatever the process I do in the report generation should affect to that programm , that session, that user, that pc only... It should not affect globally...

What I should take to avoid the above problem.....

Please help

Thanks in advance


sample code is given below...

<%
set cmd=Server.CreateObject("ADODB.Command")
set conn=Server.CreateObject("ADODB.Connection"

cmd.ActiveConnection.begintrans

sql = "create temp table prodn_t ( cast_cd integer, cast_desc char(25), prod_nos integer, prod_mt decimal(9,2), rej_nos integer, rej_mt decimal(9,2), net_nos integer, net_mt decimal(9,2)) with no log;"
cmd.commandtext = sql
cmd.execute

sql = "insert into prodn_t select a.cast_cd,b.cast_desc1[1,25]," & _ " sum(a.prod_num),sum(a.blk_tonnge),0,0,0,0 " & _ " from 'iis'.cast_prod a, 'iis'.cast_mast b " & _ " where prod_dt between '"& from_date &"'and'" & to_date & "'" & " and a.cast_cd = b.cast_cd group by 1,2,5,6,7,8"

cmd.commandtext = sql
cmd.execute

sql = "select cast_cd,cast_desc,sum(prod_nos) as prod_nos, sum(prod_mt) as prod_mt, " & _ "sum(rej_nos) as rej_nos, sum(rej_mt) as rej_mt, sum(prod_nos - rej_nos) as net_nos," & _ " sum(prod_mt - rej_mt) as net_mt from prodn_t group by 1,2 order by 1 " set

set rs=Server.CreateObject("ADODB.Recordset")
rs.Open sql,conn

Printing statements goes here... using HTML.....
then....

cmd.ActiveConnection.rollbacktrans

conn.Close
set conn=Nothing

%>

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherASP Free Lounge > affecting globally


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek