Forum Replies Created

Viewing 15 posts - 166 through 180 (of 237 total)

  • RE: Help needed in Relational Logic

    Below is my try with formulated data

    Declare @Id int = 3;

    declare @t table (IdRelation int, Parent int,Child int)

    insert into @t

    select data.IdRelation, data.parent,data.child from (

    select 1 as IdRelation, 1...

  • RE: Help Needed in Stored Procedure

    You are the man!!!!. Thank you so much.

  • RE: Help Needed in Stored Procedure

    Hi Erik,

    I apologize for the delay in my response. I was on vocation and returning to my work today. I almost nearing my requirement completion.

    I am trying to add if...

  • RE: Help Needed in Stored Procedure

    Hi Erik,

    as i don't want to open a new post for this, as we have all the information on this post, i would like to extend this conversation.

    I am able...

  • RE: Help Needed in Stored Procedure

    wonderful thanks you so much for the heads up

  • RE: Help Needed in Stored Procedure

    Hi Erik,

    Here is my try

    ALTER PROCEDURE [dbo].[GenerateScriptForStoredProcedure] (

    @storedprocedure_name sysname

    )

    AS

    DECLARE @sphelptext TABLE(script NVARCHAR(MAX));

    INSERT INTO @sphelptext

    SELECT N'USE ' + DB_NAME() + NCHAR(59) + NCHAR(13) + NCHAR(10) + ASM.definition

    FROM sys.all_sql_modules...

  • RE: Help Needed in Stored Procedure

    Hi Erik,

    Thanks for your reply.

    I am little confused how to apply your logic in my sample. Below is my sample procedure

    CREATE PROCEDURE [dbo].[GenerateScriptForStoredProcedure] (

    @storedprocedure_name sysname

    )

    AS

    DECLARE @sphelptext TABLE(script NVARCHAR(MAX));

    INSERT INTO...

  • RE: Discussion About Date Fucntion

    Hi Luis,

    Thank you so much for your reply. As you said, i would go with DateAdd. Jut for my curiosity, will casting the date affect the performance?

  • RE: Discussion About Date Fucntion

    Hi a4apple and Luis,

    thanks for your reply. if all of these three is not reliable, which will be best syntax for this requirement. please suggest me

  • RE: Help needed in Date Logic

    Hi Serg,

    Thanks for your reply and as per my required output, i need to get for Mar the value should be 0.00 and SEP should not come into this...

  • RE: Help needed in Date Logic

    Hi Erik,

    thanks for your time on this post and reply. I like the idea but i need to show 0.00 for march as i need to display last 6 months....

  • RE: Help needed in Date Logic

    Here is the only way of doing it which i know, is there any other way of doing this.

    WITH CutomMonths

    AS (

    SELECT UPPER(convert(VARCHAR(3), datename(month, DATEADD(MM, DATEDIFF(MM, 0, GETDATE()) - N,...

  • RE: Check the Variable is Empty or Null

    thank you guys

  • RE: Check the Variable is Empty or Null

    Hi David,

    Thanks for your reply.

    Hi Luis,

    Thanks for your solution and This is new syntax for me. this is the first time i am seeing this. Just curiosity how this...

  • RE: Help Needed in Group by

    Hi LutZ,

    I agree and thanks for your details explanation with example. I will follow the standard as you suggested.

Viewing 15 posts - 166 through 180 (of 237 total)