Showing posts with label existing. Show all posts
Showing posts with label existing. Show all posts

Monday, March 19, 2012

Importing existing DTS packages.

There doesn't seem to be a specific group covering legacy subsystems so I thought I would post this in here.

I have several hundred of these to import that are going to be left to run as they are until such time somebody has the time to migrate them to SSIS.

I have to say I'm not look forward to doing them one at a time using the brain dead UI (it folds up folders behind itself causing another two mouse click between each import). Is there a way of automating this import?

Thanks.

DTS packages are stored in exactly the same location in 2005 as they were in 2000, after all it is just a backward compatibility feature. If you upgraded a system there would be no change, If you are migrating as part of the "upgrade" then just copy the contents of msdb..sysdtspackages.

This may explain more about DTS storage

Transferring DTS Packages
(http://www.sqldts.com/default.aspx?204)

|||

Thanks for the guidance.

I actually found a utility by following your link above. The tool is called DTSbackup2000. It's more than a backup tool as it also transfers DTS packages between servers, including SQL Server 2005 targets.

Here is a direct link to the download: http://www.sqldts.com/download/DTSBackup2000.msi

It has worked for me and saved me a lot of clicky, clicky with the UI!

Importing existing data

Hi
In vs2005 beta2 I have created a sql server data file from within vs. Is
there
any way to import existing access tables & data into the sql server
datafile? I have tried installed sql server 2004 developer from msdn but did
not see any enterprise manager type tools that come with sql server 2000.
What am I missing?
Thanks
Regards
Hi,
Looks like you have MSDE installed. MSDE will not come with any GUI tools
like Query Analyzer / Enterprise Manager / DTS. You have 2 options to
load the data from MS Access.
1. Install SQL 2000 Tools and use DTS tools to load the data from access.
But you need to purchase sql server license
2. From access export the data to text files and in SQL server (OSQL) use
BULK insert to load the data in sql server database. You could also
use BCP IN to load the data
Thanks
Hari
SQL Server MVP
"John" <John@.nospam.infovis.co.uk> wrote in message
news:emoxENaTFHA.1404@.TK2MSFTNGP09.phx.gbl...
> Hi
> In vs2005 beta2 I have created a sql server data file from within vs. Is
> there
> any way to import existing access tables & data into the sql server
> datafile? I have tried installed sql server 2004 developer from msdn but
did
> not see any enterprise manager type tools that come with sql server 2000.
> What am I missing?
> Thanks
> Regards
>
>

Importing existing data

Hi
In vs2005 beta2 I have created a sql server data file from within vs. Is
there
any way to import existing access tables & data into the sql server
datafile? I have tried installed sql server 2004 developer from msdn but did
not see any enterprise manager type tools that come with sql server 2000.
What am I missing?
Thanks
RegardsHi,
Looks like you have MSDE installed. MSDE will not come with any GUI tools
like Query Analyzer / Enterprise Manager / DTS. You have 2 options to
load the data from MS Access.
1. Install SQL 2000 Tools and use DTS tools to load the data from access.
But you need to purchase sql server license
2. From access export the data to text files and in SQL server (OSQL) use
BULK insert to load the data in sql server database. You could also
use BCP IN to load the data
Thanks
Hari
SQL Server MVP
"John" <John@.nospam.infovis.co.uk> wrote in message
news:emoxENaTFHA.1404@.TK2MSFTNGP09.phx.gbl...
> Hi
> In vs2005 beta2 I have created a sql server data file from within vs. Is
> there
> any way to import existing access tables & data into the sql server
> datafile? I have tried installed sql server 2004 developer from msdn but
did
> not see any enterprise manager type tools that come with sql server 2000.
> What am I missing?
> Thanks
> Regards
>
>

Importing existing data

Hi
In vs2005 beta2 I have created a sql server data file from within vs. Is
there
any way to import existing access tables & data into the sql server
datafile? I have tried installed sql server 2004 developer from msdn but did
not see any enterprise manager type tools that come with sql server 2000.
What am I missing?
Thanks
RegardsHi,
Looks like you have MSDE installed. MSDE will not come with any GUI tools
like Query Analyzer / Enterprise Manager / DTS. You have 2 options to
load the data from MS Access.
1. Install SQL 2000 Tools and use DTS tools to load the data from access.
But you need to purchase sql server license
2. From access export the data to text files and in SQL server (OSQL) use
BULK insert to load the data in sql server database. You could also
use BCP IN to load the data
Thanks
Hari
SQL Server MVP
"John" <John@.nospam.infovis.co.uk> wrote in message
news:emoxENaTFHA.1404@.TK2MSFTNGP09.phx.gbl...
> Hi
> In vs2005 beta2 I have created a sql server data file from within vs. Is
> there
> any way to import existing access tables & data into the sql server
> datafile? I have tried installed sql server 2004 developer from msdn but
did
> not see any enterprise manager type tools that come with sql server 2000.
> What am I missing?
> Thanks
> Regards
>
>

Importing existing data

Hi
In vs2005 beta2 I have created a sql server data file from within vs. Is
there
any way to import existing access tables & data into the sql server
datafile? I have tried installed sql server 2004 developer from msdn but did
not see any enterprise manager type tools that come with sql server 2000.
What am I missing?
Thanks
Regards
Hi,
Looks like you have MSDE installed. MSDE will not come with any GUI tools
like Query Analyzer / Enterprise Manager / DTS. You have 2 options to
load the data from MS Access.
1. Install SQL 2000 Tools and use DTS tools to load the data from access.
But you need to purchase sql server license
2. From access export the data to text files and in SQL server (OSQL) use
BULK insert to load the data in sql server database. You could also
use BCP IN to load the data
Thanks
Hari
SQL Server MVP
"John" <John@.nospam.infovis.co.uk> wrote in message
news:emoxENaTFHA.1404@.TK2MSFTNGP09.phx.gbl...
> Hi
> In vs2005 beta2 I have created a sql server data file from within vs. Is
> there
> any way to import existing access tables & data into the sql server
> datafile? I have tried installed sql server 2004 developer from msdn but
did
> not see any enterprise manager type tools that come with sql server 2000.
> What am I missing?
> Thanks
> Regards
>
>

Importing existing data

Hi
In vs2005 beta2 I have created a sql server data file from within vs. Is
there
any way to import existing access tables & data into the sql server
datafile? I have tried installed sql server 2004 developer from msdn but did
not see any enterprise manager type tools that come with sql server 2000.
What am I missing?
Thanks
Regards
Hi,
Looks like you have MSDE installed. MSDE will not come with any GUI tools
like Query Analyzer / Enterprise Manager / DTS. You have 2 options to
load the data from MS Access.
1. Install SQL 2000 Tools and use DTS tools to load the data from access.
But you need to purchase sql server license
2. From access export the data to text files and in SQL server (OSQL) use
BULK insert to load the data in sql server database. You could also
use BCP IN to load the data
Thanks
Hari
SQL Server MVP
"John" <John@.nospam.infovis.co.uk> wrote in message
news:emoxENaTFHA.1404@.TK2MSFTNGP09.phx.gbl...
> Hi
> In vs2005 beta2 I have created a sql server data file from within vs. Is
> there
> any way to import existing access tables & data into the sql server
> datafile? I have tried installed sql server 2004 developer from msdn but
did
> not see any enterprise manager type tools that come with sql server 2000.
> What am I missing?
> Thanks
> Regards
>
>

Monday, March 12, 2012

importing Data to an existing database column from an .xsl file or .cvs file

good morning,

I want to load data that i receive everydays from my customers in .xls file format (excel) or cvs file format, to the database that i have created on this purpose. but when trying to do that whith SSIS; i got an error message .... that i can't import redudant data in my database column.

Best regards.

Can you please post the exact message?

Wednesday, March 7, 2012

Importing Data from Excel to update existing fields

I have an excel file that contains column A with names of components and products followed by column B which has each respective quantity on hand. I want to import that data to our website's SQL database that has a products table with a column, Pf_ID, that has only product names not component names and In_Stock which contains out-dated information that I want updated from column B of the excel file.

I think I've figured out how to use DTS and update the two fields, but I'm afraid that when everything runs new entries will be created with component information. Is it possible to specify that only rows where Pf_ID matches some row in column A that same row's column B will be used to update the data in In_Stock. I may have just made things too confusing than they need to be, but I don't have much experience with EM or Excel.

I'm also considering trying to write a macro that will match Pf_IDs in an exported excel file of the products table and take rows out of the excel file with current quantity information putting them in a new excel file to import into the website's database.

Please help, this is getting really confusing.I would bcp the data into a staging table, then use sql to do whatever you have to do.

But that's just me

MOO|||I'm not sure what bcp stands for ... I've only seen dts. I think your idea of using a staging table to query data from sounds good, but I kind of want this to be as simple a process as possible. Something that relatively anyone with instructions could click buttons and have done routinely.|||use dts to bring the excel data into a staging table
(a table created just to store data in the middle of a coomplex import)
then use an update statement against the staged data to update the destination data
(use the transact sql task)

For a more straightforward (but more advanced) method you might consider using the data driven query task and you could eliminate the staging table.

once you get this running you can set it up as a batch file or script or even call it from a sp. so anyone can run it.|||I've called tech support and checked permissions on the product table, but niether of us can seem to get this query to work when importing data from an excel workbook, Peach$. Is there something wrong with my query?

Here's what the support said when he tried:

It doesnt appear to be working running as SA either. I get a Error Line 3 near ) and then the db is read-only.

