Question on design
So I'm a little confused in how I would design this portion of a database and looking for some suggestions on how the tables would be set up.In this example, I have lockers and these lockers can be...
View ArticleDDL trigger not capturing previous schema for ALTER SCHEMA TRANSFER
Hi,I have a DDL trigger which captures ALTER SCHEMA TRANSFER queries. The EVENTDATA() shows the following:<EVENT_INSTANCE> <EventType>ALTER_SCHEMA</EventType>...
View ArticleWhat is the correct terminology for the 2 kinds of data?
Gurus!My application is about opening certain flat files, transforming the data contained in them and then sending the transformed output to another flat file. I am not storing any of the data from the...
View ArticleBest practice on database versioning
I have a production database in SQL Azure and need to make some major design/structural changes. I'd like to know whether there is anything wrong (from a best practice standpoint) with versioning...
View ArticleWhy I cannot set Primary Key by Design mode of table?
I have new DB on SQL Server 2012.'I right click and select Design. There are several tables and "Set Primary Key" is always disabled. Allow nulls is checked and table is empty. There no foreign...
View ArticleFilegroups Best Practice
Hi,I am updating a database to use multiple filegroups. As it stands, it uses just the PRIMARY filegroup.I have read that it is recommended to create a second Filegroup (called 'Data') and mark that...
View ArticleRecords not deleted data is read only
There are some instances where I cannot delete records in a SQL 2008 Table linked in Access 2007. I have tried numerous configurations (both in table configuration and the linking process) in an...
View ArticleVLDB
Hi, I have a very large database. Can anyone suggest me any plan to reduce the size of the database. By doing some architectural change of DB's or anyother modifications..
View ArticleNormalization
Hello to all, I do not know if this is the section most appropriate to ask this question but since I have to develop a DB in SQLServer for an exam then I ask here hoping that someone will help. The...
View ArticleDoes a Nested Set Model defy Normalization?
I'm in the brainstorming phase of a database design that would have a significant hierarchical tree structure of items. I've come across the Nested Set Model which seems to have some upside in limiting...
View ArticleDesign SalesRep hierarchy
Hi, I need to design SalesRep hierarchy. What is the best way to design the tables? SalesRep might be under a manager and the manager is under another manager/director. They may ab again under a...
View ArticleHow do Create Trigger After Update
there my dear, I'm experiencing some difficulties when creating a trigger to update when a change occurs in a particular column of a table, with an update occurs in other columns. I own a system to run...
View Articleconverting
hi,I am programmer,I have some file with type of .acc and I want to convert them into sql server,but I can't,can you help me???
View ArticleJoining two SELECT statements from different Tables
HiI have a Table with the following columns "MATRICNO ,CRS_UNT ,CRS_SCRE, CRS_PNT, CRS_GP" ( all of a numeric datatype) and another Table with columns MATRICNO , FIRST_NAME (varchar),...
View ArticleSQL server performance for tables having large number of columns
I have a requirement where i need to create a table with about 600 columns. Out of 600 columns about 200 columns will be XML columns. Other column will be of other datatypes such as...
View ArticleSQL Server FileTable
Hi,Is it possible to store other types of columns in a FileTable besides a data file? Example can I create a database definition like below?CREATE TABLE FTable As FileTableWITH(FileTable_Directory =...
View ArticleRules Database Design
I have a design that I am working on and need some assistance. The basis of the application is that is stores rules and suggest actions based on the outcomes of the rule. So here is the logic:We have...
View ArticleDate format with slashes instead of dashes
Is there a way to make sql server to store dates with slashes instead of dashes, e.g I want it to be like 12/01/2013 instead of 2013-12-01
View ArticleSQL Build Error in VS2012
I am getting the following build error in Visual Studio 2012 while trying to build a SQL database. This is a SQL Server 2012 database that I created with the Server Explorer, and imported to a SQL...
View ArticleSQL Column - unique?
Hello. I am trying to search for this decision in google, but I can't understand some features.So my question is:Can I do random column in my table unique? For example: I have an entity(I am using EF...
View Article