Forum Replies Created

Viewing 15 posts - 2,041 through 2,055 (of 15,381 total)

  • RE: rows not retrieved with my query

    Luis Cazares (11/25/2015)


    Sean Lange (11/25/2015)


    lnardozi 61862 (11/25/2015)


    In the script, you're selecting into a variable. No matter how many rows there are, the variable only gets set once.

    Not quite, the OP...

  • RE: Problems with CTE (recursive queries)

    eut.kop (11/25/2015)


    Hello everyone,

    first of all excuse for my bad English!

    I try to resume with a basilar example what I should reach.

    -- table category

    [id_categoria] [int] NOT NULL,

    [categoria] [nvarchar](50) NULL

    -- table film

    [id_film]...

  • RE: Trigger result from inserted / Deleted

    Minnu (11/25/2015)


    Hi Team,

    using below trigger,

    ALTER TRIGGER [dbo].[t_info] ON [dbo].unify_info

    FOR update

    AS

    begin

    declare @val1 varchar(100) declare @val2 varchar(100) declare @temp varchar(100)

    set @temp='HHT_Report'

    set @val1='SELECT ' +@temp+ ' FROM INSERTED'

    set @val2='SELECT ' +@temp+ '...

  • RE: rows not retrieved with my query

    lnardozi 61862 (11/25/2015)


    In the script, you're selecting into a variable. No matter how many rows there are, the variable only gets set once.

    Not quite, the OP is using a concatenation...

  • RE: rows not retrieved with my query

    Mad-Dog (11/25/2015)


    Hi,

    i've a table with lots of rows and i want only the rows from last quarter and current year.

    i run this script and i have problem with the results...

  • RE: Trigger to update old ad new values

    John Mitchell-245523 (11/25/2015)


    You're doing this the wrong way. First, stop using sysobjects, which is provided for backwards compatibility with SQL Server 2000 only. Second, why do you need...

  • RE: Week Numbers 2016

    marc.heidemann (11/25/2015)


    Hi Guys

    I have been creating a report that uses week numbers and noted that 01-01-2016 is coming up as week 1 of 2016

    but when I checked a calendar online...

  • RE: Update on each database

    Phil Parkin (11/24/2015)


    Sean Lange (11/23/2015)


    Phil Parkin (11/23/2015)


    cmc123 (11/23/2015)


    Hi,

    can someone help me in writting a cursor with following update statements .This statement will updates each database in an instance of...

  • RE: Update on each database

    Phil Parkin (11/23/2015)


    cmc123 (11/23/2015)


    Hi,

    can someone help me in writting a cursor with following update statements .This statement will updates each database in an instance of SQL .

    UPDATE dbo.Property

    SET USERTXT1...

  • RE: Update on each database

    cmc123 (11/23/2015)


    Hi,

    can someone help me in writting a cursor with following update statements .This statement will updates each database in an instance of SQL .

    UPDATE dbo.Property

    SET USERTXT1 =

    (SELECT...

  • RE: Problem With Trigger - Always Inserts

    Looking a bit closer you could save yourself a LOT of headaches by breaking this into three triggers just to start. One each for INSERT, DELETE, UPDATE. At least that...

  • RE: Problem With Trigger - Always Inserts

    The biggest issue with your trigger is that it is relying on scalar values. This is bug red flag because in sql server, triggers fire once per operation and scalar...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (11/23/2015)


    Luis Cazares (11/23/2015)


    Is it me or many people don't really understand error handling or why and how to use try...catch...?

    It's not just you. Though, to be fair, Try...Catch...

  • RE: need to help query in sql server 2008

    baludw22 (11/23/2015)


    Hi If I tested records for 1 or 2 patients that time execution taken less time only.when I ran 17 laksh + records to use outer apply that time...

  • RE: Adding columns to existing query

    smmkr17 (11/23/2015)


    declare @body varchar(max)

    -- Create the body

    set @body = cast( (

    select td = dbtable + '</td><td>' + cast( entities as varchar(30) ) + '</td><td>' + cast(...

Viewing 15 posts - 2,041 through 2,055 (of 15,381 total)