Quantcast
Channel: Forum Getting started with SQL Server
Browsing all 7129 articles
Browse latest View live

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 Article


Maintaince 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 Article


How 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 Article

Index 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 Article

Problem 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 Article


How to initialize a database..

Hi,  Is there a SQL statement to initialize a database?Thanks

View Article

Datetime 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 Article

Convert 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 Article


SQL 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 Article


sql Cals Downgrade

Is it possible to use SQL Server 2014 CALs to access SQL Server 2012. I am using Open licenseCals downgrade

View Article

Stack dump in 2005 server

Hi All,Please help me in resolving this issue.====================================================================  BugCheck Dump  =====================================================================...

View Article

temp 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 Article

Multiple relationship for the same field

Hello !I have this situation :Table : Article Idnamecategory.........................Table : Servicesidnamenrvalue-------------------------Table :...

View Article


Protect 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 Article

guest 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 Article


Year 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 Article

Long 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 Article


Grant 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 Article

Overview 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 Article

Backup 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
Browsing all 7129 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>