Re: Not supported?..

Tech-Archive recommends: Fix windows errors by optimizing your registry



Wrap it with a "normal" stored procedure. There may be another way, but SQL
Server is touchy on its possessions, which extended sprocs are. Ask in the
SQL Server programming group, also, as there are some great peeps in there
that know a lot about programming .NET against SQL Server.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
"TJ" <TJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B9D58454-F932-4F55-8962-CB27BDEA3B6A@xxxxxxxxxxxxxxxx
Hi,

C# / .NET Framework 1.1

I would like to query extended stored procedure like stored procedure...
However, I found that CommandType property does not have Extended Stored
Procedure value.....

I tried something like..

SqlConnection con = new SqlConnection(....);
SqlCommand command = new SqlCommand('xp_blahblahblah", con);
command.CommandType = CommandType.StoredProcedure;
.....
...
command.ExecuteScalar();

However, it always throw exception saying "Could not find store procedure
xp_blahblahblah"....
Is there any way I can use the extended stored procedure programatically?

Thanks.

..................................................................TJ




.



Relevant Pages

  • Re: Problem using SP as record source with Access2002 & SQL Server 7
    ... I've installed a brand new copy of SQL Server 2000 with the original ... I've created the folowing stored procedure for the resync ... Resync Command: ALL_CUSTOMERS_RESYNC? ... I need to upgrade to a newer version of Microsoft SQL ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Creating a database
    ... Please do yourself a favor, find a local user group, or buy a beginning book on SQL Server or take a class, you will save yourself a great deal of pain in the long run. ... CREATE DATABASE Products ... I can create a stored procedure from within the Server Explorer and from ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: SQL/ADO (2.8) Timeout Error - Cant resolve
    ... > Server 2000 back end. ... > timeout limit. ... And I’ve used SQL Query Analyzer to run the ... I am running a stored procedure that will backup a SQL Server ...
    (microsoft.public.sqlserver.clients)
  • Re: Breakpoints in T-SQL not hit from VS 2005 with SQL 2005
    ... Open stored procedure in server explorer and set breakpoint ... Run the procedure from SQL Server Management Studio ... SQL Server 2005 Developer Edition installed on local PC. ... I created a windows project and called stored procedure using ...
    (microsoft.public.vsnet.debugging)
  • RE: Stored procedure / .NET woes
    ... Check the available network protocols on both the server and the client (web ... using the SQL client and server network tools. ... > Strangely enough running the same stored procedure through the SQL ...
    (microsoft.public.dotnet.framework.adonet)