Showing posts with label exist. Show all posts
Showing posts with label exist. Show all posts

Tuesday, March 27, 2012

Getting "Attribute relationships do not exist between one or more levels in this hierarchy&

Hello,

I have a cube that has been working just fine. When I opened it today all the hierarchies are showing the Warning ! in the triangle. When I move the cursor over it I get the message, "Attribute relationships do not exist between one or more levels in this hierarchy message."

I have been making changes to the fact table and reprocessing everything, but the processing goes fine.

I tried recreating the dimensions (with the wizards) and I still am getting these warnings. I have installed SP2, but it was working (I think) after I installed it.

Any ideas what could have caused this and what I can do to fix it?

Thank you.

-Gumbatman

Hello. You get this warning message when:

You have a user hierarchy(middle pane in the dimension editor) that is missing attribute relations between the levels in the hierarchy You have redundant attribute relations|||

Thomas,

I think I get what you are saying, but I don't think (could be very wrong) that I have redundant attributes.

The table below is the taken from my Time Dimension. Is there something I am doing wrong?

Row Date (Key) Fiscal Year Month Month Number Day Of Week Period Number 20031031 2004 October 10 Friday 1 20031130 2004 November 11 Sunday 2 20031231 2004 December 12 Wednesday 3 20040131 2004 January 1 Saturday 4 20040229 2004 February 2 Sunday 5 20040331 2004 March 3 Wednesday 6 20040430 2004 April 4 Friday 7 20040531 2004 May 5 Monday 8 20040630 2004 June 6 Wednesday 9 20040731 2004 July 7 Saturday 10 20040831 2004 August 8 Tuesday 11 20040930 2004 September 9 Thursday 12 20041031 2005 October 10 Sunday 1 20041130 2005 November 11 Tuesday 2 20041231 2005 December 12 Friday 3 20050131 2005 January 1 Monday 4 20050228 2005 February 2 Monday 5 20050331 2005 March 3 Thursday 6 20050430 2005 April 4 Saturday 7 20050531 2005 May 5 Tuesday 8 20050630 2005 June 6 Thursday 9 20050731 2005 July 7 Sunday 10 20050831 2005 August 8 Wednesday 11 20050930 2005 September 9 Friday 12

When I try and create a hierarchy of just Fiscal Year to Row Date, I get this attribute error.

I didn't get this error before on any of my dimensions, now all of them have this error. Even ones where the Dimension Wizard found the hierarchies. I don't know what changed.

Thank you for the help.

|||

Hello. Before SP2 you had a more obscure change of the icons to indicate if a user hierarchy was optimized with attribute relations or not. I think the icon was grey without attribute relations and blue(with level relations) if they were present.

This attribute relation is already present in the relation between the key and the Fiscal Year. This means that the warning message only means that you have an un-natural hierarchy. You are missing some levels between the year and the row date.

The user hierarchy you have created is already present in the attribute relation between the key and the Fiscal Year.

Your user hierarchy between Fiscal Year and the key is already present in the attribute hierarchy(the left pane).

HTH

Thomas Ivarsson

|||

Thomas,

I think it is getting clearer. Previously, the hierarchy I created was Fiscal Year, Period Number, English Month. Why is this an un-natural hierarchy? What are the levels that I am missing in between?

On a different note, when I tried to add that hierarchy to a report (even by adding one-by-one instead of the Hierarchy itself) the report gave me an error that it could not create it because of the hierarchy was something not right (I will look it up).

Again, thank you so much for your help.

|||

It is not an un-natural hierarchy between Fiscal Year and (Fiscal) Period Number.

You have a collection key (two attributes) on the Period Number because it is not unique over several years?

English Month is the name column(property) on the Period Number column.

It is not part of the attribute relationship problem so do not build a relationship on this.

HTH

Thomas Ivarsson

|||

I don't have a collection key on the Period Number. I just tried doing this, and then creating the hierarchy, but no luck.

