Showing posts with label diagram. Show all posts
Showing posts with label diagram. Show all posts

Tuesday, March 27, 2012

Cant get diagrams to work in SQL Management Studio

I can't get diagrams to work in SQL Management Studio. When I try to open that folder in the object browser, I get:
"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."
That's great, but what exactly constitutes a "valid login" and who or what is it supposed to be?
If you follow the first set of steps, click the button with theellipsis next to the owner textbox, and you'll get a list of validlogins that you can choose an owner from. Then save it, andyou should be ready to go.
|||But other than myself (the one it's already set to), there are no otheraccounts other than system accounts. How is me being an owner not goodenough?
|||Huh. Well, if you go to the Security node for your SQL Serverinstance, and look at the Logins, is your account in there? If itis, and you're still getting the error, you might try changing the DBowner to another account, save it, and then change it back toyourself.
|||Tried all of the above. No joy. I am the owner, or so it says.
This is seriously annoying, and in true MS documentation fashion, the docs are not helpful.
|||Was this database by any chance restored from another machine? Maybe a machine on another domain? Or have there been changes tothe domain since the database was created? That's the last thingthat I can think of...That even though the account *looks* to be thesame on the surface, that underneath, it's got a different SID than theaccount that's been granted access to the SQL Server instance. Ifthat's the case, then the remedy would be to delete your accountentirely from list of the database's users, and then re-add it. If that's not the solution, hopefully someone else will have a tip,'cause I'm out of ideas.
|||The database was upgraded from the old 2000 Dev Edition to the 2005 DevEdition. I ended up scripting the database, nuking it, and recreatingit since there was nothing critical about the actual data. All is wellnow. It was still annoying. :)
|||

Solution, you need to go:

Properties of your database
Options
Compatibility level and here select SQL Server 2005
Click OK
Go to Database Diagrams and it will ask you if you want to create it , put yes and you will get your diagrams.
Hope it helps.
Sorry for my english im from Argentine.

|||I think it had to do with the compatibility level. I had the same with a restored 2000 database on 2005. Couldn't access the diagrams. But after setting the compatibility level (properties of database then the options page) to SQL Server 2005 (90), I was able to access them. (some didn't work though)
gr Rc

can't get diagram pane to show in query analyzer (sql 2000)

I'm trying to use SQL query analyzer and I can't get the diagram pane to show
or the grid pane.
Kaz,
Is this a table? Does this happen for other tables? How about a new table?
Do you have permissions to the table?
"kaz via droptable.com" <u14299@.uwe> wrote in message
news:54f5768b18eb0@.uwe...
> I'm trying to use SQL query analyzer and I can't get the diagram pane to
> show
> or the grid pane.
|||I go into query analyzer from start - programs - Microsoft SQL Server -
query analyzer and connect to the database to start a new query.
If I go into Enterprise manager and go to open a table using Query I get all
4 panes -Diagram,Grid,SQL, and the Results pan.
Jerry Spivey wrote:[vbcol=seagreen]
>Kaz,
>Is this a table? Does this happen for other tables? How about a new table?
>Do you have permissions to the table?
|||Steve,
If I undestand you correctly...that functionality is only available via EM
and not QA.
HTH
Jerry
"Steve Kasprzak via droptable.com" <u14299@.uwe> wrote in message
news:54f5af2c3c87c@.uwe...[vbcol=seagreen]
>I go into query analyzer from start - programs - Microsoft SQL Server -
> query analyzer and connect to the database to start a new query.
> If I go into Enterprise manager and go to open a table using Query I get
> all
> 4 panes -Diagram,Grid,SQL, and the Results pan.
> Jerry Spivey wrote:
|||Yes.

can't get diagram pane to show in query analyzer (sql 2000)

