Forum Replies Created

Viewing 15 posts - 3,976 through 3,990 (of 5,678 total)

  • RE: How not to get dubs

    CONSTRAINT [PK_SUN_Vendors] PRIMARY KEY CLUSTERED

    (

    [SUN_DB] ASC,

    ASC

    )WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]

    Here's the reason you're not able to insert dupes. So, you'll need to find any dupes...


    - 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: Linked server security

    That's strange then. When you login to the foreign box, using that user, and connect to the database that you're trying to pull data from... does it give you...


    - 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: Two Variable Combination Permutation Calculation

    Can you post the ddl and some sample data that would provide us the background for what you're looking to generate:

    qry_id_2combo hic_number

    qry_1&2 123456789A

    qry_1&2 987654321A

    qry_1&3 456789123B

    We're guessing as to what the...


    - 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: Best practice when removing a large amound of data in published database

    You could disable the publications, perform those tasks, re-establish the snapshot, and then re-enable the publications.

    Similar I guess to the drop/rebuild, but a little less painful.


    - 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: row by row operations

    Anna_SQL (2/17/2011)


    I learned one best practice is to avoid using sql server cursors. Because they generally use a lot of sql server resources and reduce the performacne 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: Linked server security

    Krasavita (2/17/2011)


    I am trying to select data from linked server and get an error message:

    Login failed for user 'SUN_Link_Srv'

    Why is that? My linked server is regestered under this name and...


    - 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 not to get dubs

    Krasavita, you're going to be a lot more explicit in your problem for specific assistance.

    Basically you'll have to dedupe your data into table 2 from table 1 to get it...


    - 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: SSIS Package - Data Flow Task

    That's odd.

    "C_achieve" "DT_STR" "0" "0" "100" "1252" "0" "" "OLE DB Source"

    That's a VARCHAR(100) in the stream. Well, you could tell it to just redirect failure rows, send the...


    - 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: Service Broker.

    As OPC mentioned above, you'd still be using a trigger to feed Service Broker. All Service Broker would do is delay the update to the other table, and tighten...


    - 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 split/extrapolate single records by date range into multiple records

    thepotplants (2/16/2011)


    The intention is expand records from the booking_in table into the booking_out table.

    Booking 19159 would become 4 rows.

    '19159','6' 'Dec 29 2009 08:00','Dec 29 2009 23:59:59'

    '19159','6' 'Dec 30...


    - 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?

    Jeff Moden (2/16/2011)


    Fal (2/16/2011)


    Brandie Tarvin (2/16/2011)


    ... But I'd avoid dark alleys, if I were you....

    Well, there goes the joy in life.

    But wait, you mentioned something about "tar and feathers"??

    Steve.

    Mmmmmm....


    - 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: newbie - Can someone help me understand this section of this script?

    adam spencer (2/16/2011)


    Craig,

    Thank you very,very much for that explanation. That helped clear it up!

    Adam

    My pleasure, glad I could help.


    - 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: Why is table locked while INSERTING?

    Ray Cacciatore (2/16/2011)


    Yes, it is an ADP file that is connected to SQL 2005.

    So, I'm understanding that even when a SELECT executes, the record gets locked?

    Yes, depending on isolation levels....


    - 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: use output parameter of stored procedure to determine data flow task

    Have two unique tasks and use a script component to evaluate the variable. Enable/disable tasks as necessary per pass in the script.


    - 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: Select records form lasthour

    and we haven't gotten to 8/2/2011 yet (I read it as 2010 for some reason) so yes, it's after an hour ago... LOL

    Check out this script, it should show you...


    - 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 - 3,976 through 3,990 (of 5,678 total)