I did this by going into the KeyColumns property of Period Number. I added FiscalYear as a Key, so I have both PeriodNumber and FiscalYear as a collection, but I still get the warning about the relationship between PeriodNumber and Fiscal Year.

I really appreciate all the help.

|||

I think that you do not have to create a user hierarchy.

You already have this relation between PeriodNumber and Fiscal Year(in the left pane of the dimension editor) without having to create the same thing in the middle pane of the dimension editor.

Remove the middle pane user hierarchy for Fiscal Year and Period Number.

HTH

Thomas Ivarsson

|||

Thomas,

I think I am getting better at figuring this out with all your help of course.

If I understand you correctly, you say that "You already have this relation between PeriodNumber and Fiscal Year(in the left pane of the dimension editor) without having to create the same thing in the middle pane of the dimension editor." Is that because of what I have just set up with the Composite Keys and moving the PeriodNumber under the FiscalYear in the Attributes pane on the left?

Now when I browse the cube and put the Fiscal Year in the Columns is shows up with 12 versions of each Fiscal Year. Then I need to place the PeriodNumber in the Columns and then it shows the 12 versions of each Fiscal Year, but now it has the plus on it so I can open it up and see the PeriodNumber. I think I see what is happening, but I liked being able to place a whole hierarchy in the browser. While my seeing it is not terribly important, why does this occur? Will it matter when I do reporting?

Also, why create a Hierarchy in the middle pane when I sort of do the same thing with the attributes?

Thank you.

|||

All attributes in the dimension have a default attribute relation to the dimension key, which you can see in the left pane and if you expand the dimension key in this pane.

This is the fact even if you have no user hierarchies in the middle pane.

When you build user hierarchies in the middle pane you add attribute relations between the levels in this user hierarchy.

So PeriodNumber(The dimension key) have already a relation to Fiscal Year before you build the same relation with a user hierarchy.

If you get a warning message on the user hierarchy, which is strange because of the existing default attribute relation, you can probably ignore it.

This message only means that the user hierarchy is not optimized.

Composite keys and attribute relations are not the same. Attribute relations is about optimization of cubes and dimensions and composite keys makes each attribute unique.

HTH

Thomas Ivarsson

|||

Thomas,

I can't begin to thank you enough for the time and effort you put into answering my questions. You've been amazingly helpful and I never would have figured all of this out by myself.

Thank you!

-Gumbatman

Monday, March 26, 2012

Getting "SQL Server does not exist or access denied" error messages

For some reason, this week we started to get "SQL Server does not exist or
access denied" error messages when attempting to connect to our SQL Server
databases. This only affects people who dial into our network. But this
seems to be a rather complicated situation, so let me explain.
We have a couple of VB6 applications we've written. People log into our
network and get authenticated on our network (username, password and domain
must be specified). We have a test server with SQL Server 2000 installed.
The test server is a Windows 2000 Server. The production server has SQL
Server 2000 installed also, but it is a Windows 2003 Server. I have found,
for example, that I can define an ODBC DSN to the test database and retrieve
data just fine, but I can NOT do the same thing to the production database
on the production server. However, our users were able to do so up until
Tuesday of this week. The only thing I can think of which has changed is I
applied the 5 critical updates that Microsoft related Tuesday/Wednesday on
the DHCP server. But the DHCP server is not either the production or test
database servers, so I have no idea why that should make any difference at
all.
Does anyone have any idea why this problem is now showing up?
Rod
Hi Rod,
If this is was fine before, then I would suspect that it is an issue related
to the security. Usually this error happens when client does not have
permissions to connect to the SQL Server. Could be that last changes in a
fixes were related to the security issues. Do you know which patches were
installed exactly. If yes, then you could check KB articles for them to see
if installation of them does not change any security settings.
Val Mazur
Microsoft MVP
"Rod" <Rod@.NO.SPAM> wrote in message
news:u05d8jpaEHA.4092@.TK2MSFTNGP11.phx.gbl...
> For some reason, this week we started to get "SQL Server does not exist or
> access denied" error messages when attempting to connect to our SQL Server
> databases. This only affects people who dial into our network. But this
> seems to be a rather complicated situation, so let me explain.
> We have a couple of VB6 applications we've written. People log into our
> network and get authenticated on our network (username, password and
> domain
> must be specified). We have a test server with SQL Server 2000 installed.
> The test server is a Windows 2000 Server. The production server has SQL
> Server 2000 installed also, but it is a Windows 2003 Server. I have found,
> for example, that I can define an ODBC DSN to the test database and
> retrieve
> data just fine, but I can NOT do the same thing to the production database
> on the production server. However, our users were able to do so up until
> Tuesday of this week. The only thing I can think of which has changed is I
> applied the 5 critical updates that Microsoft related Tuesday/Wednesday on
> the DHCP server. But the DHCP server is not either the production or test
> database servers, so I have no idea why that should make any difference at
> all.
> Does anyone have any idea why this problem is now showing up?
> Rod
>
>

