Welcome to Sign in | Help
in Search

Chestie ciudata, restore si 5 secunde

Last post 02-15-2007, 6:59 PM by Diana. 1 replies.
Sort Posts: Previous Next
  •  02-15-2007, 3:48 PM 1825

    Chestie ciudata, restore si 5 secunde

    Am dat de postul asta pe alt forum si in esenta zice ca dupa ce face un restore trebuie sa astepte 5 secunde inainte de a reusi sa se conecteze...
    Ciudat...

    Cam astea sint datele problemei (sint posibile typo la transcriere):


    set ANSI_NULLS ON

    set QUOTED_IDENTIFIER ON

    GO

    ALTER PROCEDURE [dbo].[sp_restor]

    @numedb nvarchar(50),

    @backuppath nvarchar(250)

    AS

    BEGIN

    DECLARE @strSQL NVARCHAR(1000)

    SET @strSQL = N'ALTER DATABASE ' + @numedb+ ' SET SINGLE_USER WITH
    ROLLBACK IMMEDIATE'

    EXEC sp_executesql @strSQL


    RESTORE DATABASE @numedb FROM DISK = @backuppath

    SET @strSQL = N'ALTER DATABASE ' + @numedb + ' SET MULTI_USER WITH ROLLBACK
    IMMEDIATE'

    EXEC sp_executesql @strSQL

    END

    Daca se deschide conexiunea imediat eroarea e:

    [DDNETLIB][ConnectionWrite (WrapperWrite()).]General network error.....

    Dupa 5 secunde merge bine

    Filed under:
  •  02-15-2007, 6:59 PM 1826 in reply to 1825

    Re: Chestie ciudata, restore si 5 secunde

    Raspund cu alte intrebari... 

    Pe ce versiune de SQL Server se intampla asta? Exista mesaje de eroare in logul SQL si/sau in Event Log - ul de Windows?

    Se intampla cu regularitate?  Restore-ul are loc OK?

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems