Showing posts with label folder. Show all posts
Showing posts with label folder. 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

Thursday, March 22, 2012

Can't find Folders that I hid in List View

To all,

I checked the box "hide in list view" for a particular folder under the folder properties. Does anybody know how I get my folder back in the list view again? I cannot seem to find any information pertaining to "unhiding" a folder that was hidden.

Thank you,

blyonsd

In Report Manager, get to a level one above the Folder (where you would have seen it if not hidden ...). Click Show Details on the upper right bar. When the folder appears in the list, re-enter it, go to the Properties tab, and uncheck Hide in list view. Apply, and it should re-appear with Details Hidden ...

Good Luck.

Bill

William E. Pearson III
CPA, CMA, CIA, MCSE, MCDBA
Island Technologies Inc.
931 Monroe Drive
Suite 102-321
Atlanta, GA 30308

404.872.5972 Office

wep3@.islandtechnologies.com

wep3@.reporting-services-architect.com
www.reporting-services-architect.com
-- -- --

Publisher Sites:

http://www.databasejournal.com/article.php/1459531

http://www.sql-server-performance.com/bill_pearson.asp

http://www.informit.com/authors/bio.asp?a=862acd62-4662-49ae-879d-541c8b4d656f

http://www.2000trainers.com/section.aspx?sectionID=17

|||Thank you very much for your help!! It worked like a charm.

Can't find answer to this anywhere

A fairly straightforward question:
When using rs.CreateFolder to create a folder, is it possible to set the
"Inherit security from parent" property to false? How would I do this. What
is the property called? I have tried "InheritSecurity" but that did not
work...On Mon, 18 Apr 2005 03:57:27 -0700, "DBA72"
<DBA72@.discussions.microsoft.com> wrote:
>A fairly straightforward question:
>When using rs.CreateFolder to create a folder, is it possible to set the
>"Inherit security from parent" property to false? How would I do this. What
>is the property called? I have tried "InheritSecurity" but that did not
>work...
You might want to look at UpdateDeleteAuthorizationPolicy. I don't
know of any example syntax to go beyond what is in BOL, which isn't
much.
Andrew Watt
MVP - InfoPathsql

Monday, March 19, 2012

Can't determine which database is updated

Can't determine which database is updated

I have a microsoft database in my project. Versions of it are in debug, release, and the folder with all the forms and other files.

I have the compile properties set to release.

If I run the project from visual studio, the debug copy is updated.

If I run by double-clicking the release version, the release copy is updated.

If I add or change a table, the configure dataset with wizard won't recognize it unless I use the copy with all the forms85 and other files.

How do I resolve this?

dennist685

Hi,

During development it is good to compile your application with the configuration set for Debug. In that case, it will always use the MDB file within the debug folder.
As for the Configure Dataset, you need to check the Data Connection in Server Explorer and change that path as well to Debug folder.

Regards,
Vikram|||I have two of the same mdb's. One to the debug, and one without any path at all, just Hasbara.
dennist685

Friday, February 10, 2012

Can't Connect or see databases

I am having problem connecting to a database using EM or Query analyzer. Bot
h
applications start up fine. When I click on the database folder to expand it
in EM or the drop down in Query Analyzer, both applications hangs and nothin
g
happens. The SQL services started fine. Please help.
EmmaI just realized that I am only having problem connecting to one particular
db. I can connect to the other db on the server use the USE command in Query
Analyzer. When I try to connect to the offending database, QA just hangs
stating that it is executing query batch...
Any idea how I can correct this problem? The log file for the offending db
is full and I am trying to shrink it using dbcc.
Thenks
Emma
"Emma" wrote:

> I am having problem connecting to a database using EM or Query analyzer. B
oth
> applications start up fine. When I click on the database folder to expand
it
> in EM or the drop down in Query Analyzer, both applications hangs and noth
ing
> happens. The SQL services started fine. Please help.
> Emma
>|||Did you try backing up the log for the offending database
first? You can execute the statement from master.
-Sue
On Tue, 25 Jul 2006 06:59:02 -0700, Emma
<Emma@.discussions.microsoft.com> wrote:
[vbcol=seagreen]
>I just realized that I am only having problem connecting to one particular
>db. I can connect to the other db on the server use the USE command in Quer
y
>Analyzer. When I try to connect to the offending database, QA just hangs
>stating that it is executing query batch...
>Any idea how I can correct this problem? The log file for the offending db
>is full and I am trying to shrink it using dbcc.
>Thenks
>Emma
>"Emma" wrote:
>