Click here to Skip to main content
11,719,753 members (88,676 online)
Rate this: bad
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 this all months and dates of that months should display...
Posted 2-Oct-12 21:03pm
Edited 2-Oct-12 21:48pm
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
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).

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 1,734
1 OriginalGriff 690
2 Maciej Los 569
3 Richard MacCutchan 540
4 F-ES Sitecore 510

Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 3 Oct 2012
Copyright © CodeProject, 1999-2015
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