Getting "SQL Server does not exist or access denied" error messages

For some reason, this week we started to get "SQL Server does not exist or
access denied" error messages when attempting to connect to our SQL Server
databases. This only affects people who dial into our network. But this
seems to be a rather complicated situation, so let me explain.
We have a couple of VB6 applications we've written. People log into our
network and get authenticated on our network (username, password and domain
must be specified). We have a test server with SQL Server 2000 installed.
The test server is a Windows 2000 Server. The production server has SQL
Server 2000 installed also, but it is a Windows 2003 Server. I have found,
for example, that I can define an ODBC DSN to the test database and retrieve
data just fine, but I can NOT do the same thing to the production database
on the production server. However, our users were able to do so up until
Tuesday of this week. The only thing I can think of which has changed is I
applied the 5 critical updates that Microsoft related Tuesday/Wednesday on
the DHCP server. But the DHCP server is not either the production or test
database servers, so I have no idea why that should make any difference at
all.
Does anyone have any idea why this problem is now showing up?
RodHi Rod,
If this is was fine before, then I would suspect that it is an issue related
to the security. Usually this error happens when client does not have
permissions to connect to the SQL Server. Could be that last changes in a
fixes were related to the security issues. Do you know which patches were
installed exactly. If yes, then you could check KB articles for them to see
if installation of them does not change any security settings.
Val Mazur
Microsoft MVP
"Rod" <Rod@.NO.SPAM> wrote in message
news:u05d8jpaEHA.4092@.TK2MSFTNGP11.phx.gbl...
> For some reason, this week we started to get "SQL Server does not exist or
> access denied" error messages when attempting to connect to our SQL Server
> databases. This only affects people who dial into our network. But this
> seems to be a rather complicated situation, so let me explain.
> We have a couple of VB6 applications we've written. People log into our
> network and get authenticated on our network (username, password and
> domain
> must be specified). We have a test server with SQL Server 2000 installed.
> The test server is a Windows 2000 Server. The production server has SQL
> Server 2000 installed also, but it is a Windows 2003 Server. I have found,
> for example, that I can define an ODBC DSN to the test database and
> retrieve
> data just fine, but I can NOT do the same thing to the production database
> on the production server. However, our users were able to do so up until
> Tuesday of this week. The only thing I can think of which has changed is I
> applied the 5 critical updates that Microsoft related Tuesday/Wednesday on
> the DHCP server. But the DHCP server is not either the production or test
> database servers, so I have no idea why that should make any difference at
> all.
> Does anyone have any idea why this problem is now showing up?
> Rod
>
>

Getting "SQL Server does not exist or access denied" error messages

