Viewing 15 posts - 46 through 60 (of 1,124 total)
There are many ways to do it, but I prefer the CROSS APPLY way as it seems to be faster than other methods.
SELECTT.RID, T.Posi, T.BusTypeCode, T.TripName, AB.BusN AS RandomBusN
FROM@tTrip T
CROSS...
--Ramesh
February 6, 2010 at 5:29 am
Here is the link that you were looking for http://msdn.microsoft.com/en-us/library/ms157285.aspx
--Ramesh
February 6, 2010 at 2:28 am
Yes, you can use the Hidden property of report items to conditionally suppress the items based the report data.
--Ramesh
February 6, 2010 at 2:19 am
RBarryYoung (2/6/2010)
Ramesh Saive (2/6/2010)
The Dixie Flatline (2/5/2010)
--Ramesh
February 6, 2010 at 2:05 am
After few modifications, I came to this solution and I hope it should work fine this time.
/****** Object: Trigger [dbo].[Trg_Insert_Temp2] Script Date: 02/06/2010 13:09:18 ******/
SET ANSI_NULLS...
--Ramesh
February 6, 2010 at 1:59 am
Jeff Moden (2/5/2010)
Ramesh Saive (2/5/2010)
I don't think so there is any equivalent function in SQL Server. But you can create you own function using the existing REPLACE function.
Heh.. Let's...
--Ramesh
February 6, 2010 at 1:20 am
The Dixie Flatline (2/5/2010)
--Ramesh
February 6, 2010 at 1:13 am
As Jeffrey said, if you just need incremental values without bothering about gaps then an IDENTITY column would do the best job. All you have to do is mark...
--Ramesh
February 6, 2010 at 12:58 am
Jeff,
Nobody has mentioned about the deprecated procedure expect you, so I was little confused, but now everything is fine.
--Ramesh
February 6, 2010 at 12:53 am
Upto this I've understood correctly. But you mentioned that one can also update other columns such as Product_ID, Market_ID etc., What would be the impact of these updates on...
--Ramesh
February 6, 2010 at 12:50 am
At first look at your code, I really don't think you need any cursors at all. But to proceed further, you need to provide some more information such as table...
--Ramesh
February 5, 2010 at 8:44 am
You might need to do running decremental total, for this follow this article http://www.sqlservercentral.com/articles/T-SQL/68467/%5B/url%5D
--Ramesh
February 5, 2010 at 8:36 am
This should work, it uses ROW_NUMBER() function to generate sequential no for each row.
USE [TRAIN]
GO
DECLARE @inspkey int,
@inspno int, ...
--Ramesh
February 5, 2010 at 8:33 am
Can you give a more elaborate example with input/output data?
--Ramesh
February 5, 2010 at 8:23 am
Viewing 15 posts - 46 through 60 (of 1,124 total)