Deadlock - caused by my application or another?
Hi,I appreciate that Profiler output is required to diagnose deadlocks but this is a general question and I don't currently have the ability to set profiler flags on a customer's SQL Server so...I have...
View ArticleMaintaince plan job was failed
Hi Team,I have changed the backup path location local drive to other storage path. after that i have run the job but its failed below error:Message Executed as user: xxxxxx. Microsoft (R) SQL Server...
View ArticleHow to fetch last value of a column in a table
Hi AllI've following table and I want to fetch last value in that columnTable: NameFname LnameJames AndersonStuart BoardAlec StewartPeter KirstenSo, here I need...
View ArticleIndex fragmentation was high
Hi Team,Index fragmentation was high below VPX_HIST_STAT1_137 PK_VPX_HIST_STAT1_137 1 3280 98.5185185185185 CLUSTEREDRequest to you guys how can we fix this issues please suggest me.subu
View ArticleProblem with Copying/Pasting Into Excel
Hi There,I have a couple of reports that I run a query on each week and paste the end results into an excel document. I've recently run into a problem with a particular one where it gives me the...
View ArticleHow to initialize a database..
Hi, Is there a SQL statement to initialize a database?Thanks
View ArticleDatetime conversion
Hi All,I want to convert date from Monday, January 23, 2012 to dd/mm/yyyy in sql server 2008, I have stored Monday, January 23, 2012 in my table as varchar(50).Thanks in advanceWarm Regards,Sunil
View ArticleConvert SQL Server 2012 Evaulation License to Core License without Reinstall ?
For a particular production server, we have been using "SQL Server 2012 Evaluation License". Now, we have purchased "SQL Server 2012 Core License".We would like to know whether it is possible to...
View ArticleSQL Server 2008- procedure optimisation
Hi Experts, I need to optimize the procedure below (SQL Server 2008) and badly need help: I am thinking to reduce search space o Splitting the joins and create intermediate (smaller) results o...
View Articlesql Cals Downgrade
Is it possible to use SQL Server 2014 CALs to access SQL Server 2012. I am using Open licenseCals downgrade
View ArticleStack dump in 2005 server
Hi All,Please help me in resolving this issue.==================================================================== BugCheck Dump =====================================================================...
View Articletemp table insertion
SELECT SERVERPROPERTY('ComputerNamePhysicalNetBIOS') this returns the name of active server nodeso if the name of the server is abc i want to return 1 in temp table if the name of the server is xyz i...
View ArticleMultiple relationship for the same field
Hello !I have this situation :Table : Article Idnamecategory.........................Table : Servicesidnamenrvalue-------------------------Table :...
View ArticleProtect my sql server database
Hello !I have created an application that use a sql server database.But the problem is that a user can open sql server management studio and can do anything that I don't like , for example :1) Can...
View Articleguest and password policy queries
Is there any way for sql 2000, 2005 and 2008 (guessing it will be a different query for each) to list:1) The guest account status for each database in an instance , i.e is guest enabled yes/no2) the...
View ArticleYear function reteives different values
SELECT year(convert(date,'24-10-49',5)) --dd-mm-yy--2049SELECT year(convert(varchar(10),'24-10-49',5)) --dd-mm-yy--2049SELECT year(convert(date,'24-10-50',5)) --dd-mm-yy--1950SELECT...
View ArticleLong query time
Hey,I'm just learning how to use SQL, but now ive got this problem.When I'm running the code beneath it take more than a hour to complete while friends of me run this in less then 5 min.Hope any of you...
View ArticleGrant permission on JOB in SQLagent inorder to modify steps in it
after i create a job in SQL Agent and schedule it, my DBA changes the owner . but there is always something and have to modify the job.. when he gives me back permission to modify . i cannot really...
View ArticleOverview of existing SQL Server Logins, for edit/delete options
Hi all,in my Sql Server Management Studio, I can create a new login by right-clicking the "security" item on the object explorer in the left, and selecting new->Login.Where can I, however, get an...
View ArticleBackup not happening
DECLARE @name VARCHAR(50) DECLARE @path VARCHAR(256) DECLARE @fileName VARCHAR(256) DECLARE @fileDate VARCHAR(20) SET @path = 'Y:\Dbbackup\' SELECT @fileDate = CONVERT(VARCHAR(20),GETDATE(),112)...
View Article