I'm trying to use SQL query analyzer and I can't get the diagram pane to sho
w
or the grid pane.Kaz,
Is this a table? Does this happen for other tables? How about a new table?
Do you have permissions to the table?
"kaz via droptable.com" <u14299@.uwe> wrote in message
news:54f5768b18eb0@.uwe...
> I'm trying to use SQL query analyzer and I can't get the diagram pane to
> show
> or the grid pane.|||I go into query analyzer from start - programs - Microsoft SQL Server -
query analyzer and connect to the database to start a new query.
If I go into Enterprise manager and go to open a table using Query I get all
4 panes -Diagram,Grid,SQL, and the Results pan.
Jerry Spivey wrote:[vbcol=seagreen]
>Kaz,
>Is this a table? Does this happen for other tables? How about a new table
?
>Do you have permissions to the table?|||Steve,
If I undestand you correctly...that functionality is only available via EM
and not QA.
HTH
Jerry
"Steve Kasprzak via droptable.com" <u14299@.uwe> wrote in message
news:54f5af2c3c87c@.uwe...[vbcol=seagreen]
>I go into query analyzer from start - programs - Microsoft SQL Server -
> query analyzer and connect to the database to start a new query.
> If I go into Enterprise manager and go to open a table using Query I get
> all
> 4 panes -Diagram,Grid,SQL, and the Results pan.
> Jerry Spivey wrote:|||Yes.

can't get diagram pane to show in query analyzer (sql 2000)

I'm trying to use SQL query analyzer and I can't get the diagram pane to show
or the grid pane.Kaz,
Is this a table? Does this happen for other tables? How about a new table?
Do you have permissions to the table?
"kaz via SQLMonster.com" <u14299@.uwe> wrote in message
news:54f5768b18eb0@.uwe...
> I'm trying to use SQL query analyzer and I can't get the diagram pane to
> show
> or the grid pane.|||I go into query analyzer from start - programs - Microsoft SQL Server -
query analyzer and connect to the database to start a new query.
If I go into Enterprise manager and go to open a table using Query I get all
4 panes -Diagram,Grid,SQL, and the Results pan.
Jerry Spivey wrote:
>Kaz,
>Is this a table? Does this happen for other tables? How about a new table?
>Do you have permissions to the table?
>> I'm trying to use SQL query analyzer and I can't get the diagram pane to
>> show
>> or the grid pane.|||Steve,
If I undestand you correctly...that functionality is only available via EM
and not QA.
HTH
Jerry
"Steve Kasprzak via SQLMonster.com" <u14299@.uwe> wrote in message
news:54f5af2c3c87c@.uwe...
>I go into query analyzer from start - programs - Microsoft SQL Server -
> query analyzer and connect to the database to start a new query.
> If I go into Enterprise manager and go to open a table using Query I get
> all
> 4 panes -Diagram,Grid,SQL, and the Results pan.
> Jerry Spivey wrote:
>>Kaz,
>>Is this a table? Does this happen for other tables? How about a new
>>table?
>>Do you have permissions to the table?
>> I'm trying to use SQL query analyzer and I can't get the diagram pane to
>> show
>> or the grid pane.|||Yes.

Thursday, March 22, 2012

Cant find diagram property

Hi,

i set up an diagram with crystal reports and Visual Basic 2005.
Everythink works fine, but I got in trouble with a font size property of the so called "datalabel". I did not find the property where I can set the fontsize to a smaller one. To demonstrate my problem I attached a picture with the meant label surrounded.

