Viewing 15 posts - 3,391 through 3,405 (of 5,103 total)
I think what is happening here is that the linked server does not have his account mapped on the security tab of it (which it is needed!)
THE ODBC DSN using...
* Noel
July 5, 2005 at 1:40 pm
ON 4M rows yes but not on : SELECT * FROM vwBigTable WHERE ...
* Noel
July 5, 2005 at 1:33 pm
OR:
SELECT DATEPART(mm, K.[Date]) AS [Month], K.[KPI_Code], K.[Field_Code], K.[Field_Desc], K.[KPI_Value], K.[SubValue_1], K.[SubValue_1] * 100.0 /NULLIF(M.[MasterValue],0) AS [ReturnPercent]
FROM [OPS_KPI_Volume_Test] AS K
LEFT OUTER JOIN
(
SELECT [Field_Code], [SubValue_1] AS [MasterValue] FROM [OPS_KPI_Volume_Test]
WHERE [KPI_Code] = 7...
* Noel
July 5, 2005 at 1:30 pm
if the table is big you may as well populate a computed column and create an index on it. You will not be sorry you did ![]()
* Noel
July 5, 2005 at 12:46 pm
Have a look:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=108278
* Noel
July 5, 2005 at 12:43 pm
or like someone here like to say. Time to:
exec sp_update_resume
followed by
exec sp_distribute_resume ![]()
* Noel
July 5, 2005 at 11:02 am
Do you really need to do the pivoting at server side ?
it will be simpler to just write :
SELECT Country, ind, SUM(Amount) as Amt
INTO YourTable
GROUP BY Country, ind
and perform...
* Noel
July 5, 2005 at 10:59 am
It has been my experience that views are usually ok and fuctions sometimes are sometimes aren't so you will need to test both!!
As for indexes yes you have to make...
* Noel
July 5, 2005 at 10:52 am
I'll do it also as long as you keep agreeing with mine too ![]()
![]()
* Noel
July 5, 2005 at 10:20 am
what is the problem with setting those triggers on the replicated DB ?
* Noel
July 5, 2005 at 10:17 am
I think the main problem here is the approach. Just create a view and use it to export the data with bcp
Just my $0.02
* Noel
July 5, 2005 at 10:14 am
OR - as someone
suggested above use dynamic sql
* Noel
July 5, 2005 at 10:10 am
If you look at my posts I don't do this very often
and I am not concerned at all with my post count
* Noel
July 5, 2005 at 10:08 am
Viewing 15 posts - 3,391 through 3,405 (of 5,103 total)