Forum Discussion
Need help in restoring table using large .sql data file(4GB)
Thanks for the responding. Please find below for inline comments.
1. Which tool (+version) have you used to generate the SQL script for data?
Below screenshot for your reference.
2. Use a common text editor, which handle such large files like Notepad++
we tried notepad++ but we are getting below error. Pls let me know if you have any other ideas.
Did you mean that SSMS has a feature can backup table to a SQL script? Interesting... Could you show the operation step by step?
BTW, 4G+ file can be opened with UtralEdit.
- olafhelperOct 21, 2024Bronze Contributor
SrikanthD1340 , sorry to say, but if even Notepad++ complains about file size, then you are screwed.
rodgerkong , not really a "backup", but the SSMS script wizard has the option to script data as DML commands, see
SSMS Script objects - SQL Server Management Studio (SSMS) | Microsoft Learn => Note => "You can script the data for the database when you select Schema and data for the Types of data to script option."
But at the end of the day a bad idea, there are much better options available, like BCP.
- rodgerkongOct 21, 2024Iron Contributor@olahelper got it, thank you