Viewing 15 posts - 2,221 through 2,235 (of 4,820 total)
I'm not sure I understand why you would even ask that question. The purpose of replication is to keep a working copy of a database current, and usually in near...
September 25, 2017 at 6:40 am
September 25, 2017 at 6:29 am
dan_ie - Friday, September 22, 2017 8:53 AMThank you for the compacted version. Very useful.
You're welcome!
September 22, 2017 at 2:10 pm
Might as well go ahead and do the trace. 🙂 Indeed those older versions don't have much applicability any more.
September 22, 2017 at 11:16 am
How about we try the following:WITH DimTables AS (
SELECT t.[name] AS TableName
, s.[name] AS SchemaName
, t.[Object_ID] AS TableID
FROM DWH_Staging.sys.tables AS t
INNER JOIN DWH_Staging.sys.schemas AS s
ON...
September 22, 2017 at 11:14 am
SET @sql = 'SELECT DISTINCT ' +...September 22, 2017 at 10:43 am
20 Seconds to count ALL the table's columns number of distinct values ? You might not have all that much data, or just not that many overall columns. I would...
September 22, 2017 at 10:39 am
Just wanted to look at an alternative that appears to perform better:--Sample Tables
CREATE TABLE #Table1 (ID int PRIMARY KEY CLUSTERED, Depth int);
CREATE TABLE #Table2 (ID int, Vegetable varchar(10), Depth int,...
September 22, 2017 at 9:17 am
I've been wondering about the DT2 columns. The columns in the originating and target...
September 22, 2017 at 8:32 am
You could do something like this and then copy and paste the SQL_TEXT column into SSMS for execution, and you could modify the WHERE clause to suit your objectives:SELECT...
September 22, 2017 at 8:29 am
hoseam - Friday, September 22, 2017 7:22 AMHow then do I SELECT only datime from this:20170913100320
Assuming there are always exactly...
September 22, 2017 at 8:13 am
A slightly more compact version:UPDATE a
SET a.source='CP',
a.PREVENTCOPY = L.PREVENTCOPY,
a.PREVENTPRINT = L.PREVENTPRINT,
a.ISAMOVAR = L.ISAMOVAR,
a.ID = L.ID,
a.MREADONLY = L.MREADONLY,
a.FIELDLEN = L.FIELDLEN,
a.EDITTYPE = L.EDITTYPE,
a.FIELDTITLE...
September 22, 2017 at 7:20 am
Have you validated that the data types in your destination table are a match for the same exact table that is the destination snapshot replica ? Next step is to...
September 22, 2017 at 7:07 am
I have to agree with John Mitchell - your query has a few holes in it. You have no table alias "lc", so that's just not right. I also see...
September 22, 2017 at 6:57 am
Viewing 15 posts - 2,221 through 2,235 (of 4,820 total)