-
April 16th, 2008, 06:13 AM
#1
c# and sql database
This is new for me as i normally use c++ and access. So i was wondering, do you have to have sql server running to get data out of the database or can you just open a connection to the database and query it. If so could anyone tell me how to do this, it would be much appreciated.
-
April 16th, 2008, 06:19 AM
#2
Re: c# and sql database
In order to connect to a SQL Server, the SQL Server should be up and running. It is not required to be on the same system though. You can connect to any SQL Server on the Network as long as you have got access to it.
Take a look at System.Data.SQLClient namespace on MSDN to see how to connect to a SQL Server.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|