Viewing 15 posts - 496 through 510 (of 860 total)
riya_dave (4/18/2012)
declare @mtd2 float
declare c1 CURSOR FOR
select account, MTD from #temp2
open c1
FETCH NEXT FROM c1
INTO @P1,@mtd2
WHILE @@FETCH_STATUS = 0
begin
if(@mtd2 IS NULL )
BEGIN
declare @IRR2 float
EXEC pdashboard
select...
April 18, 2012 at 3:08 pm
polkadot (4/18/2012)
Lyn, I've already provided the DDL, which is what I think you're asking me to do. If I could create a query that...
April 18, 2012 at 1:48 pm
ill also say that if the tables in the view have indexes specially designed for the view it can be very fast.
April 18, 2012 at 1:35 pm
this should get you close
;WITH CTE(n) AS (SELECT 0 UNION ALL select TOP 500 ROW_NUMBER () OVER (ORDER BY (SELECT NULL)) FROM sys.objects a, sys.objects b)
SELECT B.N + 1, syst,...
April 18, 2012 at 1:29 pm
Lynn Pettis (4/18/2012)
April 18, 2012 at 1:08 pm
SQLKnowItAll (4/18/2012)
I would design a solution with 1 or 2 reporting servers that get the data replicated to them...
April 18, 2012 at 12:59 pm
ok you have your join backwards. if you have the tables set like so in your query: table1 view1. now a left join will give you...
April 18, 2012 at 11:48 am
Lynn Pettis (4/18/2012)
SQLRNNR (4/18/2012)
Lynn Pettis (4/18/2012)
Here is a our first challenge. No one should post again until we get what has been requested.
that kind of blatant hijacking needs to...
April 18, 2012 at 11:41 am
riya_dave (4/18/2012)
where should i put fetch_next in body
This will help you with the code http://remidian.com/mssql/t-sql/cursors-in-tsql.html however if you post the full code of your SP and the table definitions (DDL)...
April 18, 2012 at 11:35 am
Lynn Pettis (4/18/2012)
The Dixie Flatline (4/18/2012)
GilaMonster (4/17/2012)
April 18, 2012 at 9:32 am
EDIT: nothing constructive said and thinking about it after the post its better not to post it
April 18, 2012 at 9:19 am
EL Jerry (4/18/2012)
Daniel Bowlin (4/18/2012)
Brandie Tarvin (4/18/2012)
TootsieRoll
Sushi.
(I think I'm hungry)
"El" Jerry.
Sake
April 18, 2012 at 7:55 am
ON TOPIC: http://www.sqlservercentral.com/Forums/Topic1285488-392-1.aspx
The OP needs some help on weird date time conversions when trying to get DDL and Sample data together. Looks like a local setting on his SQL...
April 18, 2012 at 7:53 am
im not sure whats going on but i thank you for taking the time to read how to post to the forumn and working up the DDL and Sample data....
April 18, 2012 at 7:51 am
Viewing 15 posts - 496 through 510 (of 860 total)