Re: Executing a StoredProcedure using ADOCommand object in ASP.NET



MJ (MJ@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
I would love to port the app to a .net application but the client
does not want to do that they just want to change the extension from
.asp to .aspx and fix the issues that occurred because of the change.

OK, I got fooled by the declaration of an OleDbAdapter, but you don't
seem to use that one.

Still, I have one more suggestion for modernization. :-) Judging from
your error message you are using the MSDASQL provider, that is OLE DB
over ODBC. Not that I am certain that the problem would go away if
you change

Driver = {SQL server}

in the connection string to:

Provider=SQLOLEDB

or even

Provider=SQLNCLI

but at least you would get somewhat better performance.

Really what is going on in your code, I don't know. What is the name
of the stored procedure you are trying to call? Does it have any
"funny" characters in the name?


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: Executing a StoredProcedure using ADOCommand object in ASP.NET 2.0
    ... the extension for files .asp to .aspx and then fixing all the issues). ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.data.oledb)
  • Re: Query training -- Complex queries
    ... > Update PositionsEOM ... Here you don't have a derived table, but a correlated subquery. ... UPDATE in Books Online. ... is not written for SQL Server. ...
    (microsoft.public.sqlserver.server)
  • Re: Changing stored procedure Freezes Crystal
    ... to fix my problem. ... I do transaction log backups on the hour, ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Linked Server: How to check if server exists?
    ... The root problem is described in the Books Online topic Batches. ... Rick Byham, SQL Server Books Online ... linked server don't run on those development machines not having that linked ...
    (microsoft.public.sqlserver.connect)
  • Re: STORED PROCEDURE - passing table name as a parameter
    ... T-SQL, is that you get problems if the view definition does not fit into ... will need to query other system tables, for instance syscolumns. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)