Viewing 15 posts - 16 through 30 (of 82 total)
then use trigger(After Insert) on child table which handle master table.
November 21, 2012 at 10:45 pm
what kind of changes you want to see in child table
please give more focus on what you want
November 21, 2012 at 10:40 pm
going with alter column method is best option according to me as its a primary column for your table.
November 21, 2012 at 10:39 pm
any column string of entire database table.
can you tell me purpose of doing so
it may have batter alternate for the same.
November 19, 2012 at 11:31 pm
string means what is it any column value
like
select * from a where abc='xyz'
or any string in store procedure
November 19, 2012 at 11:13 pm
your query return only those recode of where clause od.p_id in (1,2,3,5)
select * from persons s left join orders od on s.p_id = od.p_id
Where od.p_id in (1,2,3,5)
if you want...
November 19, 2012 at 5:45 am
try this
declare @sql varchar(max)
select @sql=coalesce(@sql,'')+columnname
from
tablename
select @sql
November 19, 2012 at 2:24 am
please post table structure and more sample data
also give more focus on what you want.
November 19, 2012 at 1:48 am
your query seems ok and working fine
may be you are selecting LEFT(127.0.0.1,len(127.0.0.1)-charindex('.',reverse(([Ip])))) which may leads you to confusion
you can try putting ip in select and find where's the problem
select...
November 18, 2012 at 11:37 pm
( problem in your query
select
LEFT(127.0.0.1,len(127.0.0.1)-charindex('.',reverse(([Ip]))))
from tablename
November 18, 2012 at 10:47 pm
try this if you know columns(limited columns)
select
(case when key='Key1' then value) as 'Key 1'
,(case when key='Key2' then value) as 'Key 2'
,(case when key='Key3' then value) as 'Key 3'
from...
November 16, 2012 at 1:00 am
Try this
CREATE PROC TestProc1 (@id INT)
AS
BEGIN
if(@id=0) --if you pass null then no need to write this code instead of 0 for all recods from Code behind
...
November 16, 2012 at 12:53 am
what if you use coalesce and make one query combine all diff where columns
like
select * from emp
where id=coalesce(@id,id) and name=coalesce(@name,name)
and make one index of all combine columns...
November 16, 2012 at 12:34 am
try this one
declare @string varchar(20)
set @string='e33,B6661,C1'
select substring(@string,charindex(',',@string)+1,charindex(',',@string,charindex(',',@string)+1)-charindex(',',@string)-1)
November 8, 2012 at 3:09 am
is your chargeAmount is INT then you need to convert it to decimal to get decimal in SUM
November 5, 2012 at 5:36 am
Viewing 15 posts - 16 through 30 (of 82 total)