Viewing 15 posts - 3,151 through 3,165 (of 8,753 total)
mrpolecat (9/25/2016)
If an agreement starts on 1/1/2016 then the baseline incentive...
September 25, 2016 at 7:35 am
pietlinden (9/24/2016)
I have a simple data warehouse. Looks pretty much like your standard sales data warehouse with dimensions (why do I want to write "Dementias"??) like:
Customer
Product
Calendar
Territory...
The only...
September 25, 2016 at 5:08 am
Quick questions
😎
1) By activity period of 3 months, do you mean three full calendar months, i.e. 1st. January to 1st. April, including both start and end dates?
2) Does the duration...
September 25, 2016 at 4:00 am
Quick questions
1) How large are the data sets which are being processed in the SSIS packages?
2) Are those sets sorted within the packages?
3) Are the DefaultMaxBufferSize and...
September 23, 2016 at 11:40 pm
rodjkidd (9/23/2016)
Thanks for replying.
I'm actually on my way home.
I'll check when I get in.
I had to anonomise the data manually so I may have messed up something. Both the...
September 23, 2016 at 1:14 pm
GilaMonster (9/23/2016)
Eirikur Eiriksson (9/23/2016)
the @with additional parameters should be all in one line, something along this line:
@with = 'replace ,move "Logicalfilename" to "F:\Data\TestDB.mdf" ,move LogicalFilenameofLog" to "F:\Logs\TestDB.ldf"'
Restore is whitespace agnostic,...
September 23, 2016 at 8:42 am
ramana3327 (9/23/2016)
I am facing issues with database restoration using different server backup.
We have SQL 2005 instance. I took backup of the database (Nearly 1 TB) using Litespeed.
The command I...
September 23, 2016 at 8:17 am
Quick thought, the value of the variable will not be compiled but set at run time
😎
CTE example to get an execution plan
DECLARE @VAR_01 INT;
SET ...
September 23, 2016 at 8:09 am
Cleaned up the XML, here is a query that brings back the desired tags by the looks of it, not all the values are matching though???.
😎
DECLARE @TXML XML = N'<?xml...
September 23, 2016 at 7:56 am
rodjkidd (9/23/2016)
September 23, 2016 at 6:21 am
Everything needed was already in the code sample;-), here is a function that returns one year
😎
USE TEEST;
GO
SET NOCOUNT ON;
GO
CREATE FUNCTION dbo.ITVFN_CALENDAR_YEAR
(
@YEAR INT
)
RETURNS TABLE
WITH...
September 22, 2016 at 5:10 am
Quick inline calendar table example using the sample data posted previously on this thread.
😎
USE TEEST;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'tempdb..#tamp') IS NOT NULL DROP TABLE #tamp;
CREATE TABLE #tamp
( WeekNo INT, FromDate SMALLDATETIME,...
September 22, 2016 at 4:10 am
For a variable inside the procedure use this
😎
DECLARE @MY_INT_VAR INT;
SET @MY_INT_VAR = 0;
September 22, 2016 at 2:18 am
joeroshan (9/21/2016)
Select
CustomeridID.Data as CustomeridID ,
AccountID.Data as AccountID,
EnquiryName.Data as EnquiryName,
Source.Data as Source,
EventDate.Data as EventDate,
EventDays.Data as EventDays,
EnquiryCreatedDate.Data as EnquiryCreatedDate,
Description.Data as Description
FROM dbo.[DataTEST]...
September 21, 2016 at 6:38 am
This will pivot the data sets to columns
😎
IF OBJECT_ID(N'dbo.DataTEST') IS NOT NULL DROP TABLE dbo.DataTEST;
CREATE TABLE [dbo].[DataTEST](
[ID] [int] IDENTITY(1,1) NOT NULL,
Data [varchar](255) NULL
) ON [PRIMARY]
INSERT INTO dbo.[DataTEST]
...
September 21, 2016 at 4:26 am
Viewing 15 posts - 3,151 through 3,165 (of 8,753 total)