Forum Replies Created

Viewing 15 posts - 301 through 315 (of 492 total)

  • RE: fetch from cursor seems to be much slower than original query

    Avoid using cursors!

    Cursors are row based queries, in simple terms SQL defines which rows are required in what can be thought of as a temporary structure. Then when you step...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Detach a database which is being replicated

    Page9:F1 (11/18/2010)


    So I think if I can get rid the replication rebuild, I can reduce the time window for the work.

    We cannot make the DB offline or detach directly...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: sql server 2005 databases move to a new server

    Ann Cao (11/17/2010)


    I see an microsoft knowledge based instruction of how to backup/restore user databases to a new server, and then transfer logins and sql jobs.

    But some one mentioned...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: User, group or role already exists in database

    SKYBVI (11/17/2010)


    when i try to delete the schema, it says cannot delete the schema as it is referenced by object 'xyz'

    Regards,

    Sushant

    You need to go to the object and change the...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Copying replicated database

    Why aren't you just doing a backup and restore?

    You shouldn't have issues with the original database, but the database on the pen drive will be marked as being replicated. This...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Releasing free (unallocated) space via backup/restore

    The backup backs up the current state of the database. If you did a RESTORE HEADERONLY from BackupDevice... you will see it is expecting 400GB of space. There is no...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Differential backups breaking Log shipping

    If you read the posts carefully you'll see they send the Diff backups to the client every night. This is more efficient than sending a full backup every night.

    Then they...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Differential backups breaking Log shipping

    kiranjanjanam (11/8/2010)


    Yes, it started failing after the very first diff backup..and the daily diff backups are taken in a maint. plan.

    and here is the code:

    BACKUP DATABASE ABC

    ...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Differential backups breaking Log shipping

    Did it fail after the very first differential backup?

    Just to be sure can you post the differential backup code you use?

    Leo

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Differential backups breaking Log shipping

    I've got to agree with Craig, differential backup shouldn't break log shipping. I've implemented this before without issues. There must be something else going on, like a truncate log.

    Cheers

    Leo

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Need to pull data from SQL Server using an intermediate server that does not have SQL Server - Best Approach?

    Sorry, I didn't realise your restiction was that you had to do ALL the work from the intermediate server. What all can you install on this server? Are they happy...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Need to pull data from SQL Server using an intermediate server that does not have SQL Server - Best Approach?

    OK, use BCP or SSIS on the SQL server to dump the files locally, then set up a Windows scheduled job to Robocopy the files through the system. No SQL...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Need to pull data from SQL Server using an intermediate server that does not have SQL Server - Best Approach?

    As long as your SQL Server Service account has write access to a drive on the intermediate server you can use BCP or SSIS to create the text files. Serch...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Calculate rows in a tabel

    Krasavita (11/8/2010)


    How can I calculate how much space will it take, for example 500000 rec = to how many gb. Thank you

    You need to calculate spaceused for a single row,...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: why is this taking ages?

    What is the function actually doing? Knowing the underlying code and schema would help find a possible issue.

    Also if you trace the SQL statements, not only the batch you can...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

Viewing 15 posts - 301 through 315 (of 492 total)