Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Is other way except 'SqlConnection', for reading and writing sql database , in C#?
Posted
Comments
Suvendu Shekhar Giri 9-Apr-15 3:17am    
Why not SqlConnection? SQLClient is best for SQL Server as far as I know. However you can use OLEDB provider too.
Sinisa Hajnal 9-Apr-15 3:31am    
Right tool for the job.

1 solution

No, not really - in order to access an SQL database, you need to go via SQL Server - which means establishing a connection to it, and providing authorisation details.

There are things you can do to "hide" the connection, but they all end up establishing a connection, performing a command, and returning data - if any.
 
Share this answer
 
Comments
Zon-cpp 9-Apr-15 4:04am    
i mean , this was : A class defined or component, to access Sql database (like CRecordSet in VC++ ) that i work easily .
OriginalGriff 9-Apr-15 4:30am    
Look at SqlDataAdapter and DataTable / DataSet

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