Quotes for input parameter
-1down votefavoriteHy,I need some help with writing syntax, cause I keep getting warning: Invalid object name '' + @Table + ''@Table is my input parameter, and I need to use it as such to get an ID...
View ArticleMultiple lines in one line
Hi Guys!!!I have te following data on SQL 2012 table: Emp Name ACCESS DATE TIME DOUGLAS START 6/15/2015 9:16:23 AM DOUGLAS END 6/15/2015 1:35:00 PM DOUGLAS START 6/15/2015 2:57:00 PM DOUGLAS END...
View ArticleSQL Server Won't Download
I have gone through every page of system and hardware requirements I can find, but I cannot download SQL Server 2012. The program will not even start to download. I have no idea why this could be...
View ArticleThe underlying connection was closed: An unexpected error occurred on a receive.
Unable to connect to the thrid pary web service from the production DMZ servers. Issue is ocuuring while getting the response from the server. Error Message : The underlying connection was closed: An...
View ArticleError when trying to disable data compression in SQL 2014
Dear all,I tried to disable the data compression for granular backup purposes on SQL 2014 with following query:EXEC [dbo].[prc_EnablePrefixCompression] @online = 0, @disable = 1I received following...
View Articlesql server 2014 installation
Hi...I bought a developer edition of sql 2014 as my trial period was up. I installed it along with the key. Everything seemed to go through ok, however when I try to access Management Studio...
View ArticleSerial Schedule...
Hello my friends,Suppose we have three transaction and we have 3! serial schedule. The final results of all six serial schedule are the same?
View ArticleDefinitions of the existing triggers
Hi,I use SQLServer 2008 R2 Standard Edition.I know there are some triggers in my database that someone else has created, but I can't find their names and also I want to know the definitions of the...
View ArticleHow to append where clause to existing statement without dynamic SQL ?
Hi,I have SQL statement like this .. CREATE PROCEDURE [dbo].[GetProspectBySearch] @StartRowIndex AS INT, @MaximumRows AS INT, @ModuleType AS VARCHAR(50) = NULL, @ProspectCategory AS VARCHAR(50) = NULL,...
View ArticleAppend where clause in to SQL statement without IF..ELSE ?
Hi,I have SQL Statement like this.CREATE PROCEDURE [dbo].[GetRecords] @option AS BIT = NULL AS BEGIN IF @option = '1' BEGIN SELECT * FROM testTable WHERE column1 IS NOT NULL AND Column2 IS NOT NULL AND...
View ArticleDelete and update on all tables with a single query
Hello !I have sql server 2008R2.The database has a lot's of tables (100+)-On some tables there's a field "DelDate" (Date)-On some tables there's a field "DelChilds" (Bit)I want a short way to do...
View ArticleSQL compatibility windows server 2012 essentials
SQL server 2012 is compatibility with windows server 2012 r2 essentials.thanks.
View ArticleBuffer Blocks vs Disk Block
Hello,What is difference between? I'm confused Disk buffer: The area of memory where blocks reside temporarily is called the disk bufferBuffer Blocks: The blocks residing temporarily in main memory are...
View ArticleHow to extract the local SQL login used by the SQL Server Agent Service
First, does the SQL Server Agent Service need a local SQL login? We are using SQL 2008 to 2012. There are no SQL Server Agent proxies setup.How can I find the SQL Login of the SQL Server Agent? I want...
View ArticleWhat is the keyboard shortcut to hide the results pane in SQL Server 2014?
Hello,What it is new shortcut to hide the Results pane in SQL Server Management Studio 2014? Ctrl + R doesn't work.I have read all of the other threads on this topic but none work for SSMS 2014.MurrayM...
View ArticleODBC Connection Failed
Hi,I have installed SQL2014 on a server [hostname: sql2014]. I created an user "ABC" and even granted "system admin" server role. I tested login from the Management Studio in the local server and...
View ArticleSQL code for Breakdown indicator value of the cycle
Hi Team,I need to write a SQL query for the below requirement,I have a table and it contains 4 columns EquipmentNumber, OrderNumber, OrderType, BreakDownIndicator and the values are likeEquipmentNumber...
View Articlecan't connect to sql server 2014 in microsoft visual studio express for the...
I am getting this error in visual studio express for the web 2013 when I try to click on my databaseicons in the server explorer. It did not happen before yesterday when I had to uninstall and...
View ArticleHours to show in a column
Hi! i'm trying to capture data for every hour and would like to display the hours of the day in a column.select case when (datepart(hh,calldate) between 0 and 7AM then 1 else 0 end as [12-7AM],case...
View ArticleHow can I get SQL 2014 updates?
Hello!I installed SQL 2014 Standard on Windows Server 2012R2 Standard for testing purposes.Using Windows Update in Windows Server I installed SQL 2014 SP1.My question: all SQL updates will come with...
View Article