Welcome to Sign in | Help

Re: View cu coloane not null

  •  11-25-2009, 2:30 PM

    Re: View cu coloane not null

    Nu stiu daca ar trebui sa deskid un topic nou sau sa il pun tot in acesta dar are legatura cu not null .

    am urmatoarea tabela
    table nume
    col1 not null.


    daca aplic un bcp si anume :
    bcp tbl out c:\tbl.dat -S "server" -n -U "user" -P "password"
    bcp tbl format nul -S "server" -n -U "user" -P "password" -f tbl.xml -x


    dupa care dau un

    select * into tbl2 from OpenRowSet (bulk = 'tbl.dat' , formatfile = 'tbl.xml')

    problema e ca acum in tbl2 am col1 cu null desi in tbl am col1 cu not null.

    Cum pot face sa isi pastreze coloanele cu not null ?. M-am uitat prin proprietatile lui openrowset dar nu am observat ceva ce m-ar ajuta.
    Nu se poate asa ceva ?

    Multumesc




View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems