I have a table in SQL Server and I need to export its data into a .CSV
file.
Here are the table details:
ProductId: PK, bigint
SupId: varchar(100)
CatalogId: FK, bigint
Price: float
No indexes.
CSV part is done, meaning I have tried out a couple of libraries that can write the resultset to CSV.
Place where I am stuck is that the SELECT *
takes a long time to execute.
Till now I don't have any success in running
SELECT * FROM
Now, I know that it's a very bad idea to run SELECT *
, I have read quite a few posts.
Is there a way to stream or get the data in parts? This is C# person asking so please excuse the lingo.
So, what should I be reading / learning?
How do I get that kind of data from SQL?
Regards.