Viewing 15 posts - 2,806 through 2,820 (of 7,191 total)
Possibly the stop_execution_date stays NULL if the job is cancelled or interrupted? That would mean any such jobs will appear in your result set until the cancelled execution is...
February 3, 2016 at 4:34 am
msh083 (2/3/2016)
how to set name for first select and second select for use in last select
John
February 3, 2016 at 2:09 am
No, it fails two tests of being a primary key, namely that there can only be one in a table, and that each of its values must be unique. ...
February 3, 2016 at 1:13 am
Luis Cazares (2/2/2016)
SELECT *,
...
February 2, 2016 at 9:15 am
WITH AllHours AS (
select name, SUM(CASE WHEN CallType IN ('Y', 'C', 'E') THEN 0.0
...
February 2, 2016 at 8:45 am
Create your new drive - call it H or something. Stop replication. Take the databases offline. Copy everything from G to H. Take G offline and...
February 2, 2016 at 8:22 am
I think you're confusing column names with variables. Either way, this should get you started:
DECLARE @BaseDate date;
SET @BaseDate = '19000101';
WITH SampleData ([Year], TempQuarterlyPeriod) AS (
SELECT 2000, 1 UNION ALL
SELECT...
February 2, 2016 at 7:37 am
Have a look at the CAST and CONVERT topic in Books Online. You may have to do a bit of manipulation on your string, for example adding a year...
January 29, 2016 at 10:00 am
I have an SSIS package that does all this. It chooses ten databases at random from the whole estate and restores them one by one from the latest full,...
January 29, 2016 at 3:31 am
There's only one row in Table1. If you want your result set only to have one row, how do you decide whether to take English or French?
John
January 28, 2016 at 5:30 am
No, COALESCE returns the first non-null value from the list of arguments (or NULL if all the arguments are null). If you post some table DDL and a few...
January 28, 2016 at 5:13 am
Yes, different version, different edition, different server collation, different sysadmins, different firewall rules, and so on. Or maybe you need to have two databases with the same name.
John
January 28, 2016 at 5:11 am
COALESCE(Table2.ExampleA,Table1.ExampleA)
John
January 28, 2016 at 4:41 am
Simon
That's how SQL Server works. It grabs as much memory as you allow it, and doesn't give it back unless the operating system asks for it. If you...
January 27, 2016 at 8:34 am
Jeff Moden (1/26/2016)
John Mitchell-245523 (1/25/2016)
January 27, 2016 at 2:09 am
Viewing 15 posts - 2,806 through 2,820 (of 7,191 total)