|
-
May 25th, 2006, 02:29 AM
#1
Thread Starter
Member
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
-
May 25th, 2006, 02:42 AM
#2
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
-
May 25th, 2006, 05:31 AM
#3
Thread Starter
Member
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
 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.
-
May 25th, 2006, 05:58 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|