Re: Huge data needs to be transfer from Fixed width Text File to S

Tech-Archive recommends: Speed Up your PC by fixing your registry



"Permood" <Permood@xxxxxxxxxxxxxxxxxxxxxxxxx> ha scritto nel messaggio news:56C3E79A-83B8-423A-BC6E-584F634BD4C1@xxxxxxxxxxxxxxxx

For 2 reasons i am going to develop the Application,
1- Transform the data, because I have to change data into Date and money
from Char and I need to perform certain validation which is very hard to
implement in TQSL as i am using SQL Server 2000.

If you find TSQL is not the right choice for your job, you can use Windows Scripting (VBScript or else) inside DTS packages; I'm not a VBScript developer, but I'm quite sure it's powerful enough to convert text strings into dates ;-)


2- There are 35 scripts, which currently perform this operation, and this is
done manually, I need to make a application where i can schulede them and
make it more rebust and conditional as compare to TSQL functionality.

You can run a DTS package with any scheduling you like, and you can manage the package workflow as accurately as you need; i.e., you can do a task (like a data validation), then do other tasks (like mailing an administrator, or executing a query on another DB, or beginning a data transfer from DB A to DB B) based on the outcome of the first one.
Oh, and you can also write store stored procedures and call them from the package, of course.


I am able to do so in VB.Net but the only problem i having now, Import time
increased 2-3 times as compare to bulk Insert in SQL Server.

Of course; bulk insert (like DTS) uses its own bulk insertion APIs, which are *way* faster than any ADO/ADO.NET/ODBC query-based application.


I suggest you have a better look inside SQL Server's DTS. They're exactly what you're looking for, but lots of people wrongly think they can be used only to import an Access DB into SQL Server; there's a lot more to them than this.

By the way, have you set the database recovery mode to "bulk-logged"? This can *really* save you time (and transaction logs size) on big data import operations, as it makes the DB log only the whole operation in the transaction logs, as opposed to logging every single row inserted.


Massimo

.



Relevant Pages

  • Re: DTS object model
    ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. ... So one of my collegues suggested to go with DTS and do the validation and also mapping of columns through DTSTransformation. ... I want to create a text file connection and set the> connectionproperties of delimiter and textqualifier and then by using ...
    (microsoft.public.sqlserver.dts)
  • Re: temp table troubles
    ... It's an ETL (Extract Transform Load) tool that ... transformations and load the results into a SQL Server table. ... And what transform Code? ... > string rapidly exceeds its 8000 varchar limit. ...
    (microsoft.public.sqlserver.programming)
  • Re: variable in transaction
    ... The problem will arise if you change the metadata for the transform. ... Global Variables and SQL statements in DTS ... If you expose it as the same column Name each time then you will not need to ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. ...
    (microsoft.public.sqlserver.dts)
  • Is this even possible?
    ... I have a very strange problem and just wanted to run something with ... (The flat file is there however, which means a select must have taken ... We have performed a backup and rollforward using the transaction logs ... SQL server setup causing problems or determining that changes aret ...
    (microsoft.public.sqlserver.setup)
  • Re: SQL Server 2005 encryption
    ... SQL Server Encryption is just a wrapper on Windows Crypto API Encryption so ... > NIST CMVP website as being validated or going through validation. ...
    (microsoft.public.sqlserver.security)