Concurrency Violation
We have this view works fine:[code="sql"]SELECT geoCodekey, addressID, address1, address2, city, state, zipcode, Geoinfo, Latitude, Longitude, NewCounty, DesignationFROM dbo.member_addressJOIN...
View ArticleServer level logon Trigger is not executing
Hi all,I have server level logon event trigger which should run a proc if I create a login. But this is not getting executed. This is running in my local server but not in QA server. IN my QA server I...
View ArticleWhen is it safe to use NOLOCK?
We never use NOLOCK in our APPs, but I see it used like confetti in 3rd party apps installed on our servers, and it always worries me, but I wonder if my worry is unfounded and what scenarios are...
View ArticleNot Exist causing major performance problem
I have the following code that includes a Not exist and when I run it takes 4 minutes. If I exclude it take 40 seconds to run.My thought was to create the temporary table without the Not exist and...
View ArticleImages not rendering (SSRS)
Hi,Wonder if I could get some advice on a problem with rendering images.I think this boils down to an internet explorer compatibility problem.So, I have developed some reports on SQL Server 2014 SSRS...
View ArticlePhantom reads more frequent on secondary
We have an application that collects real-time data from our production database servers. Recently, we've upgraded to SQL Server 2014, setup an AlwaysOn group and using a listener read-only connections...
View ArticleCalculate User Payment
Hi DearsI Have This Structure :[code="other"]--ActionType=1 UserPay--ActionType=2 UserBackCreate Table P(Id int , Pay int,Userid int,ActionType smallInt)Insert Into P...
View ArticleQuery rewrites
Hi. We recently upgraded our ERP and went from using SQL Server 2008 to 2014. In addition, we upgraded our hardware (faster, better everything). Suddenly all of the queries we have embedded in various...
View ArticleVBA Push Excel to SQl Server 2014
Hi guys, Not sure if I picked the correct sub-forum, please point me if not.I am in a corporate environment with IT managed SQL servers. "My" 2014 SQL server is setup and functioning fine. We want to...
View Articlet-sql help with grouping
Hello,I am hoping this is possible to do in a select but I cannot seem to get sql for it. We are running different types of tests per sample unit and logging whether it succeeded or failed. There is no...
View ArticleCovering date error
I'm trying to run the following script and I get the following error, would you please let me know what I'm doing wrong?error message:Conversion failed when converting date and/or time from character...
View ArticlePartition switching when you can have old data
Hi,I am thinking of migrating one of my databases and implementing partitions, and using partition switching to load data quickly, so I'm reading up about it. For the most part, it fits well, and I...
View ArticleMake sure that the required parameter is set - error
Dear all,I'm trying to create an SSIS package job in SQL server 2014 but I get the following error when trying to change the Package source and confirm. I have alsredy checked the connection mangers...
View Articlehi, i'm a noob on sql 2008 could anyone suggest me on how to do it
I have a table with these fields: student number,gender,subject,datenow, upon enrolling it will store 5 or more records into the db with the same values for student number,gender and date withthe...
View ArticleIdentify difference between two table columns and output only the differences
IF Object_id('GoldenSecurity') IS NOT NULL DROP TABLE dbo.GoldenSecurity;IF Object_id('GoldenSecurityRowVersion') IS NOT NULL DROP TABLE dbo.GoldenSecurityRowVersion;CREATE TABLE dbo.GoldenSecurity...
View ArticleFind string with spaces and replace them with other string
I have following query which return me SP/Views and Functions script using:[code="sql"]select DEFINITION FROM .SYS.SQL_MODULES[/code]Now, the result looks like [code="sql"]Create proccreate...
View ArticleIssues executing a SSIS package using SQL Agent
Hi,I am new to SSIS and SQL agent so I may have missed something. i have on my local machine SQL Data tools for visual studio 2012 and i built an SSIS package (the PackageFormatVersion value in the XML...
View ArticleCheck if two rows have a different value in a specific column
Hi guys! I hope i am right in this sub! I have googled my question, but everything i can find is code to check if there are two rows with THE SAME value in a column. So here is what i need. I have huge...
View ArticleHaving huge number of condition in a single query will screw the performance ?
[b]Having huge number of condition in a single query will screw the performance ?[/b]I have a staging table which has 100 columns. I need to validate data before I insert those into destination table....
View ArticleLeft Join with 2 references
If this has been asked, please excuse me. I need to join 2 tables but the join needs to account for 2 seperate columns. for example:select a. typea. prod_codea. prod_typeb. divisionfrom table1 a left...
View Article