Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Database describing databases and references to tables


Database describing databases and references to tables

Author
Message
gbfv
gbfv
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 5
Hello, I asked a question at dba.stackexchange.com here, that's not getting a lot of interest. Now that it has fallen out of the first page I fear there's no hope of getting an answer, if there's someone that can help here I would appreciate a lot.
I don't know how these things work, if you think it's better to answer on the other site do so, if you want to answer here you're welcome.

If you don't understand something please tell me.

P.S. I asked it there because there seemed to be more activity and I needed an answer quickly, I hope no one feel offended :-)
Grant Fritchey
Grant Fritchey
SSCoach
SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)

Group: General Forum Members
Points: 17609 Visits: 32267
I'll be perfectly honest, I don't understand most of what you're trying to describe.

From the description, you've wondered extremely far afield of traditional relational storage. As soon as you start doing this, you will run into trouble. I can't be sure from your description, but, guessing here, maybe SQL Server is not the way to go. Maybe you would better off with something like MongoDB (which uses ID/Value pairs for just about everything). Storage on a system like that is great, but for reporting you have to go back to coming up with an actual structured storage system with good relationships on the table.

SQL Server is a relational storage engine. That has a series of rules predicated around the concept of some type of primary key that is used to create relationships to other tables through referential constraints, called foreign keys. It's just not designed to store referential information as data from which you can then join tables. It doesn't work well.

If you have to do something like that because you're dealing with an existing, problematic, design, then your best bet is to pull the data from tables and generate ad hoc t-sql that you can then execute using sp_executesql.

Hopefully this helps a little.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
PaulB-TheOneAndOnly
PaulB-TheOneAndOnly
Hall of Fame
Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)

Group: General Forum Members
Points: 3093 Visits: 4639
gbfv (3/4/2013)
Hello, I asked a question at dba.stackexchange.com here, that's not getting a lot of interest. Now that it has fallen out of the first page I fear there's no hope of getting an answer, if there's someone that can help here I would appreciate a lot.
I don't know how these things work, if you think it's better to answer on the other site do so, if you want to answer here you're welcome.

If you don't understand something please tell me.

P.S. I asked it there because there seemed to be more activity and I needed an answer quickly, I hope no one feel offended :-)


If you need an answer quickly - how about simplifying the life of the people volunteering time in this forum and copy/paste your question here? Some people may think that if the poster does not bothers in publishing the question in this forum why in the world would they bother in looking for it in a different place - like myself Smile

_____________________________________
Pablo (Paul) Berzukov

Author of Understanding Database Administration available at Amazon and other bookstores.

Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search