Forum Replies Created

Viewing 15 posts - 706 through 720 (of 1,217 total)

  • RE: stored procedure and multiple rows

    In your place I probably wouldn't create a new table to store alternative adresses. If it is an address, store it together with other addresses; depending on the overall design,...

  • RE: don''''t know how to use a cursor to insert rows from one table to another elinimating dups

    There is only one thing to be aware of when using this solution... MIN(NOTE_TEXT) and MIN(HTML_TEXT) are independent and the minimum value from each column is returned - which means that sometimes you...

  • RE: Insert Text Help

    Hello Thomas,

    one question first: why are the date and time columns in your table TEXT? Date and time should be stored as DATETIME; I can understand that in an intermediate table...

  • RE: Update single rows with multiple values

    Hi Jeff,

    isn't there some mistake? I tested your SQL and I'm getting this error:

    Invalid column name 'wugga-wugga'.

    (Nevermind, just kidding ... need to joke because...

  • RE: inconsistant view

    I agree, the most probable source of such problem is outer join. An example (only freely based on what you mentioned about the table structure, but shows how it works):

    CREATE TABLE...

  • RE: Extracting data using substring and charindex?

    I need to extract the text after 'TestBooking="' (i.e. false) highlighted in red.  The problem is that this could read 'true' so I cannot depend on the length of text...

  • RE: select first entry in every set?

    Almost identical question appeared several times during the last month, I'm sure you'll be able to find some of these discussions.

    General warning : if you want to simply get...

  • RE: problem removing duplicates

    Actually, I don't think this will work, Brij. Unfortunately I'm not sure what you mean by "If it is, then"... but if you're referring to the first part of the...

  • RE: Problem with Sequence Number

    I don't think DECIMAL is an option because of multiple dots in the values : 1.2.1 can not be converted to DECIMAL or any other numeric format.

  • RE: Duplicates

    Your problem is not in SQL, your problem is in unclear definition of required result.

    If there are 2 rows with the same SSN, which of them do you want to return?

    123111111       ...

  • RE: Problem with Sequence Number

    Another possibility would be to have a fixed number of characters in each part, which would mean adding leading zeros to your current data. If you know that the numbers...

  • RE: Null Records and Insert

    Hello,

    to get count of rows where Serial number is NULL, use COUNT - with * it counts all rows, with a column name only rows where value of this column...

  • RE: For each record execute stored procedure

    I'm not sure what you need to do, could you describe it a bit more in detail? Maybe temporary tables could help... it depends on what the procedure does and what do...

  • RE: How do I use dynamic SQL in Cursor declaration

    Maybe you could find some way how to do it without cursor and dynamic SQL?

    Since I try to avoid both cursors and dynamic SQL, I'm not absolutely sure about it, but...

  • RE: TSQL and listing of user rights

    sp_who gives information about currently active users. If you want to get some info about user permissions, a better place to start would be undocumented procedure sp_MSobjectprivs. I have no...

Viewing 15 posts - 706 through 720 (of 1,217 total)