Viewing 15 posts - 16 through 30 (of 463 total)
you are welcome.
---------------------------------------------------------------------------------
March 24, 2010 at 7:01 am
Would this help?
SELECT Employee_Number, Program,
CHAR(COALESCE([104],0)) AS [IMM 104],
CHAR(COALESCE([109],0)) AS [IMM 109],
...
---------------------------------------------------------------------------------
March 24, 2010 at 3:57 am
Are you looking for something like this?
SELECTOBJ.type_desc, OBJ.name, SM.DEfinition
FROMsys.sql_modules SM
JOINsys.objects OBJ
ON OBJ.[object_id] = SM.[object_id]
---------------------------------------------------------------------------------
March 24, 2010 at 2:55 am
Scott,
(Edit: ohh just saw that you came back with a reply)
My suggestion is not to use this query below. Its just to show you that you need to write...
---------------------------------------------------------------------------------
March 23, 2010 at 7:02 am
Best thing for you to do is to just go one step ahead and test it to see if it works!
As per BOL,
No Transact-SQL statements in a table-valued function...
---------------------------------------------------------------------------------
March 23, 2010 at 1:01 am
chandrasekaran.ganapathy (3/22/2010)
can we handle tie value also in row_number?
I dont think so.
---------------------------------------------------------------------------------
March 22, 2010 at 5:11 am
You're welcome, but apart from what I mentioned (as Kingston is also asking) do you have any reason why you do not want to use row_number ?
---------------------------------------------------------------------------------
March 22, 2010 at 5:05 am
Yes, thanks. Dense_rank is a better way since there could be a tie and dense_rank handles it well.
untested (corrected) code (since you have not provided data to test)
Select *...
---------------------------------------------------------------------------------
March 22, 2010 at 4:59 am
Did not really look at that SP as your requirement and what it does looks entirely different. I am guessing you need a function to split it and create a...
---------------------------------------------------------------------------------
March 22, 2010 at 3:53 am
Hint: Windowing function Row_number() and order by clause. Do your research and let us know. Thanks 🙂
---------------------------------------------------------------------------------
March 22, 2010 at 3:49 am
Thats a nice one by Henrico too, here is a classic one..
DECLARE @iDate DATETIME,
@val INT
SET @iDate = '12/31/2010 01:25:35'...
---------------------------------------------------------------------------------
March 19, 2010 at 7:40 am
It was bit hard to understand the requirement for me. May be thats one of the reasons why you did not get any response to this topic. Data provided should...
---------------------------------------------------------------------------------
March 8, 2010 at 3:54 am
I am not certain about ADO.NET but should not you set DBNULL.Value to your variable d?
(Sorry if I am holding the other end of the stick)
---------------------------------------------------------------------------------
March 8, 2010 at 3:37 am
Go to section c in this and give it a try. Let us know if you are stuck somewhere. Thanks.
http://msdn.microsoft.com/en-us/library/ms190307(SQL.90).aspx
---------------------------------------------------------------------------------
February 25, 2010 at 4:43 am
Jeff Moden (2/11/2010)
To be sure, I always enjoy "Nabha posts" and your work get's noticed a lot whether you realize it or not. 🙂By
--Jeff Moden
Ohh!!! There cant be a...
---------------------------------------------------------------------------------
February 11, 2010 at 12:18 pm
Viewing 15 posts - 16 through 30 (of 463 total)