473,478 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQL DTS Transform Task - new output table

5 New Member
Hi,

I am building a series of small dts packages of the form:
1. Drop work Table n
2. Transform, (by query), a previous table, (it exists), into the work Table n

The intention is to then create a master DTS which runs the small DTS packages in the correct order. In principle I have done this before, (from an existing table into a truncated existing table)

DTS sometimes allows this, and sometimes fails, with an invalid object even if the table does not exist.

I have tried the following series of table to table names:
400 => 400.1: worked once now stops with invalid object
400 => T400.1: worked then ditto
400 => T400_1: worked then ditto - then T400_1 => T400_2: worked but then original stopped working
400 = > 400A: worked but then 400A => 400B invalid object

Any ideas welcome
Jan 29 '07 #1
6 1627
iburyak
1,017 Recognized Expert Top Contributor
Try to name your tables with alphanumeric starting with a letter.
Jan 29 '07 #2
JasReedman
5 New Member
Try to name your tables with alphanumeric starting with a letter.
Thanks for the suggestion but I already tried with T400.1 and T400.2 with similar problems.

I have got the 1st two packages to work using Truncate rather than Drop for the work tables.
I did not want that to be the solution because if anyone removes a work table it has to be reset up in its correct format for the Truncate and transformation to work time after time.

I will continue to look for a solution but my current thoughts are to do with the persistance of stored data within DTS - i.e. perhaps needing things to be refreshed? but I think I've tried that already.
Or, perhaps it is something to do with the period in the Table name causing DTS to get confused?
Jan 30 '07 #3
iburyak
1,017 Recognized Expert Top Contributor
Try to do this

[PHP]
Drop table table_name
go

your code here. [/PHP]

GO will make system finish first statement before moving to next.

I would change [.] to [_] in table name.

Good Luck.
Jan 30 '07 #4
JasReedman
5 New Member
Try to do this

[PHP]
Drop table table_name
go

your code here. [/PHP]

GO will make system finish first statement before moving to next.

I would change [.] to [_] in table name.

Good Luck.
I will try - thanks
Jan 31 '07 #5
JasReedman
5 New Member
Hi,

I am building a series of small dts packages of the form:
1. Drop work Table n
2. Transform, (by query), a previous table, (it exists), into the work Table n

The intention is to then create a master DTS which runs the small DTS packages in the correct order. In principle I have done this before, (from an existing table into a truncated existing table)

DTS sometimes allows this, and sometimes fails, with an invalid object even if the table does not exist.

I have tried the following series of table to table names:
400 => 400.1: worked once now stops with invalid object
400 => T400.1: worked then ditto
400 => T400_1: worked then ditto - then T400_1 => T400_2: worked but then original stopped working
400 = > 400A: worked but then 400A => 400B invalid object

Any ideas welcome
Apologies - I did not say that the problem occurs within the DTS Design Package and that I use a Workflow connection to sequence the events using the 'On Success' mode.

I hope there is someone out there that can help in this niche area.

Thanks again - John
Feb 1 '07 #6
JasReedman
5 New Member
Hi,

I am building a series of small dts packages of the form:
1. Drop work Table n
2. Transform, (by query), a previous table, (it exists), into the work Table n

The intention is to then create a master DTS which runs the small DTS packages in the correct order. In principle I have done this before, (from an existing table into a truncated existing table)

DTS sometimes allows this, and sometimes fails, with an invalid object even if the table does not exist.

I have tried the following series of table to table names:
400 => 400.1: worked once now stops with invalid object
400 => T400.1: worked then ditto
400 => T400_1: worked then ditto - then T400_1 => T400_2: worked but then original stopped working
400 = > 400A: worked but then 400A => 400B invalid object

Any ideas welcome
SOLUTION:

1.Click on any Table Object then All Tasks & Generate SQL Script

2, Save the default script to a location of your choice
(you now have the SQL to Drop the Table you identified, and also,
Create the equivalent table.)
3. In the DTS Design Package the first step, (which should be an 'Execute SQLTask'), can now be copied from the SQL Script to
(a) Drop the Table, and then,
(b) Recreate the table

The Script contains GO commands - don't worry - just copy the lot in.

Your New task will now effectively flush out the old copy and recreate a blank copy , allowing the following Transform Task to populate the empty table with the required data.
Feb 1 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2329
by: David | last post by:
I would like to be able to re-sort data in an HTML table on the without returning to the server. It seems like an XSLT should be able to accomplish this, but I can't find enough information... ...
0
1593
by: Sharon | last post by:
Hi y'all, I have a Delphi dll which generates XML from data in a db. I then use an XSL to transform and display the data in tabular form. Now what I want is a link saying 'export table', and make...
4
5743
by: B Johnson | last post by:
I am trying to transform an xml document using an xsl document into HTML. I am getting the following error: "There are multiple root elements in the output XML." So I had the contents of...
8
2168
by: Luther Miller | last post by:
I am using the XML tranform functionality in .NET to transform data in a DataSet into XMLSS using an XSLT file I have created. There are about 100 columns and only about 120 rows in the data...
6
2466
by: Stephen Cook | last post by:
Having worked through the problems around enabling the document function using an XmlUrlResolver I started work on building a useful class to hide the intricacies. Trying to generalise the process...
3
1937
by: b0yce | last post by:
Hi Group, I think I have found a problem with the <xsl:element> when being transformed by the .NET xmlTransform class. When using XmlSpy for development and debugging, the <xsl:number>...
3
2113
by: Andy | last post by:
Hi all, I'm having a problem doing an Xslt transform in code. I've done it before, so I'm not really sure why its not working. The problem is that the result of the transform is an empty...
1
2659
by: Danny Lesnik | last post by:
Hi i have my XML file c:\prd.xm <?xml-stylesheet type="text/xsl" href="prd.xsl"?><products><product><a>2</a><b>3</b></product><product><a>4</a><b>2</b></product></products This is my XSL file...
3
1816
by: vitaly.tomilov | last post by:
I'm using an ASP.NET form to display data from my database table, and I'm doing it in the following way: XmlDataDocument doc = new XmlDataDocument(mydataSet); XPathNavigator nav =...
0
7027
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7067
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6719
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6847
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4463
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2980
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
555
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.