Forum Replies Created

Viewing 15 posts - 31 through 45 (of 153 total)

  • RE: complex query

    nevermind : I found the problem and it's fixed.

    Sam

  • RE: return value from nested Stored Procedure

    how can I modify usp_Prognote_Insert to return the value of the PK if a record already exists?

    This doesn't seem to work:

    CREATE PROCEDURE usp_ProgNote_Insert

    @SecondaryKeyValue int

    , @EmpName...

  • RE: return value from nested Stored Procedure

    Thanks so much. Believe it or not, I spent an hour on Google and never could get a clear example to work from.

  • RE: return value from nested Stored Procedure

    sorry, should have supplied that to begin with:

    CREATE PROCEDURE usp_ProgNote_Insert

    @SecondaryKeyValue int

    , @EmpName varchar(150)

    , @PrimaryKeyValue int OUTPUT AS

    IF EXISTS

    (SELECT

    pn.AppointmentID

    FROM ProgNote pn

    WHERE pn.AppointmentID = @SecondaryKeyValue

    )

    RETURN

    INSERT...

  • RE: conditional line feed

    You've helped me several times, Jeff. Thanks!

  • RE: syntax

    thanks very much. I've got it licked.

    Sam

  • RE: syntax

    Thanks,

    Next question is if the return data is null, how do I set the declared variable to '' (empty string)?

    Here's what I have so far that's not working:

    SELECT @FHComm=p.TextBody

     FROM PartyText...

  • RE: table issue

    Thanks so much. THe problem is on the frontend afterall.

  • RE: DateAdd

    it works. thanks

  • RE: date format

    Thanks, Jeff. You know you're talking to a rookie. Or at least not a real SQL person. I will format on the frontend as you suggest.

  • RE: date format

    and display just the time part of a datetime: "4:15pm" ?

  • RE: can''''t update

    sorry for the unclear question. I've got it worke out. Thanks so much.

  • RE: delete duplicates

    Thanks! I will test both

  • RE: delete duplicates

    table def:

    CREATE TABLE [dbo].[AilmentDetail] (

     [AilmentDetailID] [int] IDENTITY (0, 1) NOT NULL ,

     [AilmentID] [int] NOT NULL ,

     [DataPointID] [int] NOT NULL ,

     [DataValue] [varchar] (200) NOT NULL ,

     [DateStart] [smalldatetime] NULL ,

     [DateEnd] [smalldatetime] NULL...

  • RE: carriage return

    Really appreciate the help. Thanks!

    Sam

Viewing 15 posts - 31 through 45 (of 153 total)