CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 1999
    Posts
    23

    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.

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    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
  •  





Click Here to Expand Forum to Full Width

Featured