Results 1 to 4 of 4

Thread: do i need odbc connection?

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    51

    do i need odbc connection?

    hi,

    i am stuck... i want to run stored procedure in sql by using .net...so my problem is that do i need to make odbc connection to sql server to run it..

    please can anybody help me!

    nitin

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: do i need odbc connection?

    .NET has a dedicated class library for accessing SQL Server which can bve found in System.Data.SQLClient.

    Take a look at the following in your MSDN.

    System.Data.SQLClient.SQLConnection
    System.Data.SQLClient.SQLCommand.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    51

    Re: do i need odbc connection?

    thanks for ur reply..actually now i want a TravelAdapter ...so traveladapter configuration wisard is only option to prepare it or anyother way i can do it..

    actually i want to fetch data from database based on stored procedure..and store this in a dataset..now how do i proceed using travel adapter in this case..

    plz help

    nitin

    Quote Originally Posted by Shuja Ali
    .NET has a dedicated class library for accessing SQL Server which can bve found in System.Data.SQLClient.

    Take a look at the following in your MSDN.

    System.Data.SQLClient.SQLConnection
    System.Data.SQLClient.SQLCommand.

  4. #4
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: do i need odbc connection?

    You can use Stored procedure as well as a select query to fetch data from the database and store it into a dataset.

    I would strongly recommend that you read about ADO.NET from MSDN before proceeding with your project.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

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