Forum Replies Created

Viewing 15 posts - 166 through 180 (of 242 total)

  • RE: BCP and the classic error: "Cannot insert duplicate key in object"

    and there it is. some how i think

    that will completely resolve the issue.

    going to test this out around lunch time today.

    thanks lance!!

  • RE: selecting by week?

    ken... many thanks!

    lindss...

    not really. i i'm only responsible for getting the data

    across in the quickest way possible, and can't really

    make changes to the columns, or the data....

  • RE: BCP and the classic error: "Cannot insert duplicate key in object"

    perhaps i should drop all keys/constraints etc prior

    to the import

    is it possable capture all

    different types of keys prior to drop, and then

    recreate them 'exactly' as they were after the

    import is...

  • RE: BCP and the classic error: "Cannot insert duplicate key in object"

    not really just exported it with bcp using

    the -n switch is about it.

    out with:

    bcp pubs..authors out c:\authors.bcp -n

    then importing it with the following:

    bulk insert pubs2..authors from 'c:\pubs-authors.bcp'

  • RE: BCP and the classic error: "Cannot insert duplicate key in object"

    tried this real quick on an export from authors table, and

    upon inserting it into another db like pubs2 with bulk insert

    i get the following:

    Bulk insert data conversion error (truncation)...

  • RE: large table load slow performance

    Ten Centuries posted this...

    ------------------------------

    Personally I prefer to flush out a table and repopulate in preference to DROP/CREATE.

    For big import jobs I tend to follow the procedure below.

    ...

  • RE: Drop and Create or Truncate table

    excellent idea!! this is awesome!!

    question is... can this be automated via script

    maybe within a 'bulk insert' ??

    so just be sure though... is it possable capture all

    different types of keys...

  • RE: selecting by week?

    is no problem. thanks for all your help any way

  • RE: selecting by week?

    yikes... i may be in over my head on this one.

    i thought it could be a simple one-line script

    or some thing.

    all this just to get the last 4 wks from...

  • RE: selecting by week?

    [DATEFIELD]column is the following:

    Type: int

    Computed: no

    Lenth: 4

    Prec: 10

    Scale: 0

    Nullable: yes

    TrimTrailingBlanks: n/a

    FixedLenNullInSource: n/a

    Collation: null

    this is the column definition... does this help at all,

    i mean is this useful?

  • RE: selecting by week?

    i'm getting the following error:

    Msg 8115, Level 16, State 2, Line 5

    Arithmetic overflow error converting expression to data type datetime.

    is there some thing i did wrong?

  • RE: selecting by week?

    so this can be automated?

    i mean if i build this into a job, do i have to go

    back and edit the (set @d = 'today') every time?

    thanks in advance.

  • RE: Enterprise Manager > script Jobs

    yeah... the problem here is that when you go to the 'Jobs' category under

    the SQL Agent, and goto All Tasks, then generate a script for all jobs,

    it's not like it...

  • RE: add a role to all databases?

    cool... thanks! i knew it was out there some where.

    one other question... i'm reading mixed reviews

    on the process.

    has there ever been any incomplete issues with this?

    sp_msforeachdb 'sp_addrole ''role_name'' '

    where...

  • RE: add a role to all databases?

    right... but question remains on how to

    add a single role to all databases at once.

    thoughts?

Viewing 15 posts - 166 through 180 (of 242 total)