Forum Replies Created

Viewing 15 posts - 451 through 465 (of 2,008 total)

  • RE: Can anyone exaplin me this insert statement

    ashuthinks (1/2/2012)


    varbinary value yes... but i'm getting null value i dont know why 🙁

    It will / may return NULLs if any of following is NULL:

    @PersistenceSourceId

    @EntityType

    @NativeUniqueIdentifier

    RETURN HASHBYTES(

    'SHA1',

    CAST(@PersistenceSourceId AS VARBINARY)...

  • RE: Backup and Restore.

    Actually it’s not that difficult. You just need a loop / cursor (suggesting loops because it’s one time solution probably :unsure:) that will loop through all tables in the database.

    For...

  • RE: Can anyone exaplin me this insert statement

    What’s confusing in it? The INSERT statement is calling a function that returns hash bytes (varbinary value). :Whistling:

  • RE: Index size greater than actual data

    Then you should rebuild / reorganize your index. Its fragmentation is consuming 30 GB of space (however not visible in query results :unsure:).

  • RE: Backup and Restore.

    MasterDB (1/2/2012)


    If i take, new full backup and restored with replace option i can lost yesterdays' data in QA Instance..

    am i right..?

    Full Restore will replace everything on target server with...

  • RE: Backup and Restore.

    MasterDB (1/2/2012)


    exactly, after restoring second backup in QA Instance am not able to see yesterday's Records am able to see only today inserted and updated records.

    You took FULL backups, right?...

  • RE: BULK INSERT - Limitation ?

    Most Welcome! 🙂

  • RE: BULK INSERT - Limitation ?

    I believe its exported csv (or tab limited) file. So by default it will have row terminator, you don’t need to force it.

    Else you can put following case with explanations...

  • RE: Index size greater than actual data

    I am not very sure how ‘sys.dm_db_index_physical_stats’ gets its data & how you retrieved 36 GB on Index space. But it’s very common that a file’s actual size & file’s...

  • RE: BULK INSERT - Limitation ?

    Try following on notepad...

    Insert some text (any text) and hit enter key (new line). What’s the output?

    Until you hit enter key, line can go till EOF. But it’s not...

  • RE: BULK INSERT - Limitation ?

    Did you conclude anything based on this output?

    2 files generated

    File 1 : "Error"

    File 2: "Error.Error.text"

    It’s as expected error files.

    File 1 contents

    3,3,

    It indicates error in row#3 with complete row...

    File 2...

  • RE: BULK INSERT - Limitation ?

    Can you try your code with following data?

    --- Data in Sample.text

    1,James,

    2,BK,

    3,

    ------- End of data----

  • RE: Virtualize or not ?

    frankcastle509 (1/2/2012)


    Well sir, I am not blaming anyone in this community but always trying to learn something which is knowledgeable and could be of great value to me.

    Yes, experience...

  • RE: BULK INSERT - Limitation ?

    It will create error files if it rejects any row for inconsistency. If your data is clean it won’t create it. Verify it with scenarios where you lose some of...

  • RE: DBCC CHECKDB error

    Please consider it a lesson and backup your databases regularly. I should add verification of backups is equally important so verify your backups with proper restoration scenarios at regular interval...

Viewing 15 posts - 451 through 465 (of 2,008 total)