Forum Replies Created

Viewing 15 posts - 2,131 through 2,145 (of 5,678 total)

  • RE: Stored procedure Loop help please

    Welcome RW.

    Why not just do this?

    INSERT INTO dbo.Units (PhaseID, BuildingID, UnitName, FileNumber, SubAddress, Eligible, EligibleReason, Priority, TownPriority, BidAmount, ConstructionCost, Comments, AccessCode)

    VALUES (@phase_id,@bldg_id,'','',@index,'','','','','','','','');


    - 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: Very Odd Query to Select Data

    AndrewSQLDBA (12/8/2011)


    Sure will

    I have been working on it, and going thru the small list by hand to see exactly what rows are not in the correct place. I am coming...


    - 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: Very Odd Query to Select Data

    Can you run the code I offered and tell me exactly which row(s) are not positioning correctly?

    Apologies, but I just don't have time to dig through that at the moment,...


    - 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: Are the posted questions getting worse?

    Brandie Tarvin (12/8/2011)


    Why? Well, it's my opinion that women tend to take a long term view of where their careers will be, in addition to the money and benefits, while...


    - 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: SQL Server Best Practices to develop a standard base for all sql servers. Suggestions please!

    oweston (12/7/2011)


    Have a general question what setting/s would a dba hold true to implement on all servers touched? i.e Auto Grow always on. I know this is a very...


    - 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: Truncation Error from the following logic

    mtassin (12/7/2011)


    Of 11million records... about 50,000 are failing with truncation. Near as I can tell there's no way I'm exceeding the bounds of a DT_I4 data type with this...


    - 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: corrupt going from 2000 to 2008

    If this database is small and merely complex, I have a recommendation...

    Script out all the schema, drop it to a new DB shell, and port your data over. Grab...


    - 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: clustered vs Non clustered index scan

    matthew.peters (12/7/2011)


    Here is the query and I have attached the plan. I assumed a like operator required a index scan? Anyway any help would be appreciated, I have created a...


    - 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: Compare two records of the same table

    SQL_Surfer (12/7/2011)


    Thanks tfifield. The use of FOR XMl mentioned in the article did the trick. Is there any other way by just using the self join?

    Yes, but not with a...


    - 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: Getting Most Recent Date Records

    SQLRNNR (12/7/2011)


    try using a cte and a row_number() ranking function.

    Put your query in the cte with that ranking function, then select from the cte where rownum=1

    I would not under most...


    - 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: Very Odd Query to Select Data

    Andrew,

    I took a look through this and your data and what you've described as the business rules and it doesn't make sense offhand. Hopefully you can clarify.

    Honestly, your initial...


    - 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: Moving to a SAN, but the sizing concept doesn't sound right....

    LutzM (12/7/2011)


    I hear both of ya!! :crying:

    I'll keep trying to talk those folks into more spindles and much larger local drives (the fact they still didn't answer my memory dump...


    - 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: clustered vs Non clustered index scan

    matthew.peters (12/7/2011)


    Hey Guys

    I have an issue where an application is running a few different select queries with 'like' operators on a large table in the datebase. These queries in turn...


    - 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: Prevent Deadlocks on EF Generated select statements

    Sapen (12/7/2011)


    Hi all,

    I thought to run the victims (EF Generated SQL SELECT queries) through the DETA and see if it recommends any indexes. As expected DETA suggested that there will...


    - 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: OLE DB Staging Table to OLE DB Destination Table, data type problem

    hxkresl (12/7/2011)


    I'm successfully moving all columns from staging to destination table, with one caveat. The column with datatype (decimal 15,2) is getting truncated. Instead of preserving the values after...


    - 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 - 2,131 through 2,145 (of 5,678 total)