Can anybody help me?Ok, I asked the supprt of crystal. It is not possible with the visual studio integrated version, you have to update to XI :(

Wednesday, March 7, 2012

Cant create diagram of exiting database

SQL server 2005. The database is the SSK database (Shareware application
sample supplied by microsoft) I try to diagram the database and I get an
error message as soon as I click on Diagrams. It says Database support
diagram objects can not be instralled because this database does not have a
valid Owner. To continue first use the files page of the database properties
dialog or ALTER AUTHORIZATION statement to set the database owner to a valid
login, then add database diagram support objects.
I did go in the files page of the database properties dialog and set the
owner to either my current login Mydomain\Myname or to sa. It accepts the
change but it does not make a difference, I keep getting the same message
when I try to use the diagrams on this database. Any other database on this
server, diagrams work fine. Any help in resolving this issue would be
greatly appreciated.
BobYou need to change the compatability level of the database to 90 in order
for diagrams to work.
EXEC sp_dbcmptlevel 'database name', '90'
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Bob" <bdufour@.sgiims.com> wrote in message
news:%23jNEG2CAGHA.1676@.TK2MSFTNGP09.phx.gbl...
> SQL server 2005. The database is the SSK database (Shareware application
> sample supplied by microsoft) I try to diagram the database and I get an
> error message as soon as I click on Diagrams. It says Database support
> diagram objects can not be instralled because this database does not have
> a valid Owner. To continue first use the files page of the database
> properties dialog or ALTER AUTHORIZATION statement to set the database
> owner to a valid login, then add database diagram support objects.
> I did go in the files page of the database properties dialog and set the
> owner to either my current login Mydomain\Myname or to sa. It accepts the
> change but it does not make a difference, I keep getting the same message
> when I try to use the diagrams on this database. Any other database on
> this server, diagrams work fine. Any help in resolving this issue would be
> greatly appreciated.
> Bob
>|||Thanks A LOT, never would have found it by my little old self.
Bob
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:eeUvhJDAGHA.3692@.TK2MSFTNGP10.phx.gbl...
> You need to change the compatability level of the database to 90 in order
> for diagrams to work.
> EXEC sp_dbcmptlevel 'database name', '90'
> --
> HTH
>
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "Bob" <bdufour@.sgiims.com> wrote in message
> news:%23jNEG2CAGHA.1676@.TK2MSFTNGP09.phx.gbl...
>

can't create db diagram - 2

i assume that i've got some kind of restrictions here. I can't create diagrams, i don't even have a place to start from. When i right click on "Database diagrams" i get only "working with SQL 2000 diagrams" and "Refresh". No "New".

So my real question is - probably nobody can fix that, i just have to have an idea why it's happening. What kind of restrictions it can be. This way I can be reasonably tough with our admin :)

p.s. oh yeah, i have a SQL 2005 server management studio open.

Are you hitting a SQL Server 2000 server from 2K5 tools or the other way around? They are a bit different.

If you are using 2K5, make sure the database is set to the 9.0 compatibility level. It might be set to 8.0 if you brought it over from SQL Server 2K.

There's more here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vdbref/html/dvhowcreatingdatabasediagram.asp

|||

Buck Woody - MSFT wrote:

Are you hitting a SQL Server 2000 server from 2K5 tools or the other way around? They are a bit different.

If you are using 2K5, make sure the database is set to the 9.0 compatibility level. It might be set to 8.0 if you brought it over from SQL Server 2K.

There's more here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vdbref/html/dvhowcreatingdatabasediagram.asp


other way around MS Server 2000 (data) from MS Server Management Studio

and yes, it sits on 80 - Thanks! I'll do changing right now.

Can't Create Database Diagram Support Objects

I recently moved a database from SQL Server 2000 to 2005. Now when I try to
create a diagram I get the following error:
========================= Database diagram support objects cannot be installed because this database
does not have a valid owner. To continure, 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.
=========================
The database owner is 'sa'. I thought it might be a problem with an orphaned
user, but EXEC sp_change_users_login 'Update_One', 'sa', 'sa'; doesn't work
for 'sa'.
What can I do to resolve this problem?On Aug 29, 12:54 pm, Dan <dantheri...@.newsgroup.nospam> wrote:
> I recently moved a database from SQL Server 2000 to 2005. Now when I try to
> create a diagram I get the following error:
> =========================> Database diagram support objects cannot be installed because this database
> does not have a valid owner. To continure, 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.
> =========================> The database owner is 'sa'. I thought it might be a problem with an orphaned
> user, but EXEC sp_change_users_login 'Update_One', 'sa', 'sa'; doesn't work
> for 'sa'.
> What can I do to resolve this problem?
I seem to remember having the same issue and I could be wrong but:
Right click on the database, Properties, Options and set the
Compatibility Mode to SQL Server 2005 (90) and see if that works for
you.
There are implications of doing this, such as old SQL server syntax
will no longer be supported, so you will want to fully examine the
compatibilty of your database to SQL 2005 before doing this in your
production environment.|||Hi Dan,
This is a known issue. You can resolve it via:
Change the database compatibility level to 2005, install database diagram
support, and then return the database to the desired database compatibility
level.
For more information, please refer to the section 4.8.1 in this KB article:
SQL Server 2005 Readme and installation requirements
http://support.microsoft.com/default.aspx?scid=kb;EN-US;910228
Hope this helps. Please feel free to let us know if you have any other
questions or concerns. Have a good day!
Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================|||Hi,
I am interested in this issue. Would you mind letting me know the result of
the suggestions? If you need further assistance, feel free to let me know.
Have a good day!
Best regards,
Charles Wang
Microsoft Online Community Support
======================================================When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================