Sum function returning incorrect results
I have a table of values that is being summed using SQL server 2005 that is returning an incorrect value and I can't figure out why. I have enclosed the raw values and the total should be 30869.025...
View Articleif we have temp table in sp, we execute sp from different sessions, it will...
if we have temp table in sp, we execute sp from different sessions, it will create different copy of temp table in sql server tempdb db or not ?
View ArticleDdatabase performance for ecommerce solution
Hi friends When design database for ecommerce solution , we should performe correct normalization?For example grid: we have two type of customer ....> 1.supplier 2.customer For users , we can...
View ArticleSQL Slowness
I am getting periodic SQL performance slowness, wait times. I ran the following query as I noticed some "PageIOLatch_ex" in the activity monitor. Does this mean I have a memory botttlenec or disk I/O...
View ArticleSQL 2012 SP1 system_health security_error_ring_buffer_recorded Events
Hello,I recenlty upgraded My SQL 2005 server to SQL 2012 SP1. The system_health in Extended Events is now continuously reporting the event listed below.After upgrading to SQL 2012 SP1 I installed a...
View Articlei just want to check that foreign key used in some other table or not
I am using sql server 2008 as my data base engine. i update the [DeleteStatus] field when the time of deleting process.. but in this case i am facing an issue with delete process.. i dont want to...
View Articleback up settings is not working.
i am 69 years young and only had a laptop for about two years and now i find this page " i think that is what you call it" i am in wounder of the young lads and lasses that can do all these things, and...
View ArticleUnable to Send mail using Database Mail feature SQL Server 2008 R2
Hello,Fellow DBA's...I have been trying to configure Database Mail on SQL Server 2008 R2 but I am betting below error. I am able to send Mail by connecting to my Mail server using Telnet but no...
View ArticleIs it safe to use IDENT_CURRENT to assign default value in Default constrain
Hi All,I'm using IDENT_CURRENT('dbo.sometable') as default value.The intension is to duplicate last identity generated for this table in the column of the same table (to form ParentId column in...
View ArticleFinding out the slow SQL from huge stored procedure
Hi All,I am on SQL 2000 (no dm_ views etc etc).There is a stored procedure which sometimes run in 40 mins, but sometimes it might take anything between 2 hours and 8 hours. It is a reasonably big...
View ArticleSQL Server Memory
Hi All,I am not sure if this is a fair ask or no but this is something i want to learn much internals about sql server memory and how sql server responds to memory pressure and i wanted to see that...
View Articledatabase size big difference between original and restored for sharepoint
our sharepoint database wss_content on production server is 12GB, after we restore the site by stsadm -o restore -urlhttp://restored sharepoint site url/ -filename "backup file of original site.dat"...
View ArticleSQL Server Missing + Renamed Files
Hello everyone,The problem is already resolved, but I just want to share it and also figure out why it happened?I ran into a very weird problem recently. The SQL server's services (MSSQLserver and...
View ArticleCannot insert duplicate key row in object 'dbo.xxxx' with unique index...
We went live with SQL2012 SP1 and have run into a problem with duplicate keys on a clustered index for a table that has an IDENTITY column. This is code that has been working for atleast 5 years.When...
View ArticleHow to diagnose startup failure for SQL Server Agent?
I am attempting to start SQL Server Agent and I receive this error (from event log):-<Event...
View ArticleChanging SSAS instance from stand-alone to cluster
Hello,I have a 2 node Active/Passive cluster mounted in Windows Server 2008 R2. Currently on the active node there's a SQL Server DB Engine instance running. SQL Server DB Engine and SSAS is 2008 R2.On...
View ArticleUnable to export the file
Hi,I have used .Net project to insert one image file into my_schema.dbo.user_master.photo_file with user_id = 4.I've got SQLState = S1000, NativeError = 0 Error = [Microsoft][SQL Server Native Client...
View ArticleDatabase Servername Issue
Hello All,I have my database server name as SQLTest01 and I am able to RDP to it with the name. ANd also all applications are connected to it for a long time now. However when I runSELECT @@SERVERNAME...
View ArticleUndetected Deadlocks
Hi all,I've having problems on a SQL 2008 R2 (10.50.4266) Enterprise server, 32 cores and 512GB RAM. Since we installed the latest CU patches we have been getting a lot of undetected deadlocks. By this...
View ArticleDefragmentation in sql 2005
Hi,After rebuilding index still it showing same results.I have a usertable (Avg 80%) after rebuiling, it still showing 80%, Why it showing same?
View Article