Forum Replies Created

Viewing 15 posts - 406 through 420 (of 683 total)

  • RE: XML Inserts

    Thanks Peter. I think we both understand what can be done here and the implications. I just wanted to check there weren't any gaps in my (or your) knowledge

  • RE: XML Inserts

    Peter - Could you please show me an example of what can't be done? I'd like to understand.

    Here's one example of dealing with multiple addresses, but I'm guessing this isn't...

  • RE: XML Inserts

    nileshsane - re a few of your questions:

  • Is it possible to insert multiple rows at the same time?

    Yes - see above example.

  • Is it possible to insert rows into multiple tables by...
  • RE: XML Inserts

    Staging table? Peter - do you know we can just do this?

    --data

    declare @doc varchar(8000)

    set @doc = '

    <root>

      <Customer>

       <Cust_id>101</Cust_id>

       <Cust_fname>"George"</Cust_fname>

       <Cust_lname>"Spencer"</Cust_lname>

       <Cust_address>"Some Address"</Cust_address>

      ...

  • RE: Formatting

    I should've mentioned that, in general, it's better to do formatting at the front-end...

    Of course, there are always exceptions.

  • RE: Formatting

    Well, here's one way to do this in TSQL, but I'm sure it's irrelevant for Oracle

    --data

    declare @t table (x...

  • RE: passing table data type to SP

    Nope.

    If you describe what you want to do, there might be other options...

  • RE: Pivot table for Microsoft SQL Server

    Thanks Peter - nice looking article.

    I've not read the whole article yet (that's for when I have more time), but I wonder how your approach compares with the 'classic' crosstab/pivot...

  • RE: Can someone help me parse a free text field

    Here's a set-based version of Ian's suggestion. It's not pretty, but I don't think anything you do will be pretty.

    As with Ian's suggestion, I haven't removed 'IN SODIUM...

  • RE: help me with division please

    Hi hani

    That's called relational division...

    http://www.developersdex.com/gurus/articles/113.asp

    --data

    declare @user_companies table (user_id int, companies_name varchar(10))

    insert @user_companies

              select 1, 'a'

    union all select 1,...

  • RE: How to order records

    And here's another way to do what you shouldn't...

    --data

    declare @t table (ID int, SVCS varchar(20))

    insert @t

              select 1,...

  • RE: How to order records

    DogBot - You can read about normalisation here...

    http://www.datamodel.org/NormalizationRules.html

  • RE: Problem with Sequence Number

    Peter - interesting approach

    Maybe I'm misunderstanding, but it looks like that might run into problems when there are lots of rows (because there's...

  • RE: Managing Identity Values Between Multiple Databases

    Ah, the great primary key debate. If you're interested, have a read of some articles/discussions (I believe there are one or two

  • Viewing 15 posts - 406 through 420 (of 683 total)