case when vs exists in sql
I have the following querySELECTtop10casewhenexists(SELECT t1.[Code Article]FROM[Promotion]where t1.datecol between[Date Debut Promo]and[Date Fin Promo])then1else0endas test1,Casewhen[Code...
View ArticleOptimize query which took hours to be executed
How could optimize the following query : SELECT CASE WHEN COUNT(distinct t1.[datecol]) = 0 THEN 0 ELSE SUM(convert(float,...
View ArticleEvent IDs
Dear all,I would like to learn what eventIDs get logged in Windows 2003. 2008, and 2012 when a SQL database goes offlineI am using SQL versions 2008. 2012, and 2014
View ArticleData Dump Instructions
How can I generate a data dump that can be saved to an external directory (ie USB drive) that can be opened in OBDC analysis software?
View ArticleExam 70-461 minimum score
Hi all of you, I don't know if I am writing to the suitable forum for that. AFAIK I though it was 700 or 70%I did a test getting 75% but as a result I get FAILED status. A picture worth a thousand...
View ArticleCore licensing model with VM, and vCPU number changes
Lets say you have a VM with 4 vCPUS, which you had licensed with 2 2-pack licenses (so you have licensed all 4 cores). What happens when you add 2 more vCPUS to the VM? Do the SQL server processes...
View ArticleHow to start SQL server in windows 10
I recently upgraded to Windows 10. Prior to the upgrade, I had Windows 8. Sometimes the Microsoft SQL Server would stop running and I was able to find find the SQL server tools and start it running...
View ArticleSQL server licensing
I come from a PHP background and mostly used MySQL during my career. MySQL in general terms are installed once per machine and has the option for unlimited users, databases.Over the past couple of...
View ArticleExtended event session to capture store procedure calls and arguements passed
Hi all,<o:p></o:p>I have an application which generates certain reports while values are entered and generate button is clicked on an application.<o:p></o:p>I know to which...
View ArticleTransaction log file is full. I am unable to run Backup Log command as there...
Good morning Experts,Transaction log file is full. I am unable to run Backup Log command as there is no space for that also. Please advise the best solution.Kiran
View Articlemultiple instances of the same application with multiple, but separate users
I am a newbie and have written an application. The application is complete, but I am not sure how I would go about(or is it possible) to have multiple users use the application, each using their own...
View ArticleExtending SQL Server 2012 Evaluation License
Hi Team,I'm testing my system using an Evaluation copy of SQL server 2012 that is about to expire.How can i extend the evaluation period?You advise would be appreciated.Regards,Patrick
View ArticleDifferential backup and restore
I have a transaction source database and a target database. I need to refresh the target database from the transaction db every hour. I also have some extra tables, views, functions and stored procs...
View ArticleSharepoint is generating SQLDmprxxx.log and SQLDmpr.mdmp files constantly
Help! The customer doesn't use SharePoint and suddenly the SharePoint instance of SQL is generating SQLDmprxxx.log and SQLDmpr.mdmp files constantly. I had to stop the SQLServer (SharePoint) services...
View ArticleOpen TCP/UDP command to write a value in the SQL database.
Hi members,We would like to set-up an application, where sensor statuses from an industrial machine running in a production plant will be logged to an SQL server.The sensors are connected to an...
View ArticleAnyone have a good doc or link to SQL Server Roles & Responsibilities?
Looking for a breakdown of roles (Prod DBA, App DBA, SQL Developer, etc.) and their associated responsibilities.Sorry if I did not post to the correct forum but I did not see a proper forum for said...
View ArticleDefault Instance Path
I have done something incredibly stupid!!! SQL Server 2014 with DB's on a JBoD. I copied the DATA folder only off the JBoD in preparation to reconfigure the drives! I SHOULD of copied the entire...
View ArticleSQL Server 2012 Licensing Model requirement.
Hi , I've query in my licensing of SQL Server 2012. Following are my request. Virtual Server-1 Virtual Server-2 Virtual Server-3 Virtual Server - 4 Virtual Server - 5 Core : 4...
View ArticleA DB Marked as Suspect
We have a SQL 2014 DB marked as suspect in SQL Management Studio. I know this is an older article but would this process work on SQL...
View ArticleMoving SQL DB Transaction Logs to Another Drive
SQL Server 2014 with 1 default instance in a failover cluster of 2 nodes. We finally got another drive for the SQL server and want to move the transaction logs to this drive. This is an older...
View Article