How to make ERD design for image below between section and lab and courses...
I need to make ERD database design for universitymy details as followingtable year and table department (one to many)Every year have more departments(First year has more department as Information...
View ArticleSQL server database in recovery
Hi,After SQL server restart SQL database went in recovery mode. i am not able to access and i try to recover the database its showing below error. Msg 3101, Level 16, State 1, Line 1 Exclusive access...
View ArticleHow to configure an E-mail notification for SQL backup job using task scheduler
Hi Friends,As we have using SQL Server 2012 Express edition and configured db backup jobs using task scheduler ,now we want to get alert mail notifications about jobs .How to configure an E-mail...
View ArticleHow to add days and time for instructor schedule
ProblemI need to get schedule for every instructor weekly or daily .And which time it give course for training center .And what course it will give .ExampleInstructor martin give course c# in Monday...
View ArticleEnforce Sql Server naming conventions
HI All Is there any way to enforce naming conventions on sql server regarding Primary Keys /Forign Keys / Default Values .. etc' for example :PrimaryKey - PK_TableName_FieldNameForignKey -...
View ArticleNaming suggestion
Hi everybody,I am just wondering how would you name a stored procedure that either inserts a new row or updates the existing row (and also performs inserts/updates for related tables). I think I'd use...
View ArticleLookup table values
So something came up at work recently.The application provides the user with 4 choices1 - Pineapple 2 - Pen 3 - Pineapple and Pen 4 - NoneNow to me I would create a lookup table and add 2 records...
View ArticleSave query in table
I have 100 clients which I want to create a report for them with different column selection. I am going to show the client names in a drop down list. Then user selects the client name and executes the...
View ArticleWhat is recommended SQL Server DB Design?
Dear SQL Server Expert,Our company is using SQL Server 2012 DB for the Dynamics Navision. Currently, we are planning to optimize the DB. may i know what is the best setting or configurations for the DB...
View ArticleStrategies on maintaining a codebase that supports various SQL Server...
Hey all,I have searched long and hard to find something about this on the internet as I can not be the only one on the planet with this issue, however, I can not find anything close to what I am...
View ArticleCan a column name contain a subscript?
I am trying to create column names for oxides such as Al2O3 but with the 2 and the 3 as subscripts. I would prefer to just have the subscripts in the database instead of writing extra C# code to...
View ArticleHow can we simplify the task of tracking page with SQL?
We use SQL to track page views of intranet. In order to track on each page, we need to create info about the page and SQL generates a number to track. It becomes tedious. Is there a way to automate it...
View Articlenatural key vs surrogate key Table design question
Table Design Question want to create a table with university class offered and students Lets just focus on Classname and StudentID columns Let assume i will have about a million rows in this table...
View ArticleLinked Server Query KILL
Hi,I'm using SQL server 2008 R2 and at time my linked server query just gets stuck and no matter what I do its just doesn't die.I tired KILL SPI but that doesn't work. I really don't want to restart...
View ArticleClustered Index on Composite Key with Timeseries (GroupID, Timestamp)
Hello, I have a table with a clustered index on [GroupID, Timestamp]. GroupID has currently a value range of 1-5000 (slowly increasing). Each group (GroupID) has ~500.000 records with a unique...
View Article"Violation of PRIMARY KEY constraint" Error when using a Sequence Object as...
We have a table that uses the sequence Object for the identity column. The sequence works for a while then eventually lags behind the max id of the table. So we end up with "Violation of PRIMARY KEY...
View ArticleSSIS LICENSING
Hello Guys,Please clarify my question!Assume we have Host-A on SSMS (DB Engine) components and Host-B (SSIS) Integration components. So to run SSIS outside of the development environments we need...
View ArticleWhy are rows added to PRIMARY file group as well as partition file group?
I have done partition on my table and set three new file groups but data is being added to both PRIMARY file group and one of the new file groups. I have got a large table in my database called...
View ArticleForeign key + Azure problem
Hi .. I use sql server 2014 .. i have connected my database with azure but when i try to make foreign keys .. relathionships->tables and column specific.... this error message shown .... failed to...
View ArticleDifference among Connection , Session and Scope in SQL Server.
Hi,Any one please clarify difference among Connection , Session and Scope in SQL Server.In SSMS and Application.Regards,srinivas chSrinivas Ch
View Article