On Dec 18 2006, 9:43 pm, "Chris Le Roquais"
<christophe.leroqu...@.gmail.com> wrote:
> Hi there,
> I would like to know if this is a usual practice to having an ETL able to
> cancel (rollback) the move of data that has been done into a destination.
> In other words, after having inserted data into a destination, can we go
> back to a previous state?
> Is that common to do that? How to do that? What do we need to consider
> before implementing such a feature? What tools/solutions are available to
> activate this feature?
> I personaly use MS SSIS as an ETL tool
> Thanks,
>
Christophe,
Common practice (See Kimball DW Toolkit) is to maintain an audit table
in the datawarehouse. Each row inserted/updated in the datawarehouse
is then assigned an AuditKey such that all records associated with a
Load can be identified.
Rgds,
Garrett
I'm just guessing here - but I would imagine SCD transforms would be
difficult to rollback - but not identify.
<garrett.fitzsimons@.gmail.com> wrote in message
news:1170776521.710994.166840@.m58g2000cwm.googlegr oups.com...
> On Dec 18 2006, 9:43 pm, "Chris Le Roquais"
> <christophe.leroqu...@.gmail.com> wrote:
> Christophe,
> Common practice (See Kimball DW Toolkit) is to maintain an audit table
> in the datawarehouse. Each row inserted/updated in the datawarehouse
> is then assigned an AuditKey such that all records associated with a
> Load can be identified.
> Rgds,
> Garrett
>
>
Showing posts with label previous. Show all posts
Showing posts with label previous. Show all posts
Thursday, March 29, 2012
ETL - cancel changes and going back to a previous state
Hi there,
I would like to know if this is a usual practice to having an ETL able to
cancel (rollback) the move of data that has been done into a destination.
In other words, after having inserted data into a destination, can we go
back to a previous state?
Is that common to do that? How to do that? What do we need to consider
before implementing such a feature? What tools/solutions are available to
activate this feature?
I personaly use MS SSIS as an ETL tool
Thanks,
ChristopheOn Dec 18 2006, 9:43 pm, "Chris Le Roquais"
<christophe.leroqu...@.gmail.com> wrote:
> Hi there,
> I would like to know if this is a usual practice to having an ETL able to
> cancel (rollback) the move of data that has been done into a destination.
> In other words, after having inserted data into a destination, can we go
> back to a previous state?
> Is that common to do that? How to do that? What do we need to consider
> before implementing such a feature? What tools/solutions are available to
> activate this feature?
> I personaly use MS SSIS as an ETL tool
> Thanks,
>
Christophe,
Common practice (See Kimball DW Toolkit) is to maintain an audit table
in the datawarehouse. Each row inserted/updated in the datawarehouse
is then assigned an AuditKey such that all records associated with a
Load can be identified.
Rgds,
Garrett|||I'm just guessing here - but I would imagine SCD transforms would be
difficult to rollback - but not identify.
<garrett.fitzsimons@.gmail.com> wrote in message
news:1170776521.710994.166840@.m58g2000cwm.googlegroups.com...
> On Dec 18 2006, 9:43 pm, "Chris Le Roquais"
> <christophe.leroqu...@.gmail.com> wrote:
> Christophe,
> Common practice (See Kimball DW Toolkit) is to maintain an audit table
> in the datawarehouse. Each row inserted/updated in the datawarehouse
> is then assigned an AuditKey such that all records associated with a
> Load can be identified.
> Rgds,
> Garrett
>
>
I would like to know if this is a usual practice to having an ETL able to
cancel (rollback) the move of data that has been done into a destination.
In other words, after having inserted data into a destination, can we go
back to a previous state?
Is that common to do that? How to do that? What do we need to consider
before implementing such a feature? What tools/solutions are available to
activate this feature?
I personaly use MS SSIS as an ETL tool
Thanks,
ChristopheOn Dec 18 2006, 9:43 pm, "Chris Le Roquais"
<christophe.leroqu...@.gmail.com> wrote:
> Hi there,
> I would like to know if this is a usual practice to having an ETL able to
> cancel (rollback) the move of data that has been done into a destination.
> In other words, after having inserted data into a destination, can we go
> back to a previous state?
> Is that common to do that? How to do that? What do we need to consider
> before implementing such a feature? What tools/solutions are available to
> activate this feature?
> I personaly use MS SSIS as an ETL tool
> Thanks,
>
Christophe,
Common practice (See Kimball DW Toolkit) is to maintain an audit table
in the datawarehouse. Each row inserted/updated in the datawarehouse
is then assigned an AuditKey such that all records associated with a
Load can be identified.
Rgds,
Garrett|||I'm just guessing here - but I would imagine SCD transforms would be
difficult to rollback - but not identify.
<garrett.fitzsimons@.gmail.com> wrote in message
news:1170776521.710994.166840@.m58g2000cwm.googlegroups.com...
> On Dec 18 2006, 9:43 pm, "Chris Le Roquais"
> <christophe.leroqu...@.gmail.com> wrote:
> Christophe,
> Common practice (See Kimball DW Toolkit) is to maintain an audit table
> in the datawarehouse. Each row inserted/updated in the datawarehouse
> is then assigned an AuditKey such that all records associated with a
> Load can be identified.
> Rgds,
> Garrett
>
>
Monday, March 26, 2012
Escaping [characters with text lengths over 4000 characters
In a previous post I mentioned you will get into problems when trying to
update DataSets containing rows with [ characters in ntext or text field
columns. Andrew Conrad (thanks) mentioned that you should escape these, like
so [[]. This will help you, except when the length of the value is over 4000
characters (for ntext) in length. After that the problem of zero affected
rows arises again, despite escaping. How come? How to solve?
Thanks.
AlexThe REPLACE fuction (and other SQL Server string functions) will not operate
on data larger than 8000 bytes -- for an NVARCHAR datatype, that means 4000
characters (2 bytes per character). Can you perform the replace on the
client, before passing the data to SQL Server?
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--
"Alex Thissen" <athissen A T killer-apps.nl> wrote in message
news:uNIrcZPFFHA.3284@.TK2MSFTNGP09.phx.gbl...
> In a previous post I mentioned you will get into problems when trying to
> update DataSets containing rows with [ characters in ntext or text field
> columns. Andrew Conrad (thanks) mentioned that you should escape these,
like
> so [[]. This will help you, except when the length of the value is over
4000
> characters (for ntext) in length. After that the problem of zero affected
> rows arises again, despite escaping. How come? How to solve?
> Thanks.
> Alex
>|||Hi Adam,
Thanks for thinking with me on this one. I don't use the REPLACE functions.
Instead, I make sure that the OriginalVersion of my DataRow in the DataSet
has the replaced value. Then the SqlXmlAdapter builds the UPDATE statement
for me, but it uses an optimistic locking scheme by comparing all columns
with the original values.For the (n)text fields the LIKE operator is used,
but as I mentioned this one breaks with values over 8000 bytes and [ chars
in it. I also wrote a (teasing) weblog entry on it, that you can find here:
http://www.alexthissen.nl/weblog/Pe...br />
8c42070.
You might want to read up on it, since this problem is hardly related to
SQLXML. It could be circumvented if there was a possibility to influence the
SQL that is generated. An option to exclude fields from the optimistic
locking would solve it directly.
So, my question remains, given that the LIKE operator breaks for lengths
over 8000 bytes WITH escaped [ characters in it ( as [[] ) in it, how do I
get my DataSets that contain such values to get updated through SQLXML?
Thanks, Alex
"Adam Machanic" <amachanic@.hotmail._removetoemail_.com> wrote in message
news:uvUE$$VFFHA.1348@.TK2MSFTNGP14.phx.gbl...
> The REPLACE fuction (and other SQL Server string functions) will not
> operate
> on data larger than 8000 bytes -- for an NVARCHAR datatype, that means
> 4000
> characters (2 bytes per character). Can you perform the replace on the
> client, before passing the data to SQL Server?
> --
> Adam Machanic
> SQL Server MVP
> http://www.sqljunkies.com/weblog/amachanic
> --
>
> "Alex Thissen" <athissen A T killer-apps.nl> wrote in message
> news:uNIrcZPFFHA.3284@.TK2MSFTNGP09.phx.gbl...
> like
> 4000
>sql
update DataSets containing rows with [ characters in ntext or text field
columns. Andrew Conrad (thanks) mentioned that you should escape these, like
so [[]. This will help you, except when the length of the value is over 4000
characters (for ntext) in length. After that the problem of zero affected
rows arises again, despite escaping. How come? How to solve?
Thanks.
AlexThe REPLACE fuction (and other SQL Server string functions) will not operate
on data larger than 8000 bytes -- for an NVARCHAR datatype, that means 4000
characters (2 bytes per character). Can you perform the replace on the
client, before passing the data to SQL Server?
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--
"Alex Thissen" <athissen A T killer-apps.nl> wrote in message
news:uNIrcZPFFHA.3284@.TK2MSFTNGP09.phx.gbl...
> In a previous post I mentioned you will get into problems when trying to
> update DataSets containing rows with [ characters in ntext or text field
> columns. Andrew Conrad (thanks) mentioned that you should escape these,
like
> so [[]. This will help you, except when the length of the value is over
4000
> characters (for ntext) in length. After that the problem of zero affected
> rows arises again, despite escaping. How come? How to solve?
> Thanks.
> Alex
>|||Hi Adam,
Thanks for thinking with me on this one. I don't use the REPLACE functions.
Instead, I make sure that the OriginalVersion of my DataRow in the DataSet
has the replaced value. Then the SqlXmlAdapter builds the UPDATE statement
for me, but it uses an optimistic locking scheme by comparing all columns
with the original values.For the (n)text fields the LIKE operator is used,
but as I mentioned this one breaks with values over 8000 bytes and [ chars
in it. I also wrote a (teasing) weblog entry on it, that you can find here:
http://www.alexthissen.nl/weblog/Pe...br />
8c42070.
You might want to read up on it, since this problem is hardly related to
SQLXML. It could be circumvented if there was a possibility to influence the
SQL that is generated. An option to exclude fields from the optimistic
locking would solve it directly.
So, my question remains, given that the LIKE operator breaks for lengths
over 8000 bytes WITH escaped [ characters in it ( as [[] ) in it, how do I
get my DataSets that contain such values to get updated through SQLXML?
Thanks, Alex
"Adam Machanic" <amachanic@.hotmail._removetoemail_.com> wrote in message
news:uvUE$$VFFHA.1348@.TK2MSFTNGP14.phx.gbl...
> The REPLACE fuction (and other SQL Server string functions) will not
> operate
> on data larger than 8000 bytes -- for an NVARCHAR datatype, that means
> 4000
> characters (2 bytes per character). Can you perform the replace on the
> client, before passing the data to SQL Server?
> --
> Adam Machanic
> SQL Server MVP
> http://www.sqljunkies.com/weblog/amachanic
> --
>
> "Alex Thissen" <athissen A T killer-apps.nl> wrote in message
> news:uNIrcZPFFHA.3284@.TK2MSFTNGP09.phx.gbl...
> like
> 4000
>sql
Escaping [ characters with text lengths over 4000 characters
In a previous post I mentioned you will get into problems when trying to
update DataSets containing rows with [ characters in ntext or text field
columns. Andrew Conrad (thanks) mentioned that you should escape these, like
so [[]. This will help you, except when the length of the value is over 4000
characters (for ntext) in length. After that the problem of zero affected
rows arises again, despite escaping. How come? How to solve?
Thanks.
Alex
The REPLACE fuction (and other SQL Server string functions) will not operate
on data larger than 8000 bytes -- for an NVARCHAR datatype, that means 4000
characters (2 bytes per character). Can you perform the replace on the
client, before passing the data to SQL Server?
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
"Alex Thissen" <athissen A T killer-apps.nl> wrote in message
news:uNIrcZPFFHA.3284@.TK2MSFTNGP09.phx.gbl...
> In a previous post I mentioned you will get into problems when trying to
> update DataSets containing rows with [ characters in ntext or text field
> columns. Andrew Conrad (thanks) mentioned that you should escape these,
like
> so [[]. This will help you, except when the length of the value is over
4000
> characters (for ntext) in length. After that the problem of zero affected
> rows arises again, despite escaping. How come? How to solve?
> Thanks.
> Alex
>
|||Hi Adam,
Thanks for thinking with me on this one. I don't use the REPLACE functions.
Instead, I make sure that the OriginalVersion of my DataRow in the DataSet
has the replaced value. Then the SqlXmlAdapter builds the UPDATE statement
for me, but it uses an optimistic locking scheme by comparing all columns
with the original values.For the (n)text fields the LIKE operator is used,
but as I mentioned this one breaks with values over 8000 bytes and [ chars
in it. I also wrote a (teasing) weblog entry on it, that you can find here:
http://www.alexthissen.nl/weblog/Per...-8feda8c42070.
You might want to read up on it, since this problem is hardly related to
SQLXML. It could be circumvented if there was a possibility to influence the
SQL that is generated. An option to exclude fields from the optimistic
locking would solve it directly.
So, my question remains, given that the LIKE operator breaks for lengths
over 8000 bytes WITH escaped [ characters in it ( as [[] ) in it, how do I
get my DataSets that contain such values to get updated through SQLXML?
Thanks, Alex
"Adam Machanic" <amachanic@.hotmail._removetoemail_.com> wrote in message
news:uvUE$$VFFHA.1348@.TK2MSFTNGP14.phx.gbl...
> The REPLACE fuction (and other SQL Server string functions) will not
> operate
> on data larger than 8000 bytes -- for an NVARCHAR datatype, that means
> 4000
> characters (2 bytes per character). Can you perform the replace on the
> client, before passing the data to SQL Server?
> --
> Adam Machanic
> SQL Server MVP
> http://www.sqljunkies.com/weblog/amachanic
> --
>
> "Alex Thissen" <athissen A T killer-apps.nl> wrote in message
> news:uNIrcZPFFHA.3284@.TK2MSFTNGP09.phx.gbl...
> like
> 4000
>
update DataSets containing rows with [ characters in ntext or text field
columns. Andrew Conrad (thanks) mentioned that you should escape these, like
so [[]. This will help you, except when the length of the value is over 4000
characters (for ntext) in length. After that the problem of zero affected
rows arises again, despite escaping. How come? How to solve?
Thanks.
Alex
The REPLACE fuction (and other SQL Server string functions) will not operate
on data larger than 8000 bytes -- for an NVARCHAR datatype, that means 4000
characters (2 bytes per character). Can you perform the replace on the
client, before passing the data to SQL Server?
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
"Alex Thissen" <athissen A T killer-apps.nl> wrote in message
news:uNIrcZPFFHA.3284@.TK2MSFTNGP09.phx.gbl...
> In a previous post I mentioned you will get into problems when trying to
> update DataSets containing rows with [ characters in ntext or text field
> columns. Andrew Conrad (thanks) mentioned that you should escape these,
like
> so [[]. This will help you, except when the length of the value is over
4000
> characters (for ntext) in length. After that the problem of zero affected
> rows arises again, despite escaping. How come? How to solve?
> Thanks.
> Alex
>
|||Hi Adam,
Thanks for thinking with me on this one. I don't use the REPLACE functions.
Instead, I make sure that the OriginalVersion of my DataRow in the DataSet
has the replaced value. Then the SqlXmlAdapter builds the UPDATE statement
for me, but it uses an optimistic locking scheme by comparing all columns
with the original values.For the (n)text fields the LIKE operator is used,
but as I mentioned this one breaks with values over 8000 bytes and [ chars
in it. I also wrote a (teasing) weblog entry on it, that you can find here:
http://www.alexthissen.nl/weblog/Per...-8feda8c42070.
You might want to read up on it, since this problem is hardly related to
SQLXML. It could be circumvented if there was a possibility to influence the
SQL that is generated. An option to exclude fields from the optimistic
locking would solve it directly.
So, my question remains, given that the LIKE operator breaks for lengths
over 8000 bytes WITH escaped [ characters in it ( as [[] ) in it, how do I
get my DataSets that contain such values to get updated through SQLXML?
Thanks, Alex
"Adam Machanic" <amachanic@.hotmail._removetoemail_.com> wrote in message
news:uvUE$$VFFHA.1348@.TK2MSFTNGP14.phx.gbl...
> The REPLACE fuction (and other SQL Server string functions) will not
> operate
> on data larger than 8000 bytes -- for an NVARCHAR datatype, that means
> 4000
> characters (2 bytes per character). Can you perform the replace on the
> client, before passing the data to SQL Server?
> --
> Adam Machanic
> SQL Server MVP
> http://www.sqljunkies.com/weblog/amachanic
> --
>
> "Alex Thissen" <athissen A T killer-apps.nl> wrote in message
> news:uNIrcZPFFHA.3284@.TK2MSFTNGP09.phx.gbl...
> like
> 4000
>
Subscribe to:
Posts (Atom)