Tables linked by a unique ID
IT wrote a JAVA script which currently loads data from one csv file into one SQL table. This table has a Primary key defined as an INT IDENTITY.I want to split this table into several smaller tables....
View ArticleDesigning tables with multiple FKs
What is the best approach of designing tables with muliple FKs. For e.g. I have an InvoiceNumberGenerator table with multiple owners. All Owner tables have Identity PKs. How would i set the...
View ArticleDesign tables for recurring tasks/calendar(like google calendar) in sql server
Hi 'm going to design Sql tables for recurring tasks/calendar(like google calendar). I mean the schedule of the task when the task is recurring. For this reason I considered two tables as follow:Create...
View ArticleIndex rebuild filled up data drive
Hello,I am using SQL 2008 R2 SE and I was rebuilding indexes. The data file initially was 95GB and then when I was rebuilding indexes it grew up to 135 GB and filled out my drive and the job...
View ArticleSQL Server Design for Date and Time
Background: My DB need to store YYYY-MM-DD and HH:MM:SS data generated from a Machine. Data will beinserted every few minutes, every day will haveThousands of records at diff Time StampQuestions:...
View ArticleErrror Message generated at the time of Database creation
Msg 5118, Level 16, State 1, Line 5 The file "D:\POSDB\POSPRYDAT.mdf" is compressed but does not reside in a read-only database or filegroup. The file must be decompressed. Msg 1802, Level 16, State 4,...
View ArticleMultiple cluster
Can it be feasible to use multiple cluster can be implemented in Index view ?
View ArticleNormal Form
In a database design until which normal form it is practically possible? until 2<sup>nd</sup> normal form is it advisable?
View ArticleQueries from Client regarding Database design
1. Is it advisable to use IDENTITY [(seed, increment)] to generate the sequence number in a table for concurrent user in Microsoft SQL Server 2012? 2. Is it advisable to use SCOPE_IDENTITY () to get...
View ArticleDatabase Design: Sales Order & Purchase Order
I found the inventory tables of the "Purchase Order" tables is very similar to the "Sales Order" tables. Is it logical to have a design such that PO and SO share the SAME table? (e.g. use a flag to...
View ArticleFastest way to delete data
Hi All,I have 20 tables which have more than 100 milions of rows and i just want to delete all rows from that tablesbust when i am executing truncate it shows forign key constraint error.and when i am...
View ArticleConvert Dynamic SQL into store procedure
Our company has .net application and sometimes we are having an issue one of application functionality .This functionality is coded in .net applicationUsing dynamic SQL query that triggers Query on SQL...
View ArticleSQL Server Alert System: 'Severity 020'
Hi,I received the following alert in our PRODuction database server:SQL Server Alert System: 'Severity 020' occurred on server_nameCannot attach the file 'DB' as database 'Db'. [CLIENT:...
View ArticleBetter Way To Design Database
Hi,I have around 50 table objects.i have common data in some of the tables like(product name, description,comment....)ex: groceries, marbles, users, ....all tables Name, remarks and some of the columns...
View ArticleBest way to store a text document
I have many (100+) contracts of about 100 pages each. What is the best way to store this data so I can search for text within a contract and search for text across contracts? Filestream? I think I want...
View ArticleDatabase consolidation
HiI am planning to consolidate peace meal deployment of databases. My question is that if I have one clustered dedicated MS SQL database server and its physical resources are run out then what is the...
View ArticleConvert web site from Access Database to SQL
We have used an Access Database on our web site for some time, but it has been suggested that we update to SQL for any future upgrades.The script that access the database looks like:-<%...
View Articlebenefit and limitation of temp table in sql server 2008
I have a datagrid in front end of asp.net . when user select a row it shows another gridview (multiple row ) where user have to put some data. when user click CLOSE button i have to keep all data of...
View ArticleForeign key references (newbie question)
Hi all I am new at this, so I apologize if this is a stupid question (bear with me :-) ) First of all, I would like to apologize for my bad English. It is not my main language , but I hope it is...
View Article