Viewing 15 posts - 1 through 15 (of 282 total)
This what you are looking for?
DECLARE @Today datetime
SELECT @Today = getdate()
SELECT idx,
CASE
--1 or more days
WHEN DATEDIFF(mi,crtDte, @Today) >= 1440 THEN CONVERT(varchar(15), DATEDIFF(mi,crtDte, @Today) / 1440 ) +' days...
April 21, 2015 at 3:47 pm
If I am understanding your question properly, you might want to look here:
https://technet.microsoft.com/en-us/library/aa337169(v=sql.100).aspx]
The link discusses how to setup dependent parameters in SSRS.
April 21, 2015 at 2:48 pm
Before you start installing SP1, you should read this:
December 20, 2012 at 2:22 pm
You may want to be aware of this major problem in SP1.
December 20, 2012 at 2:20 pm
Generally speaking I have found in the past that OPENXML is faster if you need all the XML. XQuery is faster when searching for a value within the XML...
September 27, 2012 at 2:58 pm
The biggest disadvantage in my opinion is the data in the DMVs is reset upon SQL restart. So if you are trying to do trending type of reports, you'll...
July 25, 2012 at 9:53 am
The answer to this depends on many factors.
1. What are your bottlenecks now? Memory? CPU? Blocking? Other?
2. What's your budget?
3. How much control...
July 25, 2012 at 9:51 am
Without more detail it's hard to say, but if I had to guess... Is there a query with a sub-optimal execution plan against a table that is either growing...
July 25, 2012 at 9:45 am
Could you post an exact copy of the error?
July 25, 2012 at 9:39 am
nagkarjun1 (7/24/2012)
Backup AW2012 production database on AWPServer
Lookup BACKUP DATABASE in books online and then execute a BACKUP command
nagkarjun1 (7/24/2012)
copy to AWTServer test database server
Copy / Paste .bak file
nagkarjun1 (7/24/2012)
July 24, 2012 at 1:56 pm
In VS go to the menu -- Tools >> Options >> Database Tools >> Transact-SQL Editor >> Query Execution >> ANSI
Here you will find the SET QUOTED_IDENTIFIER option...
July 24, 2012 at 1:45 pm
One way would be to hi the sys.partitions table. Here's an example of a query that returns row counts for every table in the msdb database. You could...
July 19, 2011 at 7:28 am
Viewing 15 posts - 1 through 15 (of 282 total)