Click here to Skip to main content
15,902,840 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi ,I'm able to do with sql commands to import or export the data from sqlserver to text file, but without using sql commands using C# how do I proceed?
Posted

Hi,

Do you mean how to retrieve data from Sql Server without using T-SQL?
If yes, DLINQ (or whatever it's called now) should be the answer.

LINQ Introduction Part 1 Of 3[^]
DLINQ Introduction Part 2 Of 3[^]
XLINQ Introduction Part 3 Of 3[^]

DLINQ With Stored Procedures[^]

Demystifying DLINQ[^]

Hope it helps.
 
Share this answer
 
Do you mean you want to use c# to load data from a text file into Sql Server? If that's the case, have a look at SqlBulkCopy[^] class.
 
Share this answer
 
Comments
_Zorro_ 5-Sep-11 12:09pm    
Wow, if you got his question righ, I did the absolute opposite! :)
Wendelius 5-Sep-11 12:13pm    
I really don't know but hopefully one of us is right so the OP gets a starting point :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900