Hello everybody,
I'm totally frustrated!
Let's say we have a table "Xs" with 3 columns:
"ModuleId" int,
"XId" int identity (1,1),
"Xxxxxx" char (20),
"Xyyyy" char (20)
- in database and some stored procedures like "GetXs":
select * from Xs
Go
and "AddXs":
@ModuleId int, @Xxxxx char (20), @Xyyyy char (20)
as
insert into {objectQualifier}Xs (ModuleId, Xxxxx, Xyyyy)
values (@ModuleId, @Xxxxx, @Xyyyy)
select SCOPE_IDENTITY ()
DAL functions and BLL functions work correctly and when I'm trying to add new data from my webApplication I get good result as I chek it from SQL tab (select * from Xs) by signing as host. But when I'm tryng to get the data I get nothing, I mean that IDataReader object is empty somehow . I investigated that SqlHelper.ExecuteReader in my sqlProvider.GetXs connects to the database and try to populate the data, because it get the names of the fields in good way, but it do not get any rows for these fields. It looks like the table of Xs is empty (?!).., although I have add the data.
Any ideas where the mistake could be?