Solved

When using SQL Server 2012 as a warehouse, "unknown type" is displayed for columns

Posted on 2014-10-14
18
151 Views
Last Modified: 2014-10-21
I was provided access to the datawarehouse in SQL Server 2012, when i connect I see that most of the data types for columns in the table shown as "unknown type" . Does any one know why?

Is there any difference between Datawarehouse and regular ms sql sdatabase?
0
Comment
Question by:maximyshka
  • 6
  • 5
  • 5
  • +1
18 Comments
 
LVL 32

Accepted Solution

by:
ste5an earned 500 total points
ID: 40381641
Please rephrase "access to the datawarehouse in SQL Server 2012". What means access? What tool do you use to connect to?

The only thing, I can imagine: your're using a tool which tries to access some meta-data views and you don't have the necessary permissions to use them.
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 40381736
try to use Sql server Management studio  (SSMS)  to see tables structure \datatypes ..

Difference between Data Warehouse and Database
/ from http://www.differencebetween.info/difference-between-data-warehouse-and-database /
"Key difference: A data warehouse is a database used to store data. It is a central repository of data in which data from various sources is stored. The data warehouse is then used for reporting and data analysis. A database, on the other hand, is the basis or any data storage. It is an organized collection of data. A database is used to store data while a data warehouse is mostly used to facilitate reporting and analysis."
0
 

Author Comment

by:maximyshka
ID: 40381879
I use ssms, however it shows "uknown type"
I need to connect to data from access,  and i can't because data type for some fields shown as unknown.
0
 
LVL 32

Expert Comment

by:ste5an
ID: 40381938
Please post a screen shot.
0
 

Author Comment

by:maximyshka
ID: 40382249
below please find image , i put distortion on field names.
0
 
LVL 51

Expert Comment

by:Mark Wills
ID: 40382883
image wasn't attached...

but there may well be a big difference. It you are talking about a datawarehouse as being part of Analysis Services, then you will need SSDT Sql Server Data Tools. It essentially replaces BIDS in 12 and 14 and normally accessed via VS

Check out some tutorials on : http://msdn.microsoft.com/en-us/library/hh231701(v=sql.110).aspx
And the team blog on : http://msdn.microsoft.com/en-au/data/tools.aspx

If on the other hand it is a traditional datawarehouse - being essentially a database with tables, then the only reason that I can think of is it is a linked server and/or connected via an odbc style connection.

Would help to see that image, and also how you connect via SSMS.
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 40383360
make sure it is SSMS 2012
0
 

Author Comment

by:maximyshka
ID: 40392352
We figutred out the reason why we had uknown data types. There are user defined dat types and account didn't have permissions to those.
Thanks for the help.
0
 

Author Comment

by:maximyshka
ID: 40394280
I've requested that this question be closed as follows:

Accepted answer: 0 points for maximyshka's comment #a40392352

for the following reason:

Although there are some answers which may cause similar probllem, the cause for my problem was in permissioning
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 51

Expert Comment

by:Mark Wills
ID: 40393793
IF user defined data element, then could be an Alias, but, if user defined data types created by using "CREATE ASSEMBLY ..." and/or whenever assembly-name is speccified, then yes, needs REFERENCES permission.
 
Would have helped us if you had that image, and probably would have helped clarifying the meaning of "DATAWAREHOUSE" (ie by seeing your desktop / ssms connection, we could determine if it was a database).

Good to hear that you were able to solve the problem...
0
 
LVL 32

Expert Comment

by:ste5an
ID: 40393834
So my guess was correct..
0
 
LVL 51

Expert Comment

by:Mark Wills
ID: 40394219
*laughing* nearly, but no cigar :)

Your inference / guess wasn't specific to (nor implied) user defined datatypes, but a more open and generic comment about maybe permissions to do with meta data views through the use of "some tool", indeed asking "what tool".

The obvious problem (with your guess) is we were told that SSMS was clearly being used as the (connection) tool to try to view the data types...

Had you expanded a little more on your "guess", had we seen the asked for image, then there might be more substance that you could have offered.

I did find it a little strange that a site dealing with user defined data types (using assembly-names) would not have automatically granted "REFERENCES" permission to everyone having access to that data...
0
 

Author Comment

by:maximyshka
ID: 40394289
@ste5en yes i did not realized that you wrote it . Gave you the credit.
some reason i had difficulty uploading files .thanks every one for help.
0
 
LVL 51

Expert Comment

by:Mark Wills
ID: 40394366
Actually, I slightly disagree that ste5en got the right answer...

Permissions is a fairly safe "guess" in sql server, but there was information provided (such as using SSMS) that was not part of the guess (citing "some tools" and "metadata views" asking "what tool").

And a guess does not make it a correct answer. See my previous comment.

But, it is your question and your prerogative... And no problems with that privilege.

And no problem with ste5en either, just more a recognition that he "snagged" an answer more so than making the right guess.
0
 
LVL 32

Expert Comment

by:ste5an
ID: 40394375
Come on Mark ;) It's a pretty good guess. Just consider the absence of information in the original post..

btw, I like Carpenter's The Fog =:)
0
 

Author Comment

by:maximyshka
ID: 40394401
Mark, SSMS was actually suggested and i just said that i use it. I could not upload image some reason. It didn't work. We have difficult Admin, so the way we checked is some on logged in with admin credentials and it worked.
0
 
LVL 51

Expert Comment

by:Mark Wills
ID: 40394512
Alas... Admin types almost imply a right to be difficult :)

Yes, I did see that SSMS was specified in your post, and generally a great tool to use.

Becoming part of the sysadmin group will solve most SQL type permission issues, and always a good litmus test.

I am not wanting to point the finger at anyone... Indeed Stefan is a Microsoft MVP for SQL Server and as such earns a great deal of respect (especially from me).

The reason for my follow up was not as an objection, more so and mainly for any body else coming along with a similar problem so they can see a more comprehensive discussion.

And in being a MVP, Stefan is also aware of the precision associated with the "guess" especially when part of the thrust of his guess was asking "what tool". And, is probably the next question to be posed, being access from Access.

Speaking of which, when you access via Access, you might still have some issues and might need to manipulate : http://technet.microsoft.com/en-us/library/ms131694(v=sql.110).aspx

I happen to believe that your answer was the correct answer, and Stefan ably assisted by the mention of permissions.

But no harm, no foul and I am truly happy that you did get your answer.

Apologies for causing any undue concern.
0
 
LVL 32

Expert Comment

by:ste5an
ID: 40394743
@Mark, you're welcome :)

And for Salomos sake: I wasn't after the points in this case. The community here would really benefit from an acurate description of the problem and the solution (attachements included ;).

btw, I still need to guess: It should be sufficient to grant VIEW ANY DEFINITION to that user. When it's about INFORMATION_SCHEMA then the user needs the appropriate access to the objects.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Dynamics crm 2011 8 44
SQL JOIN 6 32
SQL Inner Join Vs SubQueries 9 24
Split Data in 1 column into 2 columns 8 4
I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now