How to get at value?

  • beth-447786

    SSC-Addicted

    Points: 458

    oh happy day, I figured it out! My select statement all along has been;

    DBType = d.value('(rd:DBType)[1]','varchar(max)'),

    when it should have been;

    DbType = d.value('(rd:DbType)[1]','varchar(max)'),

    I now get 'String' for all but @Companies which has an (unspecified) data type. Can't believe I reviewed that code many times and did not see it.

    I did not replace 'SQLS' with 'sqls'; the report designer URL is stored by Microsoft as 'SQLServer', so it has never made sense to me that it needed to be changed to lowercase.

    thank you Brian, regards, beth

  • Mr. Brian Gale

    SSC-Insane

    Points: 22933

    Glad it works!

    Also, figured out why I needed it lowercase as I was confused on that too, it was just how it worked for me.  The URL in the XML needs to be the same case as the WITH XMLNAMESPACES section.  So for those who are looking at this later, if your XML has uppercase in it, the XMLNAMESPACES needs to use the same case.

Viewing 2 posts - 16 through 17 (of 17 total)

You must be logged in to reply to this topic. Login to reply