Viewing 15 posts - 12,841 through 12,855 (of 14,953 total)
Does the query have the right data from each table for those rows? Once I know that, I can make it do the running total that you need.
July 14, 2008 at 12:26 pm
Try this:
UPDATE Locations
SET Latitude = g.Latitude,
Longitude...
July 14, 2008 at 12:25 pm
This, "Select @loc = zip FROM Locations", will always select the last value in the table, based on the clustered index. Then each of your following updates uses that...
July 14, 2008 at 12:22 pm
The other thing to test is whether or not other queries that access those indexes, without going through that view, work.
July 14, 2008 at 12:19 pm
You might need to recompile the view.
July 14, 2008 at 12:19 pm
Did I just answer this in a different forum, or did my answer not post correctly?
July 14, 2008 at 12:17 pm
Change, "ON S.SchoolID = M.SchoolID" to "ON S.SchoolID = M2.SchoolID".
July 14, 2008 at 12:16 pm
I just tried this:
create table #T (
Val money)
insert into #t
select number
from dbo.numbers
alter table #t
alter column val varchar(100)
update #t
set val = '$' + val
alter table #t
alter column val money
And it worked.
That...
July 14, 2008 at 12:13 pm
Here are some articles with data on how to create such triggers, and other options you have on the subject:
July 14, 2008 at 12:08 pm
Double-check that there is no clustered index on the table.
If need be, manually drop the non-clustered index, then create the clustered index that's supposed to replace it.
Also double-check that you're...
July 14, 2008 at 12:06 pm
First, on the storage arrays, I get 7.2 Gig from those numbers, so I'm assuming there's some room lost to RAID set up or some such. Is this an...
July 14, 2008 at 12:02 pm
RedGate has one too, called SQL Compare. You can find that from the link on SSC's upper right corner.
Either one will do what you need.
July 14, 2008 at 11:54 am
I'm assuming you're using SQL 2005, because that's the forum this is posted in. Is that correct?
Also, I need to know if the meter dates can be more specific...
July 14, 2008 at 11:50 am
That's probably timing out then. Can you break up the transaction into smaller pieces? Do it a few rows at a time?
July 14, 2008 at 11:44 am
I had to adjust some of the sample data you posted, since it doesn't appear to be a matched set of rows. Try this query:
select top 10 *
from dbo.Audits
inner...
July 14, 2008 at 11:42 am
Viewing 15 posts - 12,841 through 12,855 (of 14,953 total)