Database Design For 'Software On-Demand' Model

Jun 16, 2008

Hi there

We are thinking to create a small scale of the "Software On-Demand" model for Support Ticket Management System which means that the client can login to do a support tick and shared the application using the same URL.

Couple options though:
1) We design by table such has a SUPPORTS table with has a foreign key of the ClientID from CLIENTS table. This will cover that client can only can a specific data within the SUPPORTS table.
2) Alternatively, create a dynamic table which is created specifically for "Client B" for instance for SUPPORT table and it will be called such as ClientBSupport table. Something that can be common it will be shared such as like look-up table.

Couple consideration though:
1) Considered client wanting to backup this table. Obviosly it has too querying based on the client id to get the right data.
2) Security withing that table. Is the data needs to be incrypted ... I guess this is expensive excercise.
3) Possibly have a model that access to this table in querying directly etc etc.
4) If the Support table is getting larger and larger and it's not fair for small client accessing the small information which has equal to the one that has big records? Cause it's sharing table.

Any inputs I am really appreciated.

Thanks

View 3 Replies


ADVERTISEMENT

SQL 2012 :: Hybrid Model Database Design

May 14, 2015

I am using sql2012 se and we want to use couchbase to store some data as documents. So the database will be Hybrid(partly SQLServer and Partly couchbase). However the database is still in the design phase. What are the things that we should keep in mind when designing this database from a design perspective? Our database which was completely SQLServer based(RDBMS) was using GUIDs everywhere based off NEWID() and prime goal is to get rid of GUIDs for the most part.

View 6 Replies View Related

Database/Table Design Question - Object/Event Model

Dec 11, 2007

Hi,Facts:I created a database to support an application that tracks events ondifferent objects. The two main tables are tbl_Object andtbl_EventLog. Each table has unique ID and on the tbl_EventLog thereis FK for a record in the tbl_Object. The events are inserted all thetime for the same or different objects from the tbl_Object. There areabout 600,000 objects in the tbl_Object and 1,500,000 (and growing)events in tbl_EventLog.Question:The user often wants to know what the last event was for a specificobject.What is the best way of retrieving the last event?Should I simply do a max(eventdatetime) on a specific object? orShould I add a LastEventID column to tbl_Object and update it everytime a new event is inserted? or any other way to implement it?I chose the second method because I didn't think it made sense searchthe event table everytime the user wants to know the last event, but Iwanted to know what the experts thought.Please let me know what you think.Thank you,Oran Levin

View 5 Replies View Related

DB Design :: Database Backup In Case Of Multi Tenant Model

Oct 15, 2015

I have one database which is multi tenant, every table has tenant id  and every tenant is mapped with separate file group. Now can I achieve below  :?

1. Can I take the backup of only one tenant and restored in separate database?
2. Can I takeout the data of one tenant quickly?
3. Can I undo the data of a particular tenant  with 2 days older data without disturbing the other tenant ?

View 3 Replies View Related

Data Model Design For Query Performance

Apr 22, 2008

I have an opportunity to rebuild a database model with the express purpose of improving query performance. So given the following I have a few questions.

Table A (~500M records)
Primary Key Field (int)
Field 1 (varchar)
Field 2 (varchar)
Field 3 (varchar)
Field 4 (varchar)
Field 5 (varchar)

Table B (1B+ records)
Primary Key Field (int)
Foreign Key Field (int)
Field 1 (varchar)
Field 2 (varchar)
Field 3 (varchar)
Field 4 (varchar)
Field 5 (varchar)

* Assumed: Tables are inner joined on all queries. The database is readonly.

-- Most of my lookups are based on querying Field 1 of Table A. The data content of Field 1, Table A is 90% unique.
1) Would it be more beneficial to put the clustered index on Field 1 instead of the PK field in Table A?
2) Can an Identity column be non-clustered?
3) Alternatively, would it be beneficial to build a separate lookup table with just the PK & Field 1 of Table A, with a clustered index on the lookup table Field 1 which I join on Table A? (did that make sense?)

