Skip to content
Loading
  • Preetham Thangamma
    +2
    Good Morning Sir,
     
    Thank you for the answer but i have to save the data in the database from the notepad....can you please let me know how to do that!!
     
    Thank you 
    +2
  • Jenith Thakkar
    +2
    Hi
    try this 

    1. bulk insert [dbo].[CoursesTemp]  
    2. from 'C:\Users\Public\Downloads\Courses.txt'  
    3. with (fieldterminator = ';', rowterminator = '\n')  
    4. go  
    +2
  • Preetham Thangamma
    +2
    Okay Sir...Thank you!!
    +2
  • Aman Gupta
    +1
    https://www.red-gate.com/simple-talk/sql/t-sql-programming/reading-and-writing-files-in-sql-server-using-t-sql/
     
    Refer this it will work for your problem 
    +1