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

How to use the multiple values in where condition in the below query

I have a query where i would calculate the counts of three Servers declare @Managed float declare @Active float DECLARE @Values varchar(1000) SET @Values = 'WE,EE,CO' select @Managed = count(Name0)...

View Article


summing from two tables then preforming an operation with the 2 sums

I am using sql server and I have a table called accnt with the fields ven1 and amnt1 and a table called acc1167 with fields ven, job#, and amnt. for this example these tables look like this       accnt...

View Article


Default Zeroth Row in a table

Hi I have come across a OLTP Database where all the tables has a default row as zeroth row. It is inserted as soon as the table is created and i am not sure why is it required in first place? can...

View Article

Image may be NSFW.
Clik here to view.

Normalisation sub contractor

Hello,I would like to use MS Access to keep track of purchase orders on a site, given to sub contractors e.g.1 Each site can have more than one contractor2 Each system on that site can only have one...

View Article

When to use FileTable, and DB design questions

I have a kind of interesting scenario- lets say I have a list of people I wish to store in the database, so I create a table 'Person'.  Now lets say each person has a 2000 large image files (say high...

View Article


what will be alternative of full outer join?

what will be alternative of  full outer join?

View Article

Database Log file Corrupted while making database Readonly

we have database when trying to make read only throwing below error: with stack dumpLocation:              recovery.cpp:4517Expression:         m_recoveryUnit->IsIntendedUpdateable ()SPID:...

View Article

POS ERD

Please tell me your opinion about this ERD and refer to any mistakes or advise me for improvements .- it's a POS system, 1- "Serial " column is the " Patch " column , in order that if any item is...

View Article


Case Sensitive database

Hi,I have attached a database to my server.I just found out that it is case sensitive.The model database is case insensitive.Is this setting set when I attached the database?Many thanks,BenMr Shaw......

View Article


What is your opinion / recommendation on the maximum datafile size for SQL...

What is your opinion / recommendation on the maximum datafile size for SQL Server 2008 R2 ?most (small/medium) databases work well with just one filegroup for data (and perhaps one datafile inside...

View Article

Deadlock email

Hello,I am using SQL Server 2012 SE and I am noticing a lot of deadlocks that are occurring more frequently on few databases on a SQLServer. I enabled traceflag 1222 to capture the info in the SQL...

View Article

Database Mail Issue

I have a stored procedure that executes sp_send_dbmail to a variety of recipients.  It is scheduled to run at 4:00 AM and it successfully emails the text.  However, it duplicates the email and sends it...

View Article

Avoid the lock while inserting Data.

Hi,I have a Sql Server 2012 and am having a database "Test". In this database, having a table "Customer". In this table having a huge no of records.Everday at 10 to 11, inserting the records into this...

View Article


discrepancy in table structure after DB restoration

After performing copy_only backup of the Database using the below query, I restored the Database and now I checked and found out that there is a discrepancy in the table structure of the restored...

View Article

High-Safety Mode Session Design Consideration

Hello All,Please ignore my ignorance regarding this topic as I am absolutely new to SQL Server. So, this is my scenario :We have 2 site, 1 in Bangalore and other in NY. We are providing HA in each site...

View Article


Installation with SQL Server express

Hii am quite new to SQL server but have experience with databases. I have created a database inside SQL server express that i need to include as a local database file with my application so that when...

View Article

what are the best possible ways to shrink ldf files

Hi,What are the best possible ways to shrink huge ldf files in sql server without data loss?Thanks,Preetha

View Article


How to use the Sql encrypted data in Oracle db.

Hi,I am using a sql server 2012 and having a database "Test".In this database , having a table "Employee". I have encrypted the employe table data with the password. How can is use these employee data...

View Article

Dropping & Rebuilding A Database

Hi,With some performance issues faced as I checked on Google came across Paul Randal's article on Logging & Recovery:https://technet.microsoft.com/en-us/magazine/2009.02.logging.aspxIn this regard,...

View Article

SQL 2012 and SQL 2008 R2

Hello All,One of our Project use Legacy System that has Collatin : Latin1_General_CI_AI and the other has Collation : SQL_Latin1_General_CP1_CI_AS. What will be the impact when we join two tables? How...

View Article
Browsing all 2729 articles
Browse latest View live


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