Viewing 15 posts - 16 through 30 (of 48 total)
if it can be done by another way which is faster let me know
June 13, 2013 at 3:12 am
i got it using
where id=@id
and (
(@con=0 AND YEARMONTH >=Replace(@YearMonth,'-',''))
OR (@con<>0 AND YEARMONTH <>Replace(@YearMonth,'-',''))
)
June 13, 2013 at 2:39 am
the whole sp cannot be posted as there are many joins
to get the result & check i prepared 3 different SPs with conditions as stated above
SP1 contains @dt1...
June 12, 2013 at 11:57 pm
not fully understood
using the above i am not getting any records
but in query analyser i get 100 records with date condition & id condition
June 12, 2013 at 3:10 am
ALTER PROCEDURE [dbo].[JOBRECINSERT]
@JOBID as bigInt,
@YEARMONTH as int,
@TRANSTYPE as char,
AS
BEGIN
DECLARE @ERNO AS INT
BEGIN
SET @ERNO=(SELECT EID FROM TABLEA where JOBID=@JOBID)
SET @ERNO=@ERNO+1 ...
June 7, 2013 at 12:31 am
there is no 4 in the SP
i even checked with select * from table1
i am not sure where do i get it from but i found this on debugging
?cmdupdate.CommandText
"4"
?cmdupdate
{System.Data.SqlClient.SqlCommand}
...
October 17, 2012 at 10:23 am
checked the sp with jst return stmt
also checked it with simple select stmt without parameters
checkedd connection string
but still when executed frm application gives the same error
October 17, 2012 at 3:06 am
ya i updated the stored procedure as given by u
i even tried by hardcoding the values in sp without passing the parameters still i get the error as below
System.Data.SqlClient.Sqlexception }:...
October 16, 2012 at 2:48 am
no i have not created anytriggers
and i modified the sp as given by u ,still the same error
October 15, 2012 at 7:11 am
CREATE TABLE [dbo].[M_PRDT](
[PID] [numeric](18, 0) NOT NULL,
[PNAME] [varchar](50) NOT NULL,
[PRATE] [float] NOT NULL,
[SCHEME] [bit] NOT NULL,
[REMARKS] [varchar](50) NOT NULL,
CONSTRAINT [PK_M_PRDT] PRIMARY KEY CLUSTERED
(
[PID] ASC
)WITH (PAD_INDEX = OFF,...
October 15, 2012 at 6:32 am
not ableto undertstand why i get syntax error near 4
October 15, 2012 at 5:05 am
no i mean the output needed is
empid 'basic' da ta hra...
June 4, 2012 at 4:22 am
using the sql that i gve also give s me the same out put a this
but this is not i need
i mean i get the empid repeated
i shld get...
June 4, 2012 at 3:14 am
create table sal(empId nvarchar(10), sal_comp nvarchar(10), IncomeAmount int)
--drop table sal
insert into sal values ('SPIKE', 'basic', 100)
insert into sal values ('SPIKE', 'da', 300)
insert into sal values ('SPIKE', 'hra', 400)
insert...
June 3, 2012 at 7:02 pm
i tried exporting
1) to excel
it appears in a single column as seen in the report viewer
2) to pdf
only one label is visible that too in the center of...
May 22, 2012 at 2:03 am
Viewing 15 posts - 16 through 30 (of 48 total)