Click here to Skip to main content
15,911,715 members
Home / Discussions / Database
   

Database

 
QuestionRe: Need suggestion for two database inconsistency Pin
Jörgen Andersson26-Jan-12 20:23
professionalJörgen Andersson26-Jan-12 20:23 
AnswerRe: Need suggestion for two database inconsistency Pin
vanillaET26-Jan-12 21:32
vanillaET26-Jan-12 21:32 
QuestionRe: Need suggestion for two database inconsistency Pin
Jörgen Andersson26-Jan-12 22:33
professionalJörgen Andersson26-Jan-12 22:33 
QuestionRe: Need suggestion for two database inconsistency Pin
vanillaET27-Jan-12 0:14
vanillaET27-Jan-12 0:14 
AnswerRe: Need suggestion for two database inconsistency Pin
Eddy Vluggen27-Jan-12 6:24
professionalEddy Vluggen27-Jan-12 6:24 
QuestionShowing Parent-Child Tables in a query Pin
Pooyan Behroozfar26-Jan-12 6:26
Pooyan Behroozfar26-Jan-12 6:26 
AnswerRe: Showing Parent-Child Tables in a query Pin
SilimSayo26-Jan-12 6:33
SilimSayo26-Jan-12 6:33 
QuestionDatabase does not have a valid owner Pin
Gary Heath26-Jan-12 5:35
Gary Heath26-Jan-12 5:35 
I am new to SQL Server, but not to Programming or Databases, and am stuck, though I have an inkling what is wrong and I don't know how to correct it !!! I'll describe things in detail below ...

I am running this software on a stand-alone PC with myself as the only user.

When I try to add a diagram to my Database I get a message telling me that "This database does not have a valid dbo user, or you do not have permissions to impersonate the dbo user, so database diagramming is not available. Do you want to make yourself the dbo of this database in order to use database diagramming ?"

If I then reply "Yes" it says "This server does not have one or more of the database objects required to use database diagramming. Do you wish to create them ?"

Again, I reply "Yes" and this is where I get the error, "Could not obtain information about Windows NT group/user 'Gary-PC\Gary', error code 0x534."

If I then try to do similar in MS SQL Server Management Studio I get a different message - "Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects."

Now, I think this is something to do with my PC being renamed, because it is called, and has been for ages, MeDesktop, but at one point I seem to recall it was called Gary-PC, so it could be that something just needs a pointer changed, but I don't know where or how to do that !!!

In MS SQL Server Management Studio, Object Explorer, the Connection Name is "MEDESKTOP (MEDESKTOP\Gary)", Display Name is "MEDESKTOP", Login Name is "MEDESKTOP\Gary" & Server Name is MEDESKTOP.

I have 4 System Databases, "master", "model", "msdb" & "tempdb", all of which have a Status of "Normal" and an Owner of "sa" ... I seem to remember something about "sa" from when I first installed this stuff, but it was a long time ago !!!

I then have my own new (and very small) database, called "myKADB" and this is where I have the problem. I can add and amend Tables & Columns, and I can access the database via my C# program, so most things appear to be working just fine, bar these error messages above. Now, if I look at the Properties of myKADB, I see that again the Status is "Normal", but the Owner is "Gary-PC\Gary", so I think this needs to be changed ... though I could of course be wrong !!!

In the Files option of Properties, there looks to be the option of amending the Owner, so I click on the little button with the 3 dots and I get a Window that says "Select Database Owner", The top button says "Object Types" and there is just the single option of "Logins", and then there is a Window that says "Enter the Object names to select", but this Window is empty. If I then click the Browse button, it says "7 objects were found matching the types you selected" and the 7 are, "##MS_PolicyEventProcessingLogin##", "##MS_PolicyTsqlExecutionLogin##", "Gary-PC\Gary", "NT AUTHORITY\SYSTEM", "NT SERVICE\MSSQLSERVER", "NT SERVICE\SQLSERVERAGENT" & "sa".

Hopefully this is everything I need to tell you, what do I need to do ?!?!?
AnswerRe: Database does not have a valid owner Pin
Wes Aday30-Jan-12 3:52
professionalWes Aday30-Jan-12 3:52 
GeneralRe: Database does not have a valid owner Pin
Gary Heath31-Jan-12 1:58
Gary Heath31-Jan-12 1:58 
QuestionDatabase diagram in system databases Pin
Neelesh_Rmsi24-Jan-12 1:13
Neelesh_Rmsi24-Jan-12 1:13 
AnswerRe: Database diagram in system databases Pin
Eddy Vluggen24-Jan-12 5:19
professionalEddy Vluggen24-Jan-12 5:19 
AnswerRe: Database diagram in system databases Pin
SilimSayo25-Jan-12 7:41
SilimSayo25-Jan-12 7:41 
QuestionProcedure timing out, yet... Pin
Distind23-Jan-12 8:12
Distind23-Jan-12 8:12 
AnswerRe: Procedure timing out, yet... Pin
Jörgen Andersson23-Jan-12 11:20
professionalJörgen Andersson23-Jan-12 11:20 
AnswerRe: Procedure timing out, yet... Pin
Shameel23-Jan-12 16:24
professionalShameel23-Jan-12 16:24 
AnswerDeadlock ? Pin
David Mujica24-Jan-12 5:04
David Mujica24-Jan-12 5:04 
AnswerRe: Procedure timing out, yet... Pin
SilimSayo25-Jan-12 9:53
SilimSayo25-Jan-12 9:53 
AnswerRe: Procedure timing out, yet... Pin
goulimanju26-Jan-12 2:59
goulimanju26-Jan-12 2:59 
QuestionNull handling oddity Pin
thrakazog20-Jan-12 12:05
thrakazog20-Jan-12 12:05 
AnswerRe: Null handling oddity Pin
Chris Meech20-Jan-12 13:42
Chris Meech20-Jan-12 13:42 
AnswerRe: Null handling oddity Pin
PIEBALDconsult20-Jan-12 15:29
mvePIEBALDconsult20-Jan-12 15:29 
GeneralRe: Null handling oddity Pin
thrakazog23-Jan-12 8:14
thrakazog23-Jan-12 8:14 
AnswerRe: Null handling oddity Pin
Jörgen Andersson21-Jan-12 1:37
professionalJörgen Andersson21-Jan-12 1:37 
AnswerRe: Null handling oddity Pin
Corporal Agarn23-Jan-12 5:09
professionalCorporal Agarn23-Jan-12 5:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.