Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: znet
  • Order by date
  1. znet

    How to handle empty CSV source

    Hi unclerico, If the source file is empty EXCEL file, how to handle? Your solution example seem not work for excel file. The value of variable: line = f.ReadLine is not blank when read content of empty excel file. Wait for your reply. Thanks in advance.
  2. znet

    How to handle empty CSV source

    Thanks unclerico, It works fine.
  3. znet

    How to handle empty CSV source

    Hi All, My DTS package reads data from a csv file and populates it into the database. Now, if the csv file is empty, I get an error. What I need is, to check whether the file not contain any records. I know if import txt file, I can use AX Script as Set fso =...
  4. znet

    How to auto-map the transformations for variable field width files

    Thanks TheJFM, It seem have to code transformation procee, I am not good at this. Can you give me some example(link).
  5. znet

    How to auto-map the transformations for variable field width files

    Hello group, I want DTS import several CSV files automatically, but the source files maybe mistakenly added some additional fields by customer. I don't know how to auto-maping transformations when importing the whole file (known normal fields+unknown additional fields) to a table(predefined...
  6. znet

    Can I just Import several Rows from Text files

    Thanks SimeonJ, Actually I find solution, Set first row and last row in DTS.
  7. znet

    Need DTS exit but not show msgbox

    Thanks Mutley1. I have tried as you said. Works fine.
  8. znet

    Need DTS exit but not show msgbox

    Hello friends, My project: when runing, DTS check the files in a folder,then import to Database and move away the imported file, then loop to check having any other files in folder, if no files exist, the job end. But when end, it show a message box "Successfully complete execution package...
  9. znet

    Can I just Import several Rows from Text files

    Hello friends, I hope import the first several Rows from a Text files to database, because the first row just stores column name, I want analyses it in advance. Anyone give me a direction, I am just starting to learn DTS. Thanks
  10. znet

    very difficult question for data transformation project

    Hi Rac2, Using union is right direction, but how to show 'Col'. For example, suppose @Col='Column', I want to using select like this: select 'Column',Column from whatever. How to do? select '@col',@col from ... , not work.
  11. znet

    very difficult question for data transformation project

    Thanks Rac2, Maybe I didn't say clearly, the Col name is unknown(col1,col2...), TableA is produced by dynamic SQL, these fields are the 'Wrong' fileds mistakenly added by customer. I got col name by checking system table(and can get number of column), they are saved in @Col. TableB is...
  12. znet

    very difficult question for data transformation project

    Hello everyone, I met a very difficult point when processing data transformation. The case is : Need import customer's data files(text) to database, the files should have certain fields(columns), but sometime customer give additional fileds. These additional fields should be recorded to...
  13. znet

    How to get a column's value, which stored in variable @col

    Thanks friends. Your solutions work fine. Thanks
  14. znet

    How to get a column's value, which stored in variable @col

    Hello, All I get the column names of a table, using system table/system stored procedure. Now the column name(for ex, 'ExtraField', but actually unknown) stored in @col, I need check its value, but 'select @col' not work, it just show ExtraField. Anybody give me direction. Thanks
  15. znet

    Check Printer Status

    Hello All, I want to check Printer ready or not(including the printer cable is connected). I've searched all threads about printer status in this Forum and try the codes. But it still can't check Status of printer, for example, when I disconnect the printer cable, or network cable(for...
  16. znet

    How to change MaskedBox Value

    Thanks, I will try
  17. znet

    How to change MaskedBox Value

    Hello All, I use MaskedBox to input date (##/##/#### HH:MM ??). After end (lost focus), I can't change the MaskedBox text, I have to delete and reinput. I hope to change the text using backspace and input what I want to modify. Can anybody give me direction. Thanks in advance.
  18. znet

    Seding Email... (yes, I looked on google)

    Hi JC, I try my code again in local server, it works fine, the SMTP is defaultly setup and I didn't use SmtpServer IP as dvannoy's code. But you should note this sentence: objMM.From="Whatever", the sender email, it must be VALID email address. And try different type of receiver email...
  19. znet

    Seding Email... (yes, I looked on google)

    Hi JC, I didn't set up SMTP intendly, I am sure this code works fine to send email. I use it in our living web site. Regards znet

Part and Inventory Search

Back
Top