0

After calling this procedure :

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[SLTxtMainGetAll]
AS
BEGIN
    SET NOCOUNT ON;

    SELECT [Id]
      ,[IsAnnouncement]
      ,[Text]
      ,[TextLanguage] 
    FROM SLTxtMain;
END

C# code calling this procedure is:

private SqlDataReader _reader;

_command = _connection.CreateCommand();
_command.Transaction = _transaction;
_command.CommandTimeout = 300;
_command.CommandType = CommandType.StoredProcedure;
_command.CommandText = "SLTxtMainGetAll";

_reader = _command.ExecuteReader(); // This returns null

What's happening? Where might be a problem?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Aleister357
  • 61
  • 1
  • 2

0 Answers0