473,594 Members | 2,651 Online
Bytes | Software Development & Data Engineering Community
+ 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 1629
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
2340
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... I have am XML file generated on the server that looks something like this: <?xml version="1.0" encoding="utf-8" ?> <?xml-stylesheet type="text/xsl" href="search.xsl"?> <AlbumSearch version="3.0" time="02Apr04 10:54:31 EST"> <SearchResults...
0
1603
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 it so that either the user can save a generated csv or (this would be really great) that MSExcel is opened, displaying the table. I have already written an XSL that generates data in CSV format as well as a transform function but when I save and...
4
5753
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 the loaded xml document written out on screen - copied it and placed the contents in a physical file and saved it. I then created a simple HTML
8
2170
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 table being transformed - modest amount of data to say the least. The transform takes at least 10 seconds on a fast machine, which seems absolutely ridiculous. The DataSet contains many other tables in addition to the one I am
6
2475
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 I've hit a snag. How do I resolve multiple external references? The transform method on a stylesheet only takes one resolver, not an array Stephen
3
1948
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> subsitutes the position of the node correctly as I expected. This is fine with MSXML 3.0 & MSXML 4.0 plus the XmlSpy internal engine. I have been able to reproduce using a simpler Xml and Xsl to demonstrate; XML
3
2128
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 string. I expected the xml to be transformed into a plain text document. Everything works fine when i transform using XmlPad. Here's the code (which does generate the Xml properly): Sample XML:
1
2680
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 <?xml version="1.0" encoding="windows-1255" ?><xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:utils="urn:galileo-com:msxsl-jscript-utilities" version="1.0"><xsl:template...
3
1827
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 = doc.CreateNavigator(); XslTransform xslTran = new XslTransform(); xslTran.Load("Transform.XSL"); xslTran.Transform(nav, null, Response.Output, null); This produces me a nice HTML page with enhanced formatting specified
0
7874
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8246
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8000
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5738
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3854
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3895
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1476
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1205
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.