Re: Automatically create table name

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am not sure what you want here

1. DTS to do a table rename only?

I presume you would want a Customer table empty afterwards right?

Have you looked at SELECT INTO followed by a TRUNCATE ?

2. You want to have DTS populate a new table everyday which has a name
change?

Simply rename the DestinationObjectName of the DataPump task. If the
structire is the same you're done.

3. You want DTS to create a new instance of the Customer table, named
accordingley and populate that through DTS?

You can issue a CREATE TABLE statement that has been built in an Active
Script task and then change the DestinationObjectName of the DataPump task
to the new object name.


A few options there as I am unsure as to what you actually need.

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Kris" <Kris@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4B165AD1-3BC4-4341-A9C1-8706E1B12651@xxxxxxxxxxxxxxxx
> Hi All,
>
> I want to rename table automatically .How can i do this ?
>
> from example table name is Customer --> wants to rename every day as
>
> Customer --> Customer_20050708 on next day
> Customer --> Customer_20050709
>
> any help ..
> Thanks
>


.



Relevant Pages

  • Re: Error Trapping within a DTS Package
    ... I was looking for a quick and dirty solution ... >>for the DataPump task and if it is the intermittent BasisPlus ODBC ... > There is no simple way in pure DTS to get that error info. ... > you only have variant, not any other type in VBScript). ...
    (microsoft.public.sqlserver.dts)
  • Re: DTS Email does not send attachment
    ... The Connection On Completion option is checked in the DataPump task. ... When the DTS is run, no errors are reported, just no attachment. ... G. Stark ...
    (microsoft.public.sqlserver.dts)
  • Re: DTS Step Fail
    ... 'SP' represents the name of the stored procedure - 'CheckSpace_DriveUpdate' ... If I were to use a Datapump task or TSQL statment, ... > www.SQLDTS.com - The site for all your DTS needs. ... >> global variables - runs fine if executing step on it's own, ...
    (microsoft.public.sqlserver.dts)
  • Re: Update files based using values from another file
    ... Should have said using DTS - sorry ... Michael Vardinghus wrote in message ... I have a customer file with a field for turnover ... >> it plus a second file with turnover figures in it for each customer. ...
    (microsoft.public.sqlserver.dts)
  • Re: Export to text
    ... DataPump task is not for you. ... Allan Mitchell MCSE,MCDBA, www.SQLDTS.com - The site for all your DTS needs. ... Each time the query changes, all the transforms need> to ... > not to mention that I cannot seem to find documentation on how to do this> anyhow. ...
    (microsoft.public.sqlserver.dts)