Viewing 8 posts - 1 through 8 (of 8 total)
Bhuvnesh,
CROSS APPLY (
VALUES(High, 'High', DATEPART(dw, CAST(DateID AS CHAR(8))))
,(Low, 'Low', DATEPART(dw, CAST(DateID AS CHAR(8))))) a (Val, Type, weekday)
GROUP BY...
January 4, 2013 at 5:59 am
If you can add a identity column to your table then ...you can write code like this...
---------------------------------
create table test(
id int identity(1,1),
currency_to varchar(3),
currency_from varchar(3),
tradedate datetime,
traderate decimal(27,7)
)
go
insert into test(currency_to, currency_from, tradedate, traderate)
select...
December 19, 2012 at 7:38 am
If you have permission to execute xp_cmdshell then you can use SQLCMD for the same.
thanks,
Saurabh
December 18, 2012 at 4:08 am
You can use Sqlcmd to save result in file..
July 1, 2011 at 8:09 am
Check your execution plan, and Find out any bulk data movement by the thickness of line.
Otherwise change in join order of tables in query may solve your issue..
Cheers
-Saurabh
June 8, 2011 at 4:24 am
You can check your procedures with profiler to find out paining areas.
Include recompilation event in profiler to find out any recompilation..
-Cheers
Saurabh
June 8, 2011 at 4:20 am
Question must be checked before posting ...
Answer is based on nchar while question is based on nvarchar..
April 8, 2011 at 6:15 am
Viewing 8 posts - 1 through 8 (of 8 total)