Ask a Question related to Microsoft SQL / MS SQL Server, Design and Development.
-
Mark #1
Stored Procedure with Image Output
Hi!
I'm trying to get image in a parameter (this parameter is declared as
'output') from stored procedure, but it causes an exception: "A severe error
occurred in the current command". (Which errors?? ;-)). When I've changed
'image output' to 'varchar output' everything was fine. When image parameter
is only input to the procedure it seems to be ok. But unfortunately I need
this parameter to be declared as 'image output'. What am I doing wrong?
I'm using stored procedure declared as:
CREATE PROCEDURE ProcName
@SomeString varchar(255),
@Data image OUTPUT
AS
....
and it is called from C# program:
sqlCommand.CommandType = System.Data.CommandType.StoredProcedure;
sqlCommand.CommandText = "ProcName";
sqlCommand.Parameters.Add( "@SomeString", SqlDbType.VarChar).Value = "Some
text";
sqlCommand.Parameters.Add("@Data", SqlDbType.Image).Direction =
System.Data.ParameterDirection.Output;
sqlCommand.Parameters["@Data"].Size = 100000;
sqlCommand.ExecuteNonQuery();
regards
Mark
Mark Guest
-
stored procedure help
Hi all! I am in need of writing a few stored procedures. The first one is to create a stored procedure to recover a database from backup and the... -
help with a stored procedure
I am new to postgres stored procedures and would like a little help. My function basically takes 2 arguments and inserts data into a table from a... -
Stored Procedure Output using ASP
Hi, I've written an sproc which inserts customer data into a SQL table, then stores a variable as the unique id of the row (@orderid) ... then... -
Retrieve output parameters from failed stored procedure
Is it possible to retrieve output parameters (adParamOutput) from a stored procedure (asp/sql server) even when the procedurte fails - or is it... -
JPG stored as long binary in database: how to write output as image in asp?
Hello, For a while I am working with ThumbsPlus ( http://www.cerious.com/ ) as manager for pics. The benefit of the program is that it stores...



Reply With Quote

