Viewing 13 posts - 16 through 29 (of 29 total)
plz refer...bcp(BULK COPY) commands..we will get more info(i.e. not only to txt files, even you can copy the data into different types of files..)
[font="Comic Sans MS"]Praveen Goud[/font]
July 28, 2010 at 3:36 am
Can i know what for you are using the right() function..??
[font="Comic Sans MS"]Praveen Goud[/font]
July 28, 2010 at 3:32 am
What you are going to achieve with this..??
Can i know where you are going to implement(practically) this..?
[font="Comic Sans MS"]Praveen Goud[/font]
July 21, 2010 at 5:42 am
Hi..
I think we can meet your requirement by using REPLICATE function(i.e..Repeats a character expression a specified number of times)
An updated query using REPLICATE is given below
select sno+replicate(' ',datalength(sno)-len(sno) as sno
,name+replicate('...
[font="Comic Sans MS"]Praveen Goud[/font]
July 21, 2010 at 5:38 am
Hi..
Here is my query..
select id, boss_id, managername, title, changedate, changetime
from
(
select id, boss_id, managername, title, changedate, changetime, row_number() over(partition by id order by boss_id desc) as bt
from @t
) A where A.bt...
[font="Comic Sans MS"]Praveen Goud[/font]
July 21, 2010 at 5:35 am
Plz re-check your post...
and come with more clarity plz...
[font="Comic Sans MS"]Praveen Goud[/font]
July 21, 2010 at 5:16 am
I think..we can achieve without cursors also...
by fetching top 2 records and compare...
[font="Comic Sans MS"]Praveen Goud[/font]
July 21, 2010 at 5:13 am
select *
from @t1 where maintdte < (select MAX(maintdte) from @t1)
[font="Comic Sans MS"]Praveen Goud[/font]
July 21, 2010 at 4:50 am
Hi..
I think we can meet your requirement by using REPLICATE function(i.e..Repeats a character expression a specified number of times)
An updated query using REPLICATE is given below
select sno+replicate(' ',datalength(sno)-len(sno) as sno
,name+replicate('...
[font="Comic Sans MS"]Praveen Goud[/font]
July 21, 2010 at 4:42 am
Hi nazaninahmady_sh..
Can you show your table structure and make your requirement little clear..
but whatever you are trying now is incorrect syntax because insert statement syntax doesn't contain a where condition...
[font="Comic Sans MS"]Praveen Goud[/font]
July 21, 2010 at 3:28 am
Hi..
Even though it looks odd (i.e..showing above 700 columns in a grid)
but if the client requirement doesn't change..
then we can easily achieve the desired output result as mentioned above by...
[font="Comic Sans MS"]Praveen Goud[/font]
July 20, 2010 at 8:58 am
Hi at1155..
please execute the below script and look at the output..
later, add your latest query at the last and execute the whole script..
DECLARE @tblMovieReleasedIn TABLE(
City VARCHAR(20),
MovieNames VARCHAR(20),
ReleaseDate Datetime
)
INSERT INTO @tblMovieReleasedIn
SELECT...
[font="Comic Sans MS"]Praveen Goud[/font]
July 20, 2010 at 8:08 am
Hi..
Can any one say....which of the above operators are preferable when it comes to the Optimization point of view..
[font="Comic Sans MS"]Praveen Goud[/font]
July 20, 2010 at 1:34 am
Viewing 13 posts - 16 through 29 (of 29 total)