Forum Replies Created

Viewing 15 posts - 46 through 60 (of 522 total)

  • RE: Database Memory

    What is your environment? Windows version/edition, SQL Server version/edition? 32 or 64 bit etc?

  • RE: Database Memory

    What is your environment? Windows version/edition, SQL Server version/edition? 32 or 64 bit etc?

  • RE: Can lots of User Connections cause high CPU use

    Are you sure it is the % Privileged Time >90%? That means CPU is busy in kennel mode, e.g. using operating system services, processing IOs, Paging Memories to disk, etc.

    What...

  • RE: Local Temporary Tables and Table Variables

    To humbleDBA,

    You are right. INSERT ... EXEC works for table variable too in SQL Server 2005. In SQL 2000, it does not work. Thanks.

    Jeff, Gail, and Chris,

    Thanks for the...

  • RE: Stored Procedures Reconsidered

    One more problem is network traffic. For SP, client just needs to pass the SP name and the parameter values; For DAL, the whole query TSQL command blocks, which are...

  • RE: Stored Procedures Reconsidered

    In OO world, encapsulation is a fundamental rule. Developers need to create private members and wrap them by SET / GET as properties. They donot expose the members, insdead, they...

  • RE: Retriving Same child node data from XML Column.

    CROSS APPLY is used to "JOIN" a table (A) with the second rowset, which is produced by a rowset function (TVF, xml nodes, etc) by taking A's columns as parameters....

  • RE: Retriving Same child node data from XML Column.

    ;WITH XMLNAMESPACES(DEFAULT 'http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/Resume')

    SELECT myResume.xxx.value('.','varchar(max)')as OrgName

    FROM [HumanResources].[JobCandidate] J CROSS APPLY J.[Resume].nodes('/Resume/Employment/Emp.OrgName') myResume (xxx)

    WHERE J.JobCandidateID = 3

  • RE: XML namespace

    This works:

    Declare @x xml;

    With XMLNAMESPACES ('http://www.test.namespace.com/ns/1.0' as c)

    SELECT @x = (SELECT 'value' [c:test] For xml path(''),Elements, type)

    Select @x

  • RE: Shredding XML Data Type to Relational SQL Rows

    OK. I can't paste the xml here. It's the same as the file you attached.

  • RE: Shredding XML Data Type to Relational SQL Rows

    Based on the xml you posted, the following code works:

    DECLARE @x xml;

    set @x=N'

    '

    Select T.c.value('AgentID[1]','int') as AgentID,

    T.c.value('AgentName[1]','nvarchar(100)') as AgentName

    from @x.nodes('row') T(c)

  • RE: Name value pair (EAV) model

    SQL Server 2008 has better support for EAV by sparse columns/columns set

  • RE: CTE Performance

    I found your loop and CTE are not equivalent. In the loop, you have the code

    WHERE ...

    and c2.structureid not in

    ...

  • RE: dbmail 2005

    I have dbmail setup using my exchange account. It works fine.

  • RE: maximum number of records

    SQL Server does not have hard limit for rows in a table if you have enough disk space.

Viewing 15 posts - 46 through 60 (of 522 total)