I cleared active connections to the DB and even stopped access, but it still appears to be locked by something, or perhaps the table is protected somehow?

--Raj

Here is the actual query:

update ASI.dbo.Product

set ASI.dbo.Product.In_Stock = (select `Peach$`.`Quantity On Hand`

from `Peach$`

where ASI.dbo.Product.Pf_ID = `Peach$`.`Item ID`)

where exists

(select `Peach$`.`Quantity On Hand`

from `Peach$`

where ASI.dbo.Product.Pf_ID = `Peach$`.`Item ID`);

Sorry for the lag time with a reply. I hope this gets read now.

Importing Data from Excel

Hi,

In SQL 2005, is there a way to autmotatically import data from excel into an existing table. So far, I can only do this into a new table. Any help is appreciated.

Well,

I am not an expert on this one, but I have had to play with Excel sources/destinations for the last few weeks, and I am pretty sure that the destination editor on your OLE or SQL Server destination should include a drop down box that will populate with your table names from the database that your connection manager is pointing towards.

The 'new' button that is there is just for creating a new table in the selected database at that moment.So, once you use the new table functionality, the destination is using an existing table (being the one you created) each time the package is executed.

I hope this was what you were looking for, but if not, maybe I misunderstood the question. Anyway, like I said, I hope this helps.

