Visualizzazione dei risultati da 1 a 5 su 5
  1. #1

    [SQL Server] problema con Owner della tabella

    salve,
    non sò se è il posto giusto...
    ho sempre postato qui, e non sò dove scrivere...
    ho un problema con un DB SQL
    ho creato una tabella tramite script asp, e ovviamente l'owner è l'utente che accede al srv sql.
    Per vari motivi ho cambiato SRV, e ho fatto un attach del DB SQL [non avevo il bck, ma solo i file] sul srv nuovo non c'è l'utenza con cui avevo creato le tabelle... quindi non mi ci fa accedere...
    non mi fa cancellare l'utenza inquanto è owner di oggetti, e non me la fa creare in quanto è già esistente...
    come posso modificare l'owner di una tabella?!?!

    Grazie.

    Ciao
    Ah, Jedis! I had no ideas! What can i do for you, honored Jedis?

    I'm not Jedi. I'm a guy with a lighsaber and a few questions.

  2. #2
    Utente di HTML.it L'avatar di Gioba66
    Registrato dal
    Jun 2002
    Messaggi
    2,189
    usa la sp
    sp_changeobjectowner

    sql = " exec sp_changeobjectowner 'nometabella', 'dbo' "
    conn.execute sql
    Tutti vogliono parlare, nessuno sa ascoltare.

  3. #3
    ho provato da sql query analizer

    mi da questo errore:
    Server: Msg 15001, Level 16, State 1, Procedure sp_changeobjectowner, Line 38
    Object 't4ciforum.FORUM_ACTIVE_USERS' does not exist or is not a valid object for this operation.


    la qry che eseguo è:
    exec sp_changeobjectowner FORUM_ACTIVE_USERS', 'dbo'


    help me!
    tnkx
    Ah, Jedis! I had no ideas! What can i do for you, honored Jedis?

    I'm not Jedi. I'm a guy with a lighsaber and a few questions.

  4. #4
    Utente di HTML.it L'avatar di Gioba66
    Registrato dal
    Jun 2002
    Messaggi
    2,189
    exec sp_changeobjectowner 'FORUM_ACTIVE_USERS', 'dbo'
    Tutti vogliono parlare, nessuno sa ascoltare.

  5. #5
    ok come non detto :S

    va

    lol
    Ah, Jedis! I had no ideas! What can i do for you, honored Jedis?

    I'm not Jedi. I'm a guy with a lighsaber and a few questions.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.