Quantcast
Channel: Database Design forum
Browsing all 2729 articles
Browse latest View live

How to create Groups and subgroups using the same column records in sql server?

Hi i have a table called  Site under i have a column sitecodeThe below are the records in that tableHere i want to split this recors into two groups 1.first group will contain the Primarycodes...

View Article


Adding additional data files to Tempdb? is it an online operation?

Hi All,I have tested and found that it is an online operation (It did not have any effect on the DB) but was little curious to do the same thing on a production server.aa

View Article


Highway DB Desiging

HiI have worked on various industries like insurance / healthcare and banking data models. However would like to know how to track something similar to highways & roads.I feel it is different...

View Article

SQL Retrieve Operation and list in order

How I can list in order event within a time frame?

View Article

How to get all indexes in a server with include columns

Hi  I need to copy all the indexs in one databases and execute in another database ,but i  dont know how to take included columns of the index.All are non clustered index Please help meIndex Name,...

View Article


How to prevent duplicate keys in archive database?

I am struggling with this problem.Background: I'm working on a project where I have to make an archive database. The archive database should get all data of the operational database. It should even...

View Article

If I use more then one column in Where then Non clustered Indexes are not used.

Question: Consider that I have table called tb_Person and it contains SSN, First_name, Middle_Name Last_name, DOB and so many other fields. When the Application was designed all the above given fields...

View Article

Partition table with Computed partition Element not work for me

Hi  I need to create a tablePatition with computed columns as the partition element , is it supported in sql server 2012?. I receive error. Please help meCREATE PARTITION FUNCTION...

View Article


How to learn sql?

how to learn sql ?

View Article


Is it a good use-case?

We're having a problem with scaling out with SQL server. This is largely because of a few reasons: 1) poorly designed data structures, 2) heavy lifting and business/processing logic is all done in...

View Article

How to correctly apply index to table for select optimization

i have the tablecreate table [dbo].[DatasetsIndex]([ID] [int] IDENTITY(1,1) NOT NULL,[postcode] [char](16) NULL,[city] [nvarchar](255) NULL,[country_code] [char](2) NULL,CONSTRAINT [PK_DatasetsIndex]...

View Article

alwayson licensing

Recently we have built Sql Server 2012 cluster( Active- Passive) on windows server 2012. I have chosen Alwayson on as DR plan for the cluster.My query is for the DR SQL server Standalone Instance do we...

View Article

Compare SQL file tables as a file content VS Documentum or Alfresco

Hello - Documentum & Alfresco are 2 examples of Document Content Management (file repository, workflows, notifications, etc), I am interesting in the file content management where system provides...

View Article


How to set computed field as primary key ?

I have created Brand_Mast Table , I ve want to create Brand_Code as Primary Key, but it is computed fieldHow can i set Brand_Code as Primary Key  ?CREATE TABLE [dbo].[Brand_Mast]([id] [int]...

View Article

change one -many relationship to many-many relationship in the database table

Hi,I have design the table relationship,but my boss ask me to change  one -many relationship to many-many relationship in the database table.I don't know how to do it.Please someone help me.it's very...

View Article


check in / check out and versioning in SQL file tables

Hello, currently we have several Web apps that attach documents to the process supported. Here we want to use SQL file tables as a file content repository. Some of the features required for those Web...

View Article

SQL Server 2005: Disable Autogrowth on large Data file.

Hi All,I have 900GB database with one data file of around data1 - 750GB and another data2-150GB.I would like to add two more data files, data3 and data4, on separate luns for better IO through-put. and...

View Article


SQL Server DBA

HI Team,I have recently completed BCA(Bachelor of computer application) graduation.My Goal is to become a MS SQL DBA, So could you please let me know what all the certifications I need to be complete...

View Article

Page Deadloack

Statement 1: Update   ASet ActCnt =   @tmpPlayCnt<c/> LastGameID=@GameIDwhere AccID=@tmpAccID and   RID=@tmpRoomID and GType=@GType and Pdate=@CurDatStatement 2: Update   ASet ActCnt =...

View Article

SQL Server Virus Attack - Recover main database (MDF) using log (LDF) file

Hi ! My server was hit by some unknown virus which seems to have corrupted header information for many of our files including an important databases and some of its backups.  However the log file...

View Article
Browsing all 2729 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>