Forum Replies Created

Viewing 15 posts - 4,411 through 4,425 (of 6,400 total)

  • RE: All Accounts Removed from SQL!

    Glad you got it back and working again.

  • RE: Need help regarding a question.

    Looks like you need to do some research on JOINS for starters.

    http://www.sqlservercentral.com/stairway/75773/

  • RE: Join Query

    What have you tried so far in getting your result?

  • RE: All Accounts Removed from SQL!

    whats the full error message from eventvwr?

    17058 is usually cannot open a file, usually down to permission errors.

  • RE: All Accounts Removed from SQL!

    The fist link I detailed constains the information on this, but from a command prompt you want to run something like the below

    net start MSSQL$INSTANCENAME -m"SQLCMD"

    or

    net start MSSQL$INSTANCENAME -m"Microsoft SQL...

  • RE: t sql with a bit who can be null

    this will get you your requirements

    declare @tbl table (id int, nom varchar(20) ,actif bit )

    INSERT @tbl values(1, 'un', 1)

    INSERT @tbl values(2, 'deux', 0)

    INSERT @tbl values(3, 'trois', 1)

    INSERT @tbl values(3, 'quatre',...

  • RE: Finding and replacing the exact value in TSQL

    I get what your trying to do, I just dont know how you are ending up with the replaced_replaced_replaced_dbname.

    Something must be changing the search for and replace with parameters, why?

  • RE: All Accounts Removed from SQL!

    Pause all the passive nodes so SQL cannot fail over.

    Then start SQL using -m and give it an application which you will connect with (Management studio or SQLCMD), as it...

  • RE: All Accounts Removed from SQL!

    I'm unsure on how it removed them from the server as it shouldn't and I just tested a simple transfer of 1 SQL and 1 Windows login no problem.

    For transfering...

  • RE: Finding and replacing the exact value in TSQL

    Only if you set the @SearchFor to a different value.

    Can you post your full query and your expected outcomes.

  • RE: All Accounts Removed from SQL!

    As long as you can login to the Windows console session as an account which is in the Windows Administrators group you will be able to login to SQL.

    It effectly...

  • RE: All Accounts Removed from SQL!

    Ensure you are an administrator of the Windows server where SQL is installed.

    Start SQL in single user mode using the startup flag -m

    Then you will be able to login to...

  • RE: Finding and replacing the exact value in TSQL

    REPLACE will work with underscores

    DECLARE @OrigString VARCHAR(100)

    DECLARE @SearchFor VARCHAR(100)

    DECLARE @ReplaceWith VARCHAR(100)

    SET @SearchFor ='DBName'

    SET @ReplaceWith = 'Replaced_DBName'

    SET @OrigString = 'Newdb.[DBName].dbo.TableName'

    SET @OrigString = REPLACE(@OrigString, @SearchFor, @ReplaceWith)

    SELECT @OrigString

  • RE: Tuning the squel qeury

    Sorry, think you got confused with what Gullimeel was asking.

    Please detail the output of the sys.dm_db_index_physical_stats query

    Also from your original select statement, how many rows did it return?

    Also from my...

  • RE: Finding and replacing the exact value in TSQL

    Something like this?

    DECLARE @OrigString VARCHAR(100)

    DECLARE @SearchFor VARCHAR(100)

    DECLARE @ReplaceWith VARCHAR(100)

    SET @SearchFor ='DBName'

    SET @ReplaceWith = 'ReplacedDBName'

    SET @OrigString = 'Newdb.[DBName].dbo.TableName'

    SET @OrigString = REPLACE(@OrigString, @SearchFor, @ReplaceWith)

    SELECT @OrigString

Viewing 15 posts - 4,411 through 4,425 (of 6,400 total)