|||

MarkWest05 wrote:

Hi,

In SQL 2005, is there a way to autmotatically import data from excel into an existing table. So far, I can only do this into a new table. Any help is appreciated.

Are you using SSIS? With SSIS you should be able to do it with no problem; just by following the direction in Clint Edwards
post.

|||

And if you are using the Import/Export wizard you should be able to select destination table to copy data to. On the Select Tables page, click on the destination table cell and choose an existing table from the drop-down list or simply type the name of the existing table.

HTH.

|||If you are importing anything more complex than a flat set of data, Data Defractor is a SSIS Excel source component which makes life quite simple in terms of importing complex data from Excel using SSIS.

Without this sounding like an advertisement, it allows you to specify areas within a spreadsheet you want to import and how you want to deal with them.

See www.DataDefractor.com for more info.

Importing Data (Overwrite Any Existing Records)

Good Morning, I need some assistance with SQL Server 2000 Importing Data.

When I import data from a text on a routine basis, three things must happen:

1. New records identified by primary key get appended to table.

2. Exisiting records identified by primary key get overwritten with new/(updated) data.

3. All other existing records are left alone.

Does anyone know how to Import Records with the following the criteria above? It cannot insert duplicate primary keys by nature, so it must overwrite those records!

This is being built into a DTS Package, but I need to get over this obsticle! Thanks for any guidance!

Any thoughts, ideas, or suggestions?|||

Hi,

When you create a DTS package in the designer in SQL 2000, open the properties windows of a transfer.

In Option tab, there is a Enable Identity Insert option. You can check it to make DTS overwrite all the rows that have same identity as the source table.

HTH. If this does not answer your question, please feel free to mark the post as Not Answered and reply. Thank you!

Sunday, February 19, 2012

Importing a text file

I am trying to import a text file into an existing table using the DTS
wizard. I am having trouble getting it to accept a couple of date fields. Is
there a date format that the wizard will accept? If not, how should I
import date fields?
Thanks,
Tim
Hi,
Before I comment anything, can you please copy and paste the data (10 rcords
will do)
in the date column inside the text file.
Thanks
Hari
MCDBA
"Tim" <vbopen@.yahoo.com> wrote in message
news:eAxBov0VEHA.1012@.TK2MSFTNGP09.phx.gbl...
> I am trying to import a text file into an existing table using the DTS
> wizard. I am having trouble getting it to accept a couple of date fields.
Is
> there a date format that the wizard will accept? If not, how should I
> import date fields?
> Thanks,
> --
> Tim
>
|||Hari,
Thanks for the reply.
The problem was that there were some records that did not have a date and
just had " / / ". I edited the file and replaced them with a dummy date and
it imported fine.
Tim
"Hari" <hari_prasad_k@.hotmail.com> wrote in message
news:eCEZQ$1VEHA.2928@.tk2msftngp13.phx.gbl...
> Hi,
> Before I comment anything, can you please copy and paste the data (10
rcords[vbcol=seagreen]
> will do)
> in the date column inside the text file.
> --
> Thanks
> Hari
> MCDBA
> "Tim" <vbopen@.yahoo.com> wrote in message
> news:eAxBov0VEHA.1012@.TK2MSFTNGP09.phx.gbl...
fields.
> Is
>