Results 1 to 7 of 7

Thread: Datatype ntext

  1. #1
    Join Date
    Oct 2005
    Posts
    7

    Datatype ntext

    Hallo. I need help, how pull out some inquiry string from type "ntext" in MS SQL(it is xml document). Sring has invariable length, in note is always on other position and includes variable text (e.g .:<actionId>xx</actionId>) . Position I can find out by the help of "patindex" but I don't know what then. I tryed to write procedures, but I had trouble with declaration variables (data type). Thanks and sorry for my horrible English.

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    See sp_xml_preparedocument in books online, this allows you to run SELECT queries on xml document.

  3. #3
    Join Date
    Oct 2005
    Posts
    7

    Wink fcela

    But I have about 500 000 lines with xml files and i need a string from every one line ...

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    Possible to use full text index?

  5. #5
    Join Date
    Oct 2005
    Posts
    7
    Maybe. I don't know how

  6. #6
    Join Date
    Sep 2002
    Posts
    5,938
    You can find details in sql books online by searching 'full text index'.

  7. #7
    Join Date
    Oct 2005
    Posts
    7
    Thanks, I am doing it for last three days

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •