Viewing 15 posts - 61 through 75 (of 85 total)
select * from table
where BalanceOld is not null AND CurrencyNew is not null
June 22, 2009 at 4:42 am
you are right .
given xml is only sample.
actual xml I pass through variable. '@Key1sentenceKey1wordsXML.'
Ok. Thanks
June 20, 2009 at 6:05 am
select table_name,column_name,data_type,maximum_character_length,is_nullable from information_schema.columns
this query gives you details and from them you can generate script as per your requirement..
but I think u r choosing laborious work.
June 12, 2009 at 8:45 am
Use information_schema.columns table you get most of from it
like table_name,column_name,max of length,is_nullable through which u can generate script easily..
June 12, 2009 at 7:51 am
I have generated the sample code but actually in last select statement select fields names come from another dynamic table which one is based on physical table...............
dont worry i have...
June 12, 2009 at 7:45 am
Ok.thanks My work is done.
thanks to you and Gail.
June 12, 2009 at 12:44 am
I cant I have also tried same with temporary table but i can not
create table #tbl(id int identity,index_value_table_name nvarchar(max),index_value_column_name nvarchar(max));
declare @var nvarchar(max);
set @var='mynk'
alter table #tbl
add column + @var + nvarchar(max);
select...
June 11, 2009 at 8:39 am
Thanks its working.........
and you are right I have not tried your code.
also u r right I have not give sample for my query in good manner.....
Next time i will take...
June 6, 2009 at 7:40 am
yes but you have created table t not @t....
I have problem with table variable @t.......
table variable can't be updated as shown by me or u.
June 6, 2009 at 5:46 am
DECLARE @t table (offset int IDENTITY(1,1), foo nvarchar(50),number int)
INSERT INTO @t (foo) VALUES ('one')
INSERT INTO @t (foo) VALUES ('two')
INSERT INTO @t (foo) VALUES ('three')
INSERT INTO @t (foo) VALUES ('four')
I have...
June 6, 2009 at 5:22 am
there should be
book intersect employee
left outer join
book intersect employee intersect department
May 19, 2009 at 11:49 pm
Viewing 15 posts - 61 through 75 (of 85 total)