Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL-server-2005
i want to create dynamically sql for months n dates according to year...Means I want to create procedure in that i want to pass year and year wise month and month wise dates should be display...means if i pass 2012 then data comes like this...
table jan and 01-jan 02-jan till 31 jan..etc column name in the jan table...like this all months and dates of that months should display...
Posted 2-Oct-12 21:03pm
Edited 2-Oct-12 21:48pm
v2
Comments
Abhijit Parab at 3-Oct-12 3:06am
   
please post your question in detail with example
vijay bisht at 3-Oct-12 3:41am
   
can u explane it in detail

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You may 'dinamically create a SQL query' building the query string programmatically (or, better, using parameters).
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 741
1 OriginalGriff 255
2 Volynsky Alex 205
3 Kishore Pogaru 130
4 Magic Wonder 129
0 OriginalGriff 5,705
1 Sergey Alexandrovich Kryukov 4,763
2 CPallini 4,570
3 George Jonsson 3,142
4 Gihan Liyanage 2,450


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 3 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100