Viewing 15 posts - 1,066 through 1,080 (of 1,825 total)
sunil88_pal88 (2/1/2010)
Its not about physical dear.I want to get the last three logically entered values
Then you have to have some form of marker(unique incrementing identity/datettime) on the row to indicate...
February 1, 2010 at 7:00 am
What's your objection to a calendar table ?
February 1, 2010 at 6:32 am
Why not use
Select top (3) * from yourtable order by column desc
??
February 1, 2010 at 6:17 am
Did you read this ? http://www.sqlservercentral.com/articles/T-SQL/63003/
It tells you all you need to know.
Are you having trouble with it ? If so what is unclear ?
February 1, 2010 at 6:15 am
Also as you are on 2008 , or at least this is a 2008 forum, use Table valued parameters.
February 1, 2010 at 6:05 am
Get out of the habit of looping , use tally tables
This ...
insert myTable(Activity_Codes)
select 'GL'+ Right('000' + convert(varchar(3), number),3) from master..spt_values where type = 'P' and...
February 1, 2010 at 5:43 am
Hi
Try this article http://www.sqlservercentral.com/articles/T-SQL/63003/
February 1, 2010 at 3:06 am
If i understand you correctly you just need to simply "outer join"
February 1, 2010 at 1:36 am
Please also see this article (and following discussion thread) for other methods of paging.
February 1, 2010 at 1:28 am
Can you show us what you have attempted so far ?
Did you read up on row_number() ?
January 28, 2010 at 11:25 am
1) Have you set the "Text Qualifier" in the Connection manager to " ?
2) Does the data look ok when opened with notepad ?
January 28, 2010 at 4:28 am
Yup , exactly that , be careful that you filter out an quotes within the data as you will get the same issue.
January 28, 2010 at 3:47 am
Obviously no program can reliably tell the different between an content comma and a field separating comma.
The csv needs to be exported correctly , either use fixed lengths or a...
January 28, 2010 at 3:21 am
I wont tell you the answer, but here are some clues.
Investigate the row_number() function.
Wrap the query in a CTE
Filter on 'row_number = 2'
January 28, 2010 at 1:46 am
Viewing 15 posts - 1,066 through 1,080 (of 1,825 total)