Viewing 15 posts - 226 through 240 (of 506 total)
Here's another solution:DROP FUNCTION IF EXISTS dbo.FirstMonday
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Joe Torre
-- Create date: 5/4/2018
-- Description: Returns the first Monday in the month before the date passed...
May 4, 2018 at 3:17 pm
UPDATE prc
SET fieldvalue = prs.requestind
, prc.datelstmod = GetDate()
FROM dbo.process prc
JOIN dbo.person prs
ON prc.personid = prs.personid;
May 3, 2018 at 12:44 pm
Please check this out. You may need to apply SQL Server 2014 Cumulative Update 4 or above
May 2, 2018 at 5:05 pm
DECLARE @t table(Svr varchar(10), Dt date, Cnt smallint);
INSERT @t ( Svr, Dt, Cnt )
VALUES
( 'SRV1', '20180325', 1 )
, ( 'SRV1', '20180406', 59)
, ( 'SRV1', '20180407', 9 )
, ( 'SRV1',...
May 1, 2018 at 5:28 pm
ALTER ANY <Database Securable>, where Database Securable can be any securable at the database level.GRANT ALTER ANY TABLE TO AppUser;
Confers the ability to CREATE, ALTER, or DROP individual...
April 26, 2018 at 9:53 am
Is this what you mean:
DECLARE @t table(name varchar(20), age tinyint, country varchar(20));
SET NOCOUNT ON;
INSERT @t ( name, age, country )
VALUES ( 'Ana', 21, 'US' )
April 25, 2018 at 12:14 pm
One way would be to create a VM running a version of windows that supports SQL Server 2000, install SQL Server 2000. Script the database and objects and run it...
April 20, 2018 at 11:21 am
When you rebuild an index it updates statistics as well.
April 19, 2018 at 2:31 pm
CREATE Procedure [dbo].[getDashboard]April 18, 2018 at 5:34 pm
Taking log backups on a database in Full Recovery Mode periodically between Full Backups allows point in time recovery and limits the potential for data loss to the last log...
April 18, 2018 at 12:41 pm
Don't use the GUI to create the view, instead write a create view statement.
April 18, 2018 at 12:25 pm
Please have a look here.
You my need to nest you IIF
Iif(Fields!DBName.Value <> "tempdb",
Iif(Fields!State_desc.Value = "ONLINE", IsNothing(Fields!Physical_device_name.Value),"Orange"
, "LightGreen"),
"LightGreen"),
April 18, 2018 at 12:17 pm
Is there a reason you don't use bcp or SSIS?
April 16, 2018 at 2:37 pm
I would split the dates out into a different related table with a date type column to identify what the is, like completed and a bit column indicating if it's...
April 16, 2018 at 10:21 am
Viewing 15 posts - 226 through 240 (of 506 total)