Forum Replies Created

Viewing 15 posts - 10,501 through 10,515 (of 15,381 total)

  • RE: XML data type

    PiMané (10/4/2012)


    Hi,

    Is it safe to say that XML data type should be used to store data, instead of creating more columns on the table, data that won't be searched. If...

  • RE: Update query question

    The first time I ran the query below I thought it didn't update correctly (as I suspected). But subsequent runs are successful every time.

    You think it didn't work or...

  • RE: Design Question for Discriminator Column

    I agree this process sounds like it was not well designed. How do you handle things like credit card rejections or simply typing in bad info? By that point the...

  • RE: Find sub-tree nodes

    haiao2000 (10/4/2012)


    Eventually I run into performance issue when number records being so large. Could you suggest another method of doing tree drill down?

    Thanks!

    You do realize this thread is 5 years...

  • RE: How to identify task that downgrades the database server performance

    Another great article is here. http://www.sqlservercentral.com/articles/Performance/71549/%5B/url%5D

    And for what it is worth the NOLOCK hint is not a magic go fast pill. It comes with a lot of other concerns, like...

  • RE: Parameter sniffing performance

    SQLSACT (10/4/2012)


    Hi All

    I understand that parameter sniffing is a good thing

    It becomes a bad thing when the parameters used in the first execution of the Procedure are atypical to the...

  • RE: Passing multiple values through one parameter in a stored procedure

    Here is an example of doing this both ways:

    First is the Delimited string method. The code for the DelimitedSplit8K function can be found at the link in my signature about...

  • RE: Passing multiple values through one parameter in a stored procedure

    What you need to do is either use a table valued parameter or change your datatype to a varchar and then split the variable inside the proc.

    If your...

  • RE: Octopus Deployment

    vijayarani87.s (10/4/2012)


    Does anyone have idea about octopus deployment.....

    Not to sound rude but have tried (insert your search engine of choice)???

  • RE: Dynamic Filter and Order By

    L' Eomot Inversé (10/4/2012)


    Sean Lange (10/3/2012)


    ... Isn't LIKE as good as >= for index seeks?!?

    NO LIKE is not SARGable so you will get scans. It has to examine every row...

  • RE: Insert from another database

    haiao2000 (10/3/2012)


    And if you want to avoid the natural tendency to do some sort of looping to build your dynamic sql you can do something like this.

    select 'insert YourNewTable select'...

  • RE: Design Question for Discriminator Column

    These three payment methods have different data requirements:

    1. Checks only need Payment Amount and Check Number (for our requirements).

    2. ACH transactions only need Bank Name, Routing Number and Account...

  • RE: Insert from another database

    haiao2000 (10/3/2012)


    this is code to get columns name from a table,

    SELECT COLUMN_NAME FROM SourceDbName.dbo.INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='';

    if you want to do all in sql, them you may have to build...

  • RE: SQL Server 2005 64 bit vs 32 bit

    jrichards54 (10/2/2012)


    I currently have VS 2003, VS 2005 and SQL Server 2005 installed on my machine. VS 2003 is 32 bit, VS 2005 And SQL Server 2005 are 64 bit....

  • RE: Query Help

    surma.sql (10/3/2012)


    Sean Lange (10/3/2012)


    select *, ROW_NUMBER() over (PARTITION BY cStudentId Order by dtEnrollmentDate) as RowNum

    from #temp1

    ok, i got it.

    But in my requirement, I insert the output to another table and...

Viewing 15 posts - 10,501 through 10,515 (of 15,381 total)