Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)

  • RE: T-SQL Question

    using the select statement you listed and changing it a bit. try this. Since I can only see an example of one record and not the table definition...

  • RE: T-SQL Question

    When I used to do extracts for third party clients that needed this format we usually used a char(13) return to start the next record in the txt file.

  • RE: T-SQL Question

    maynor_ramirez (8/9/2011)


    I have to write a query that will output a ---fixed lenght -- sequential text file? for example I have 100 records (100 rows) and the way client needs...

  • RE: Query is not summarizing results

    kwoznica (7/27/2011)


    Brandie Tarvin (7/27/2011)


    Could you clarify what you're looking for in the result set. As you can see from the back-n-forth here, we all have different thoughts about what you're...

  • RE: Query is not summarizing results

    I believe that the basic problem you are having is in your GROUP BY within the first query. You have the following fields being used in calculations only but...

  • RE: New line Charecter

    DECLARE @test1 varchar(50)

    ,@Test2 varchar(50)

    SET

  • RE: Stored proc returning puzzling error - Invalid column name

    I believe your issue is this statement

    exec usp_stored_proc_name V1,v2

    You are sending in two variables into the proc you need to bracket them

    exec usp_stored_proc_name (V1,v2)

    Try and let...

  • RE: Date Time (Adding date problem)

    There are many ways you can do this depending on your criteria. If you are assuming a 52 week year the statement above will work. ...

  • RE: Removing or Replacing Data

    I don't understand why you would even be trying to adjust HL7 messages within SQL. Most Health facilities use an interface engine such as Biztalk or Rhapsody to name...

  • RE: Checking for patterns in a int

    Don't forget that they way the data is pulled could change any given pattern when there are columns before the search column that may order by a key field. ...

  • RE: A search with a Rank

    I'm glad it helped. I guess my backwards thinking is a good thing at times.

    Also you might want to start with char(32) in case there is a [space] between...

  • RE: A search with a Rank

    I sent the code via email. For some reason SSC didnt like something within it so I couldnt post it here. Let me know if it works for...

  • RE: Time out and disconnect from SQL 2005

    I would check with the developer of the application. Make sure he or she has the connection and the command timeouts set correctly.

  • RE: Emailing Link to Archive via Reporting Service Email

    Thanks, I will try that. 

  • RE: Maximum date in query

    try this

     

    declare @bigd datetime

    declare @d1 datetime

    declare @d2 datetime

    declare @dc varchar(8)

    declare @d2c varchar(8)

    set @dc = null

    set @d2c = '1/1/2005'

    set @d1 = cast( case

              when @dc IS Null THEN  '1/1/3900'

       ...

Viewing 15 posts - 1 through 15 (of 18 total)