For some reason, this week we started to get "SQL Server does not exist or
access denied" error messages when attempting to connect to our SQL Server
databases. This only affects people who dial into our network. But this
seems to be a rather complicated situation, so let me explain.
We have a couple of VB6 applications we've written. People log into our
network and get authenticated on our network (username, password and domain
must be specified). We have a test server with SQL Server 2000 installed.
The test server is a Windows 2000 Server. The production server has SQL
Server 2000 installed also, but it is a Windows 2003 Server. I have found,
for example, that I can define an ODBC DSN to the test database and retrieve
data just fine, but I can NOT do the same thing to the production database
on the production server. However, our users were able to do so up until
Tuesday of this week. The only thing I can think of which has changed is I
applied the 5 critical updates that Microsoft related Tuesday/Wednesday on
the DHCP server. But the DHCP server is not either the production or test
database servers, so I have no idea why that should make any difference at
all.
Does anyone have any idea why this problem is now showing up?
Rod
Hi Rod,
If this is was fine before, then I would suspect that it is an issue related
to the security. Usually this error happens when client does not have
permissions to connect to the SQL Server. Could be that last changes in a
fixes were related to the security issues. Do you know which patches were
installed exactly. If yes, then you could check KB articles for them to see
if installation of them does not change any security settings.
Val Mazur
Microsoft MVP
"Rod" <Rod@.NO.SPAM> wrote in message
news:u05d8jpaEHA.4092@.TK2MSFTNGP11.phx.gbl...
> For some reason, this week we started to get "SQL Server does not exist or
> access denied" error messages when attempting to connect to our SQL Server
> databases. This only affects people who dial into our network. But this
> seems to be a rather complicated situation, so let me explain.
> We have a couple of VB6 applications we've written. People log into our
> network and get authenticated on our network (username, password and
> domain
> must be specified). We have a test server with SQL Server 2000 installed.
> The test server is a Windows 2000 Server. The production server has SQL
> Server 2000 installed also, but it is a Windows 2003 Server. I have found,
> for example, that I can define an ODBC DSN to the test database and
> retrieve
> data just fine, but I can NOT do the same thing to the production database
> on the production server. However, our users were able to do so up until
> Tuesday of this week. The only thing I can think of which has changed is I
> applied the 5 critical updates that Microsoft related Tuesday/Wednesday on
> the DHCP server. But the DHCP server is not either the production or test
> database servers, so I have no idea why that should make any difference at
> all.
> Does anyone have any idea why this problem is now showing up?
> Rod
>
>

Getting "SQL Server does not exist or access denied" error messages

For some reason, this week we started to get "SQL Server does not exist or
access denied" error messages when attempting to connect to our SQL Server
databases. This only affects people who dial into our network. But this
seems to be a rather complicated situation, so let me explain.
We have a couple of VB6 applications we've written. People log into our
network and get authenticated on our network (username, password and domain
must be specified). We have a test server with SQL Server 2000 installed.
The test server is a Windows 2000 Server. The production server has SQL
Server 2000 installed also, but it is a Windows 2003 Server. I have found,
for example, that I can define an ODBC DSN to the test database and retrieve
data just fine, but I can NOT do the same thing to the production database
on the production server. However, our users were able to do so up until
Tuesday of this week. The only thing I can think of which has changed is I
applied the 5 critical updates that Microsoft related Tuesday/Wednesday on
the DHCP server. But the DHCP server is not either the production or test
database servers, so I have no idea why that should make any difference at
all.
Does anyone have any idea why this problem is now showing up?
RodHi Rod,
If this is was fine before, then I would suspect that it is an issue related
to the security. Usually this error happens when client does not have
permissions to connect to the SQL Server. Could be that last changes in a
fixes were related to the security issues. Do you know which patches were
installed exactly. If yes, then you could check KB articles for them to see
if installation of them does not change any security settings.
--
Val Mazur
Microsoft MVP
"Rod" <Rod@.NO.SPAM> wrote in message
news:u05d8jpaEHA.4092@.TK2MSFTNGP11.phx.gbl...
> For some reason, this week we started to get "SQL Server does not exist or
> access denied" error messages when attempting to connect to our SQL Server
> databases. This only affects people who dial into our network. But this
> seems to be a rather complicated situation, so let me explain.
> We have a couple of VB6 applications we've written. People log into our
> network and get authenticated on our network (username, password and
> domain
> must be specified). We have a test server with SQL Server 2000 installed.
> The test server is a Windows 2000 Server. The production server has SQL
> Server 2000 installed also, but it is a Windows 2003 Server. I have found,
> for example, that I can define an ODBC DSN to the test database and
> retrieve
> data just fine, but I can NOT do the same thing to the production database
> on the production server. However, our users were able to do so up until
> Tuesday of this week. The only thing I can think of which has changed is I
> applied the 5 critical updates that Microsoft related Tuesday/Wednesday on
> the DHCP server. But the DHCP server is not either the production or test
> database servers, so I have no idea why that should make any difference at
> all.
> Does anyone have any idea why this problem is now showing up?
> Rod
>
>

