Forum Replies Created

Viewing 15 posts - 1,231 through 1,245 (of 6,486 total)

  • RE: omit empty elements in for xml query

    It runs contrary to previous teachings, but - create correlated sub-queries to ensure what you're looking for.

    This is a bit more wordy, but does allow for better control over the...

  • RE: Problem with Stored Proc returning XML using For XML

    most of those are baked into how the FOR XML expects to to give it names. The easiest thing there is to just read through the FOR XML documentation...

  • RE: Problem with Stored Proc returning XML using For XML

    You really don't want to be using EXPLICIT, it tends to be way to onerous.

    Try this:

    declare @fun table(id int identity(1,1), val2 int, val3 int, val4 int)

    insert @fun

    values (1,2,3),(5,6,7)

    select 'Column1'...

  • RE: How to Access SQL Database Over the Web

    it's not that hard to pretend you're coming from a specific address (called IP spoofing). It's a sad statement of affairs , but there's a fair amount of shareware...

  • RE: Is there are a size limit on XML datatype SQL Server 2008 R2 ?

    The XML data type is capped at 2GB. Unfortunately that means you must be encountering some other error if it is truncating before that.

    How are you going about checking...

  • RE: How to Access SQL Database Over the Web

    Also - keep in mind with this kind of pattern, when you say "nothing dynamic", you need to be strong about that. As in - your message from the...

  • RE: For XML Explicit SQL duplicating elements

    Another way to do it without EXPLICIT:

    select t.root_element as '@value',

    (select distinct elementA as 'elementA/@value'

    from @tab tabinner1 where tabinner1.root_element=t.root_element

    for XML path(''),TYPE),

    (select distinct elementZ as 'elementZ/@value'

    from @tab tabinner where tabinner.root_element=t.root_element

    for XML path(''),TYPE)

    from...

  • RE: urgently need advice: mapping XML data to destination columns

    Well you certainly could do that. Altova puts out non-feature limited tools in their demo. 30 days was plenty to get us up and running.

    Of course, you will need...

  • RE: urgently need advice: mapping XML data to destination columns

    hxkresl (1/24/2011)


    For example, is there a tool that will convert an xml document into an entity relationship diagram? I need to identify the tables and columns.....

    Look at the Altova...

  • RE: REGEXP - SQL Server 2008

    Assuming you're running this against a SQL Server 2008 version, you can create functions and stored procedures using what is called SQLCLR. These are .NET assemblies built and compiled...

  • RE: REGEXP - SQL Server 2008

    Why use the VBScript option? You're in 2008, leverage the full .NET version of Regex.

    If you change the function into a stored proc you will have a lot more...

  • RE: Better looping - replace for cursor

    Craig Farrell (1/14/2011)


    Random note:

    Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was...

  • RE: Better looping - replace for cursor

    BaldingLoopMan (1/14/2011)


    sorry. i do agree w the indexing just not the loop haters out there

    Never mind whether you like loops or not, this has crash and burn written all over...

  • RE: How much of a future is there for the "local" DBA

    Craig Farrell (12/30/2010)


    Leo.Miller (12/30/2010)


    I think this is one of the major mistakes companies make. The former always showed the most improvement in their environment and its stability/manageability.

    I've dealt with...

  • RE: Virtualize or not ?

    LutzM (12/22/2010)


    Gagne (12/22/2010)


    ...

    Lutz, that sounds like you're saying that generally speaking, virtualizing a SQL Server will impact performance and that it's all a question of whether it will slow it...

Viewing 15 posts - 1,231 through 1,245 (of 6,486 total)