Viewing 15 posts - 3,151 through 3,165 (of 8,761 total)
Luis Cazares (9/26/2016)
mw112009 (9/26/2016)
Sorry, but the first 2 entries in your solution should not be there. The output that I wanted will have exactly 3 "\" characters included.
I will...
September 26, 2016 at 11:41 am
Quick alternative to Luis's fine solution
😎
IF OBJECT_ID(N'tempdb..#t') IS NOT NULL DROP TABLE #t;
CREATE TABLE #t( pathx VARCHAR(400) ) ;
INSERT INTO #t ( pathx ) VALUES ( '/CaseRateAnalysis/');
INSERT INTO #t (...
September 26, 2016 at 11:18 am
Kaxtanhu (9/26/2016)
I've a column in a table with type NVARCHAR(50), with values that now "people" decided to turn it in an encrypted value. The only way that I...
September 26, 2016 at 3:22 am
Quick suggestion
😎
;WITH FIRST_NAME_DATA AS
(
SELECT
FN.C_ID
,FN.C01
FROM dbo.TestTbl1 ...
September 25, 2016 at 10:34 am
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
Viewing 15 posts - 3,151 through 3,165 (of 8,761 total)