Getting "SQL Server does not exist or access denied" error messages

For some reason, this week we started to get "SQL Server does not exist or
access denied" error messages when attempting to connect to our SQL Server
databases. This only affects people who dial into our network. But this
seems to be a rather complicated situation, so let me explain.
We have a couple of VB6 applications we've written. People log into our
network and get authenticated on our network (username, password and domain
must be specified). We have a test server with SQL Server 2000 installed.
The test server is a Windows 2000 Server. The production server has SQL
Server 2000 installed also, but it is a Windows 2003 Server. I have found,
for example, that I can define an ODBC DSN to the test database and retrieve
data just fine, but I can NOT do the same thing to the production database
on the production server. However, our users were able to do so up until
Tuesday of this week. The only thing I can think of which has changed is I
applied the 5 critical updates that Microsoft related Tuesday/Wednesday on
the DHCP server. But the DHCP server is not either the production or test
database servers, so I have no idea why that should make any difference at
all.
Does anyone have any idea why this problem is now showing up?
RodHi Rod,
None of the recent updates would impact SQL or client connectivity
(MDAC).
What is the OS error when the ODBC DSN fails?
Is this only happening over a VPN or can you repro this locally as well?
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||Hi Rod,
If this is was fine before, then I would suspect that it is an issue related
to the security. Usually this error happens when client does not have
permissions to connect to the SQL Server. Could be that last changes in a
fixes were related to the security issues. Do you know which patches were
installed exactly. If yes, then you could check KB articles for them to see
if installation of them does not change any security settings.
Val Mazur
Microsoft MVP
"Rod" <Rod@.NO.SPAM> wrote in message
news:u05d8jpaEHA.4092@.TK2MSFTNGP11.phx.gbl...
> For some reason, this week we started to get "SQL Server does not exist or
> access denied" error messages when attempting to connect to our SQL Server
> databases. This only affects people who dial into our network. But this
> seems to be a rather complicated situation, so let me explain.
> We have a couple of VB6 applications we've written. People log into our
> network and get authenticated on our network (username, password and
> domain
> must be specified). We have a test server with SQL Server 2000 installed.
> The test server is a Windows 2000 Server. The production server has SQL
> Server 2000 installed also, but it is a Windows 2003 Server. I have found,
> for example, that I can define an ODBC DSN to the test database and
> retrieve
> data just fine, but I can NOT do the same thing to the production database
> on the production server. However, our users were able to do so up until
> Tuesday of this week. The only thing I can think of which has changed is I
> applied the 5 critical updates that Microsoft related Tuesday/Wednesday on
> the DHCP server. But the DHCP server is not either the production or test
> database servers, so I have no idea why that should make any difference at
> all.
> Does anyone have any idea why this problem is now showing up?
> Rod
>
>|||I am having a similar problem. i am not very experienced programmer and
wrote a program in vb.net which connected fine to my local copy of sql.
the db admin set up ODBC's for the remote servers and i got the same
error. i tried using odbc's on my local machine and fixing the
problem, but i can't for the life of me figure it out. When i test the
connection in the odbc setup,it connects great. i just cannot do it
via the program. I used the odbc connection string and put the
passwords and id in the string code before i try to open the
connection. very confused. any help would be greatly appreciated.
thanks
Chris
Val Mazur wrote:[vbcol=seagreen]
> *Hi Rod,
> If this is was fine before, then I would suspect that it is an issue
> related
> to the security. Usually this error happens when client does not
> have
> permissions to connect to the SQL Server. Could be that last changes
> in a
> fixes were related to the security issues. Do you know which patches
> were
> installed exactly. If yes, then you could check KB articles for them
> to see
> if installation of them does not change any security settings.
> --
> Val Mazur
> Microsoft MVP
>
> "Rod" <Rod@.NO.SPAM> wrote in message
> news:u05d8jpaEHA.4092@.TK2MSFTNGP11.phx.gbl...
> exist or
> Server
> this
> our
> and
> installed.
> SQL
> found,
> and
> database
> until
> changed is I
> Tuesday/Wednesday on
> or test
> difference at
ringo
---
Posted via http://www.mcse.ms
---
View this thread: http://www.mcse.ms/message862704.html|||So, if local connections work, but remote connections fail. I would
suggest making some network traces to verify that we're using the right
protocols and able to resolve the machine name.
run the following commands from a DOS prompt:
ipconfig /flushdns
ipconfig /registerdns
Then.
start Microsoft Network Monitor
Attempt a connection using your program.
stop Microsoft Network Monitor.
Review the trace.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||I believe I have found the problem. The user has Norton Internet Security
2003 (or 2004, I am not sure which) installed. Once I disabled that, I was
able to reach the server.
Rod
"Kevin McDonnell [MSFT]" <kevmc@.online.microsoft.com> wrote in message
news:AjXJoyAdEHA.3808@.cpmsftngxa10.phx.gbl...
> So, if local connections work, but remote connections fail. I would
> suggest making some network traces to verify that we're using the right
> protocols and able to resolve the machine name.
> run the following commands from a DOS prompt:
> ipconfig /flushdns
> ipconfig /registerdns
> Then.
> start Microsoft Network Monitor
> Attempt a connection using your program.
> stop Microsoft Network Monitor.
> Review the trace.
> Thanks,
> Kevin McDonnell
> Microsoft Corporation
> This posting is provided AS IS with no warranties, and confers no rights.
>
>|||Kevin , thanks for your response.
I may not have been as clear as i should have been. After the initial
failed attempt of putting the program onto a local computer with the DB
on a separate server, i tried to re-create the problem on my own
laptop. I have made an ODBC which calls the sql on my machine. My
theory is that this would recreate the same process as if it were on a
centralized server. I still get the SQL SERVER DOES NOT EXIST OR
ACCESS NOT DENIED. I don't get it tho. when i create the ODBC, it
tests successfully. Also, when i create a new connection string, and
choose ODBC driver and the correct odbc name (which appears, so it sees
the odbc list) IT also tests successfully. However, when i try to run
the program just opening the conn, it gives the error. I thought i had
fixed it becuase one odbc name i created happened to be the same name
as my local server, so it didnt' give the error, but im thinking it
didn't use the odbc, it just called the local server.
I did the ipconfig/ things you suggested. I am not familiar wiht
Microsoft Network Monitor. Should i continue with this possible
resolution?
thanks so much,
Chris
Kevin McDonnell [MSFT] wrote:
> *So, if local connections work, but remote connections fail. I
> would
> suggest making some network traces to verify that we're using the
> right
> protocols and able to resolve the machine name.
> run the following commands from a DOS prompt:
> ipconfig /flushdns
> ipconfig /registerdns
> Then.
> start Microsoft Network Monitor
> Attempt a connection using your program.
> stop Microsoft Network Monitor.
> Review the trace.
> Thanks,
> Kevin McDonnell
> Microsoft Corporation
> This posting is provided AS IS with no warranties, and confers no
> rights. *
ringo
---
Posted via http://www.mcse.ms
---
View this thread: http://www.mcse.ms/message862704.html|||Hi Ringo,
Unfortunately, you can't make network traces of local connections. Try
using ISQL.exe locally to see if it will generate the OS error for you.
Also check the HKLM\Software\Microsoft\MSSQLServer\Clie
nt\ConnectTo key:
the only entry should be DSQUERY set to DBNETLIB.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.sql