C# Scripts

Azure Data Factory Tutorial

Real Time C# Scripts

File Operations

  1. Delete files older than N days from a folder
  2. Get the oldest file from a folder
  3. Get the latest file from a folder
  4. Copy all files from one folder to another
  5. Copy files and overwrite existing files
  6. Move files from one folder to another
  7. File.MoveTo does not work - file already exists
  8. Move and rename files with datetime in name
  9. Copy files and add datetime to filenames

Import Files (CSV or Text) to Database

  1. Insert file properties into SQL Server table
  2. Import text file to SQL Server table
  3. Import multiple text files to SQL Server
  4. Import files with dynamic columns
  5. Create SQL table dynamically from flat file
  6. Load data from flat files to SQL tables by file names
  7. Import multiple CSV files to SQL Server

Export from Database to Files (CSV or Text)

  1. Export data to text file
  2. Export stored procedure results to text file
  3. Combine multiple CSV files into one
  4. Export all tables to flat files
  5. Export all tables to Excel files with datetime
  6. Export large table to multiple Excel sheets

Excel to Files (CSV or Text)

  1. Convert each Excel sheet to CSV
  2. Create CSV per Excel file and load all sheets

CSV/Text to Excel

  1. Convert CSV/Text files to Excel
  2. Create and append Excel sheet from CSV
  3. Import multiple CSV files into separate Excel sheets
  4. Import data from multiple CSV/Text to single Excel sheet

Import to SQL Server from Excel

  1. Import Excel sheet to SQL Server
  2. Create table per Excel file and import all sheets
  3. Skip rows and import Excel data
  4. Import Excel files with single or multiple sheets
  5. Import data to tables by sheet names
  6. Create table for each Excel sheet and import data
  7. Import multiple Excel files to one SQL Server table
  8. Get Excel file info and import to SQL
  9. Import only matching columns to SQL
  10. Import Excel data with file and sheet names
  11. Read Excel cell value

Export to Excel from Database

  1. Export tables to Excel dynamically
  2. Export stored procedure result to Excel
  3. Export table/view records to Excel

Console Applications

  1. Why console window disappears without displaying output
  2. Difference between Console.Write and Console.WriteLine

Read/Write to Database

  1. Save SQL query results to a variable
  2. Use variables in SqlCommand to insert data

String Operations

  1. Remove last character from string
  2. Remove extension from file name
  3. Remove last X characters from string
  4. Remove character from string

9 comments:

  1. Smooth and at ease revel in and their work is extremely great. on page seo service

    ReplyDelete
  2. Fine method of telling, and enjoyable article to acquire factual statements.
    cheap niche edit

    ReplyDelete
  3. Water is life and finding the correct water-related device is a tough job for a non-technical person. You can know by clicking on Aqua macho, the most informative guides possible for water heaters and other devices so that you don’t have to roam around the internet and read pseudo content. Guides are also provided about the electric and gas tankless water heaters, the best propane tankless water heater, outdoor tankless water heater, and solutions to all possible dangers.

    ReplyDelete
  4. We're looking forward to seeing more of this, Thanks!
    palm tree stump removal

    ReplyDelete
  5. I truly enjoyed this postnbiclearancesonline! Your writing style is both clear and captivating.

    ReplyDelete
  6. Could you want to receive quick FREE money? i load bank accounts any amounts upto 100 millions dollars,  i can load also cash app,   any amounts,  
    i have also an ATM card that i give you, to withdrew unlimited amount of Free money.  email me awdhackd@gmail.com  

    other services are

    *University grades changing
    *Bank accounts hack
    *Twitters hack
    *email accounts hack
    *Grade Changes hack
    * load bank account any amounts,  i can load also cash app,   any amount,   even if its 100 million dollars onto a bank account.
    *Website crashed hack
    *server crashed hack
    *Retrieval of lost file/documents
    *Erase criminal records hack
    *Databases hack
    *Sales of Dumps cards of all kinds
    *Untraceable Ip
    *Individual computers hack
    *Websites hack
    *Facebook hack
    *Control devices remotely hack
    *Burner Numbers hack
    *Verified Paypal Accounts hack
    *Any social media account hack
    *Android & iPhone Hack
    *Word Press Blogs hack
    *Text message interception hack
    *email interception hack



    so tell me what services you want?       email me awdhackd@gmail.com      awdhackd  at g mail com  

    Could you want to receive quick FREE money? i load bank accounts any amounts upto 100 millions dollars,  i can load also cash app,   any amounts,  
    i have also an ATM card that i give you, to withdrew unlimited amount of Free money.  email me awdhackd@gmail.com  

    other services are

    *University grades changing
    *Bank accounts hack
    *Twitters hack
    *email accounts hack
    *Grade Changes hack
    * load bank account any amounts,  i can load also cash app,   any amount,   even if its 100 million dollars onto a bank account.
    *Website crashed hack
    *server crashed hack
    *Retrieval of lost file/documents
    *Erase criminal records hack
    *Databases hack
    *Sales of Dumps cards of all kinds
    *Untraceable Ip
    *Individual computers hack
    *Websites hack
    *Facebook hack
    *Control devices remotely hack
    *Burner Numbers hack
    *Verified Paypal Accounts hack
    *Any social media account hack
    *Android & iPhone Hack
    *Word Press Blogs hack
    *Text message interception hack
    *email interception hack



    so tell me what services you want?       email me awdhackd@gmail.com      awdhackd  at g mail com  

    Could you want to receive quick FREE money? i load bank accounts any amounts upto 100 millions dollars,  i can load also cash app,   any amounts,  
    i have also an ATM card that i give you, to withdrew unlimited amount of Free money.  email me awdhackd@gmail.com  

    other services are

    *University grades changing
    *Bank accounts hack
    *Twitters hack
    *email accounts hack
    *Grade Changes hack
    * load bank account any amounts,  i can load also cash app,   any amount,   even if its 100 million dollars onto a bank account.
    *Website crashed hack
    *server crashed hack
    *Retrieval of lost file/documents
    *Erase criminal records hack
    *Databases hack
    *Sales of Dumps cards of all kinds
    *Untraceable Ip
    *Individual computers hack
    *Websites hack
    *Facebook hack
    *Control devices remotely hack
    *Burner Numbers hack
    *Verified Paypal Accounts hack
    *Any social media account hack
    *Android & iPhone Hack
    *Word Press Blogs hack
    *Text message interception hack
    *email interception hack



    so tell me what services you want?       email me awdhackd@gmail.com      awdhackd  at g mail com  

    ReplyDelete