problem in calling a sp using sql native client provider for SQLServer 2005

This is a discussion on problem in calling a sp using sql native client provider for SQLServer 2005 within the sqlserver-odbc forums in Microsoft SQL Server category; i am facing a problem in calling a sp using sql native client provider for SQL Server 2005. I have a stored procedure which return some rows as output. I am calling this sp through my vb application using DSN=MyDSN; UID=MyUID; PWD=MyPWD as connection string, in this case i am getting output (row returned from sp). But if i change the connection string and used sql native client provider (Provider : SQLNCLI.1) and specifying server, database name, by calling same sp i am not getting any output. Please note here that the sp has some insert/delete/...

Go Back   Database Forum > Microsoft SQL Server > sqlserver-odbc

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-18-2008, 06:39 AM
Default problem in calling a sp using sql native client provider for SQLServer 2005

i am facing a problem in calling a sp using sql native client
provider for SQL Server 2005. I have a stored procedure which return
some rows as output. I am calling this sp through my vb application
using "DSN=MyDSN; UID=MyUID; PWD=MyPWD" as connection string, in this
case i am getting output (row returned from sp). But if i change the
connection string and used sql native client provider (Provider :
SQLNCLI.1) and specifying server, database name, by calling same sp i
am not getting any output.
Please note here that the sp has some insert/delete/update statement
before the last select and return statement.

can somebody tell, if anything needs to be modified in connection
string, so that above problem will get solved.

Regards,
Sandip
Reply With Quote
  #2  
Old 07-11-2008, 10:43 PM
Default Re: problem in calling a sp using sql native client provider for SQL Server 2005

What .NET library are you using to connect? Are you using
System.Data.SqlClient?

Chuck Heinzelman

"sandip patil" wrote in message
news:3f44d801-2b70-4516-851e-7a1981dba6c0-at-u36g2000prf.googlegroups.com...
> i am facing a problem in calling a sp using sql native client
> provider for SQL Server 2005. I have a stored procedure which return
> some rows as output. I am calling this sp through my vb application
> using "DSN=MyDSN; UID=MyUID; PWD=MyPWD" as connection string, in this
> case i am getting output (row returned from sp). But if i change the
> connection string and used sql native client provider (Provider :
> SQLNCLI.1) and specifying server, database name, by calling same sp i
> am not getting any output.
> Please note here that the sp has some insert/delete/update statement
> before the last select and return statement.
>
> can somebody tell, if anything needs to be modified in connection
> string, so that above problem will get solved.
>
> Regards,
> Sandip



Reply With Quote
  #3  
Old 08-13-2008, 08:00 PM
Default Re: problem in calling a sp using sql native client provider for S

Check http://www.connectionstrings.com/ may shed some light on different
types of options you can try. I also alwasy use SET NOCOUNT ON so that rows
returned never interferes with my recordset.

- Rich


"Chuck Heinzelman" wrote:

> What .NET library are you using to connect? Are you using
> System.Data.SqlClient?
>
> Chuck Heinzelman
>
> "sandip patil" wrote in message
> news:3f44d801-2b70-4516-851e-7a1981dba6c0-at-u36g2000prf.googlegroups.com...
> > i am facing a problem in calling a sp using sql native client
> > provider for SQL Server 2005. I have a stored procedure which return
> > some rows as output. I am calling this sp through my vb application
> > using "DSN=MyDSN; UID=MyUID; PWD=MyPWD" as connection string, in this
> > case i am getting output (row returned from sp). But if i change the
> > connection string and used sql native client provider (Provider :
> > SQLNCLI.1) and specifying server, database name, by calling same sp i
> > am not getting any output.
> > Please note here that the sp has some insert/delete/update statement
> > before the last select and return statement.
> >
> > can somebody tell, if anything needs to be modified in connection
> > string, so that above problem will get solved.
> >
> > Regards,
> > Sandip

>
>
>

Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 04:49 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.