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 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 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 Cals Downgrade
Is it possible to use SQL Server 2014 CALs to access SQL Server 2012. I am using Open licenseCals downgrade
View ArticleBackup MDF File Manually
Folks, I have card access software program using SQL database on a pc. Version of sql is desktop 8 edition and pc is off the network. To backup the database can I just manually copy the .mdf file to...
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 fix Login failed for user ''. (Microsoft SQL Server, Error: 18456)in...
Hi All,we are facing the Login fails issue .how to resolve the bellow error , could you please suggested the possible ways .. ASAP TITLE: Connect to Server------------------------------ Cannot connect...
View ArticleBackup DB with dynamic sql - want to substitute in dbname and disk file path
Re: Backup DB with dynamic sql - want to substitute in dbname and disk file pathHope I can explain this. Below is a small snippet of code. I want to set @SQLTemplate_TSQL once at the top of the script...
View ArticleMultiple relationship for the same field
Hello !I have this situation :Table : Article Idnamecategory.........................Table : Servicesidnamenrvalue-------------------------Table :...
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 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 ArticleStack dump in 2005 server
Hi All,Please help me in resolving this issue.==================================================================== BugCheck Dump =====================================================================...
View ArticleDatabase Copy to another
I have a SQL database on Server1 called DB1. I need that entire database copied over to a different server (call it Server2) each night. I'd like to schedule a SQL Agent job to do this. I'd prefer not...
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 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 ArticleCreating a database installer using this article from microsoft
Hi, I have been reading the below article and I have got it to work. http://msdn.microsoft.com/en-us/library/49b92ztk.aspxThe problem is when I use my database script file it throws an error 1001...
View Article