Forum Replies Created

Viewing 15 posts - 4,201 through 4,215 (of 5,678 total)

  • RE: ForEach Loop and an ADO Recordset

    Found most of what I was looking for, thanks to anyone who tried.

    http://www.codeproject.com/KB/database/foreachadossis.aspx


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Help with Query

    mikes84 (1/31/2011)


    Craig,

    Thanks for your explanation. Your recommendations make sense, so I'll dig a little deeper with those.

    Ping back here with the actual DDL and some sample data if you get...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: How To Get List of All Servers On The Domain And Store Results In Table

    YSLGuru (1/31/2011)


    Perry Whittle (1/31/2011)


    pipe the output of this into a table

    sqlcmd -Lc

    Thanks for the suggestion but do you know if there is an equivelant syntax that shows all the servers...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Help with Query

    Celko, the last week or two of you was pleasant. Did they take you off the meds?

    Anyway, no, there is no simple way of getting the before/after rows that...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Conversion failed when converting the varchar value ' ' to data type int.

    With no sample data and no ddl, it's hard to help you here other then to give you some troubleshooting steps.

    Try commenting out portions of the code until you don't...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Killed a SPID; Not Completing...

    dajonx (1/31/2011)


    Hi,

    I was wondering if there is a way to remove a killed SPID that has been in rollback for a week without restarting SQL service. The SPID was...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Passing the name of a SQL Server instance as a parameter

    I don't have the setup to test this, so sorry for using you as the guinea pig, but can you try changing this:

    SET @SQLString = N'SELECT @CountOUT = COUNT(*) FROM...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Using GETDATE() in the where clause and in joins

    *facepalm* Picard's gonna make a comeback.

    FROM

    AZVIEWS.DBO.VW_SNF601 HIS WITH (NOLOCK) --18877

    LEFT OUTER JOIN

    azVIEWS.DBO.VW_SNF617 A WITH (NOLOCK) --18552

    ON HIS.EID = A.EID

    AND A.ORDERSTARTDATE >=DATEADD(HOUR,8,CAST(CONVERT(DATE,GETDATE()-1)AS DATETIME)) AND A.ORDERSTARTDATE <= GETDATE()

    LEFT...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Designing Database Architecture - What Does this Mean?

    vadon97 (1/31/2011)


    I appreciate your input. However the tone of your message seems to relay that I said I was going to lie. I never said that.

    It's...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Designing Database Architecture - What Does this Mean?

    vadon97 (1/31/2011)


    I just came across this blog post, I will start here. Looks like it's on-topic.

    Actually, my guess is that's way off target. That's server architecture, a whole...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Designing Database Architecture - What Does this Mean?

    vadon97 (1/31/2011)


    I work with SQL databases on a high level... meaning I run queries and stored procedures, and backup/restore databases on the regular. I want to apply for...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Using GETDATE() in the where clause and in joins

    In general... yes. Unless you're doing different forms of mathmatics to the date.

    The DATEADD you're seeing, is it wrapping a DATEDIFF? If so, they're stripping away pieces of...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Maximum Invoce for each Customer

    I would personally approach this in a different method, using a full outer join structure.

    CREATE NONCLUSTERED INDEX idx_my_table ON #my_table (mt_state, mt_cust_id, mt_Invoice_No)

    GO

    SELECT

    ISNULL( drvActive.mt_cust_id, drvInactive.mt_cust_id) AS mt_Cust_id,

    ISNULL( drvActive.MaxActive, drvInactive.MaxInactive) AS...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Making a Phone number list with XmlPath('')

    Henk Schreij (1/31/2011)


    The trick is in the article Graig mentioned. I needed some time to find it.

    Odd, that link should have taken you right to it. Ah well.

    Next: finding...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Need the Price with the Latest Date

    sdownen05 (1/31/2011)


    Thanks, Craig. This seems to work. My concern was that, the way you constructed it, sinced it didn't pull the price along with the max date and the item...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

Viewing 15 posts - 4,201 through 4,215 (of 5,678 total)