-- I have a secondary lookup that performs queries on Fields 1, 2, 3, 4 & 5 of Table B
1) Would it be more beneficial to create an additional indexed lookup column of the concantenated values of Fields 1-5 of Table B versus a covering index of all 5 columns?
2) Does a clustered index have to be unique?
3) Would a clustered index be more beneficial over Fields 1-5 or the special lookup column versus the PK or FK fields?
4) Would creating a special lookup table with just the requisite fields be more beneficial?

An extra question. The existing data model uses the CHAR datatype for all columns less than 9 characters wide and the columns are set to allow nulls. This requires every select statement to COALESCE() and RTRIM() all these columns. I intend to make all (affected) columns VARCHAR, NOT NULL with a default value of a 0-length string.
Will this enhance query performance?

Thanks in advance for any insight.

View 7 Replies View Related

DB Design :: Create Table On Given Data Model Diagram

Jul 27, 2015

I never created table on the basis of Data model diagram . I have to create the 3 table on the basis of given Data model diagram. There are 3 tables

1.md_geographyleveltype
2.md_geographylevel
3.md_geographylevelxref

I have tried to create 2 table but unable to create 3rd table.

CREATE TABLE [dbo].[md_geographylevel](
[type_key] [int] NOT NULL,
[geog_key] [int] NOT NULL,
[Type_description] [nvarchar](50) NULL,
[Store_flag] [nvarchar](10) NULL,
[Type_short_desciption] [nvarchar](50) NULL,

[Code] ....

I am getting difficulties to create table script for table

md_geographylevelxref

How to create the table create script for

md_geographylevelxref

View 2 Replies View Related

Retaining Fields For Multiple Models In Mining Model Prediction Tab Design View

Nov 29, 2006

I am using BI Dev Studio for SS2005 in a research (as opposed to a production) environment. Often I want to compare the results of multiple models using the same attributes. If I switch to a different model, the Design view completely resets. Is there any way to retain the same field names with different models in the Design view?

My current workaround is to give my models similar names with AR, DT, CL, LOG, NN suffixes and make global changes in the DMX.

I have consulted the following without finding an answer:
http://msdn2.microsoft.com/en-us/library/ms178445.aspx
http://msdn2.microsoft.com/en-us/library/ms175642.aspx
http://msdn2.microsoft.com/en-us/library/ms175678.aspx
http://msdn2.microsoft.com/en-us/library/ms175637.aspx

Thanks for your help,

Sam

View 3 Replies View Related

Report Model Deployment : The Model ID Of The Submitted Model Must Match That Of The

Dec 5, 2005

Running 2005 Beta 3 Refresh.  When I first deploy, it works fine. Subsequent deployments yield the following error:

View 9 Replies View Related

DB Design :: Database Design For Matrix Representation

May 13, 2015

I have a scenario like below

Product1
Product2 Product3
Product4 Product5
Product1 1
1 0 0
1
Product2 1
1 0 0
1
Product3 0
0 1 1
0
Product4 0
0 1 1
0
Product5 1
1 0 0
1

How to design tables in SQL Server for the above.

View 2 Replies View Related

Snapshot Replication On-demand

Aug 22, 2006

Hi,

I have got a snapshot replication and have got distributor, publisher and subscriber on different servers all having sql server 2005.

I am looking for a piece of code that i can execute in order to initialize snapshot with new data and push data to subscriber on demand.

I assume there are TSQL calling replication sproc but i m not sure which proc should be used. any help would be highly appriciated.

Thanks,

Furrukh Baig



View 6 Replies View Related

On Demand Push Delivery For The Reports

Jun 12, 2007

I have a report which is scheduled to run every monday morning and it generates PDF and writes it to a shared location. Shared location and schedule is defined through Subscription. All this is working fine so far. Now I need to provide a facility from the webpage to execute this scheduled task on demand. So there would be a button on the website which would actually run this scheduled task and update the PDF at the shared location. How do I run this scheduled task/subscription using the vb.net code. Is there anything in ReportService2005 or ReportExecution2005 webservice? Please advise.

Thanks

View 3 Replies View Related

On Demand SSIS Agent Job Updates

May 18, 2007

Afternoon all,



This should be brief, hopefully. Every morning all our SSIS updates run on a schedule(s) by SSMS Agent Jobs. Most of the time this is acceptable, however, during the month end accounting process it would be desirable for accounts to be able to run one of the jobs on demand.



Is there a way that this can be done without having to install and use SQL Server Management Studio on account machines? The potential damage that can be done, even inadvertently, with this utility is too great to even consider giving them this package.



Thanks in advance,



Paul

View 1 Replies View Related

Reports Choke When Running On Demand...

Oct 29, 2007

I have a report that runs perfectly well when scheduled, but when run on demand it seems to put a ridiculous load on the target database, sometimes to the point of virtually halting the server. Is there any reason it should behave differently when run on demand than when it's scheduled? Thanks.

J

View 1 Replies View Related

Send SRS Report By Email On Demand

Oct 2, 2007



I'm trying to find the best way to add ability to send a SRS report by email on-demand. My users want to access a reprot via the default SRS HTML viewer and click something to intitate an email. They would then supply an email address to receice the reprot.

The subscription option doesn't work because the receipents will not be getting reports on a regular basis.

I was thinking about adding an email link on a report that called a web service sending adequate information about the reprot (report name, parameters used, etc.)

Is there any sample code to have a web service render a report and send via email?

Is there a better way to accompolish this requirement?

Thanks,

View 2 Replies View Related

Database Design/query Design

Feb 13, 2002

Ok, I'm doing a football database for fixtures and stuff. The problem I am having is that in a fixture, there is both a home, and an away team. The tables as a result are something like this:

-------
Fixture
-------
fix_id
fix_date
fix_played

----
Team
----
tem_id
tem_name

-----------
TeamFixture
-----------
fix_id
tem_id
homeorawayteam
goals

It's not exactly like that, but you get the point. The question is, can I do a fixture query which results in one record per fixture, showing both teams details. The first in a hometeam field and the second in an away team field.

Fixture contains the details about the fixture like date and fixture id and has it been played

Team contains team info like team id, name, associated graphic

TeamFixture is the table which links the fixture to it's home and away team.

TeamFixture exists to prevent a many to many type relationship.

Make sense? Sorry if this turns out to be really easy, just can't get my head around it at the mo!

View 2 Replies View Related

Reporting Services :: How To Setup SSRS For On Demand Access And Fast Cache

Sep 22, 2015

I have a dashboard page that I would like to load fast. But I would also like the user to be able to run the report On-Demand. The report has start date and end date parameters which default to the first and last day of last month. If I use a Cache plan that loads at 6AM the report runs with the default parameters set in the report, the user has to wait until it completes before they can change the parameters.

If I uncheck "use default" parameters in the report I lose the ability to set a cache refresh plan with the default parameters because the option is greyed out. So is there anyway outside of creating a second copy of the report to allow a user to open a report, change the parameters and run it, but also have a way to schedule some sort of Cached report for the default parameters so I can put that on a WebPart page that would load instantly?

View 4 Replies View Related

How To Store A Complex Query Result Somewhere And Refresh It Hourly/daily/on Demand?

May 11, 2006

We have some reports run quite slow because the queries are complicate and tables are large. So we create a materialized view in Oracle which store the result from the query and refresh it occationally. How to do this in MSSQL? I try the indexed view but seems it has lots of restrictions, our query has sub queries and cross database table joins so can't use the indexed view. Any other object or temp table can be used to cache the report data and be accessed globally by other procedures?

Any suggestions are welcome,

Cheers

View 5 Replies View Related

Assigning Database Roles To Model Database Using T-SQL

Feb 19, 2008



Hi All

I have the following questions regrading T-SQL

1. How to assign database role "db_owner" to model database using T-SQL?

2. How to grant a window login public access to master database

Thanks.

View 3 Replies View Related

Help With Database Model

May 22, 2008

Hi, I am trying to create an app that will work exactly like the inbox section in face book.

Do you have any database model I can use as a reference?

it works based on threads.

I am having issues with data redundancy any help will be appreciated.



Thanks

View 1 Replies View Related

Power Pivot :: Building A Model Based On Multinational Model With Different Languages?

Oct 19, 2015

I need to develop a language specific dwh, meaning that descriptions of products are available from a SAP system in multiple languages. English is the most important language and that is the standard. But, there are also requirements of countries that wants productdescriptions in their language. 

Productnr Productdesc Language
1            product       EN
1            produkt       DE

One option is to column the descriptions, but that is not very elegantly. I was thinking of using bridge tables to model this but you have to always select a language in a filter (I think)..

I'm thinking of a technical solution, such that when a user logs on, the language is determined and a view determines whether to pick a certain product table specific for a certain language. But then I don't have the opportunity to interchange the different language specific fields in a report (or in my case PowerPivot).

View 2 Replies View Related

Can We Pause Log Shipping, Bring Primary Db To Simple Recovery Model And Then Back To Full R Model?

Apr 25, 2008



We have the following scenario,

We have our Production server having database on which Few DTS packages execute every night. Most of them have Bulk Insert stored procedures running.

SO we have to set Recovery Model of the database to simple for that period of time, otherwise it will blow up our logs.

Is there any way we can set up log shipping between our production and standby server, but pause it for some time, set recovery model of primary db to simple, execute DTS Bulk Insert Jobs, Bring it Back to Full recovery Model AND finally bring back Log SHipping.

It it possible, if yes how can we achieve this.

If not what could be another DR solution in this scenario.

Thanks Much
Tejinder

View 6 Replies View Related

DB Design :: Buffer Database - Insert Information From Partners Then Make Update To Main Database

Oct 29, 2015

I actually work in an organisation and we have to find a solution about the data consistancy in the database. our partners use to send details to the organisation and inserted directly in the database, so we want to create a new database as a buffer database to insert informations from the partners then make an update to the main database. is there a better solution instead of that?

View 6 Replies View Related

Moving The MODEL Database

Sep 27, 2000

How can I move the Model database to another location (i.e. from one drive / file location to another)?

I tried sp_detach_db (to be followed up with a sp_attach_db statement) but it rejected it because Model is a "system" database.
I tried (and it failed with a "Modify file command failed" message):
ALTER DATABASE model
modify file
(NAME='modeldev',FILENAME='f:MSSQL7DATAmodel.MDF')

I could not locate any help about moving model in books online (BOL).
Any ideas?

View 2 Replies View Related

Database On FULL Model

Jun 22, 2006

I have a question.

I have a database on Recovery model FULL, i do know that i have to use a Complete Backups and Log backups for it, my question is

If i made a Complete backup, what happens with the transaction log? same size? i mean need a backup log to clean it ? .

A complete backup on SQL Server doesn't inclued a log backup?

View 4 Replies View Related

Dbowner For The Model Database

Jun 2, 2004

How do I change the Database owner for a MODEL database?
When I open the properties for a Model database, it shows "UNKNOWN" as the database owner, and I can't run the command 'sp_changedbowner 'sa' as it's not allowed to run on master, model, and tempdb.
Any help?

View 2 Replies View Related

Model Database Without Db_owner

Dec 5, 2007



I am receiving this message in my MOM Server:
The system stored procedure sp_helpdb, which is used to gather information about the databases, has returned an error that may indicate that it cannot determine the db owner for the database [model]. Here are the details: sp_helpdb @dbname='model' on SQL Server Instance: INSTANCENAME. Error number: 515, Error Information: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value NULL into column '', table ''; column does not allow nulls. INSERT fails.

So, I run this script in the Master DB:
select name, suser_sname(sid) from master.dbo.sysdatabases where suser_sname(sid) is NULL

And I get the result that the db_owner is set to NULL!

I know that it is not possible to change the DB Owner of the model database but is there any workaround to solve this without reinstalling or similar solutions?

View 13 Replies View Related

Database 'model' Corrupted

Aug 13, 2006

Hi, my 'model' database corrupted and my SQL Server 2005 Express can't be started.



I believe I have the SAME problem as his:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=455524&SiteID=1



but when I try the command start sqlservr.exe -c -T3608, an error message appeared:



"Your SQL Server installation is either corrupt of has been tampered
with (Error getting instance ID from name). Please uninstal then re-run
setup to correct this problem"



Well, the problem is that I have an ActiveBPEL database inside, and I really need a way without reinstalling it.



Any solution??



Thanks,

Edwin

View 6 Replies View Related

Cache Database Structure (How To Detect If Database-design Has Changed..)

Feb 24, 2006

Hello everyone,I have a webcontrol that uses database-structures alot, it uses the system tables in SQL to read column information from tables. To ease the load of the SQL server I have a property that stores this information in a cache and everything works fine.I am doing some research to find if there are anyway to get information from the SQL server that the structure from a table has changed.I want to know if a column or table has changed any values, like datatype, name, properties, etc.Any suggestions out there ?!

View 3 Replies View Related

Designing A Database Within A Database... Design Question Storing Data...

Jul 23, 2005

I have a system that basically stores a database within a database (I'msure lots have you have done this before in some form or another).At the end of the day, I'm storing the actual data generically in acolumn of type nvarchar(4000), but I want to add support for unlimitedtext. I want to do this in a smart fashion. Right now I am leaningtowards putting 2 nullable Value fields:ValueLong ntext nullableValueShort nvarchar(4000) nullableand dynamically storing the info in one or the other depending on thesize. ASP.NET does this exact very thing in it's Session State model;look at the ASPStateTempSessions table. This table has both aSessionItemShort of type varbinary (7000) and a SessionItemLong of typeImage.My question is, is it better to user varbinary (7000) and Image? I'mthinking maybe I should go down this path, simply because ASP.NET does,but I don't really know why. Does anyone know what would be the benifitof using varbinary and Image datatypes? If it's just to allow saving ofbinary data, then I don't really need that right now (and I don't thinkASP.NET does either). Are there any other reasons?thanks,dave

View 7 Replies View Related

Knowledgeable Yet Simple Book For Database Modelling Or Database Design

Aug 16, 2007

Hi All,Can u please suggest me some books for relational database design ordatabase modelling(Knowledgeable yet simple) i.e. from which we couldlearn database relationships(one to many,many to oneetc.....),building ER diagrams,proper usage of ER diagrams in ourdatabase(Primary key foreign key relations),designing smallmodules,relating tables and everything that relates about databasedesign....Coz I think database design is the crucial part of databaseand we must know the design part very first before starting up withdatabases.....Thanks and very grateful to all of you....Vikas

View 3 Replies View Related

Multiple Client Database Model

Apr 26, 2005

Does anyone have a sample of what a database would look like that would support multiple clients in a single ASP.net application?
Thank you,

View 4 Replies View Related

URGENT: Model Database Corrupted!!!

Jun 8, 1999

Hi Everyone,

I am a newbie to SQL Server Admin. Today when I ran Dbcc newalloc on Model it is showing
corruption on syobjects with a 2525 error. I am not sure how to fix this problem? Since
this is a critical payroll application server, I need to solve it at the earliest.

If anybody has faced this problem earlier or knows how to solve, please respond to the following
address: vsrikanth@ameren.com

Thanx for all responses

Srikanth

View 1 Replies View Related

Model Database Recovery Planning

Mar 29, 2007

I cannot think of any reason, in our environment, why I would recover the model database. Change framework has all databases coming from DEV & QA before landing on PROD. We have never used the model database as framework of new databases either.

So, if I discontinued backup of the database, what is my recovery method if it become corrupt? Since mine is not used, can I simply copy it from another server?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved