Quantcast
Channel: Getting started with SQL Server forum
Browsing all 9243 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


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

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 Cals Downgrade

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

View Article

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

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

Multiple relationship for the same field

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

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


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

Stack dump in 2005 server

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

View Article


Database 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 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

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

Creating 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
Browsing all 9243 articles
Browse latest View live


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