Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

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 August 3rd, 2004, 02:51 PM
briansol briansol is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 briansol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sql server 2000 on win2k VS 2k3 problem

Hi all, I'm running into a problem that has me absolutely stumped.
In my environment, we have 3 locations, and thus 3 file servers and 3 sql servers.
2 of these locations are on 2k advanced, and the third is on 2003 server.

The problem i'm having is involving an ASP script.

To make a lot of code short,
-asp page passes in vars to a store procedure
-stored procedure populates a temp table and uses a sysobjects temp table as well
-temp table is then joined to a View

In the view lies the problem.

in alter mode, it looks like this:

Code:

ALTER   view dbo.vw_DSHistory_1 as select top 100 percent datepart(hour,calltime) as HourOfCall, cast(left(callTime,11) as datetime) as DayOfCall, agent, reason, finishcode, resultcode, status, c.job_name from SJ4005_CallHistory as h join SJ4005 as c on h.i3_rowID = c.i3_rowID where calltime between '08/03/2004 8:00:00' and '08/03/2004 23:59:59' order by cast(left(callTime,11) as datetime), datepart(hour,calltime)


The dates and 'SJ4005' is a dynmaically written view passed in vars to the store procedure.

Code:
insert into @tempResults
(fields)
--values in a select:
select
.
.
.
.
from
vw_DSHistory_1 h 
group by h.Job_Name, h.DayOfCall, h.HourOfCall
order by h.DayOfCall, h.HourOfCall, h.Job_Name



This all works 100% on two of our servers.

word for word copy paste onto our 3rd, on 2k3, and the view is not updating the variable fields.

Is there a setting im missing?

does 2k3 have some kind of permission issue with passing a var from more than one thing? (asp -> sp -> vw)

Thanks in advance

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > sql server 2000 on win2k VS 2k3 problem


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT