Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Stored procedure problem....

Stored procedure problem....

Scheduled Pinned Locked Moved ASP.NET
databasehelp
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nagraj Naik
    wrote on last edited by
    #1

    Hi all, I am creating query at runtime this query is depend upon dynamic criteria selection. Now when this query is created I want to send this as stored procedure query part in sql stored procedure i.e. select * from records where recno>100 // this is sql query I want to set this query as stored procedure query //stored procedure create procedure recordcount as //above generated query shoul be here return I hope you understand my problem. If Know solution share with me...... Let's Teach Life To Laugh........:laugh:

    A S 2 Replies Last reply
    0
    • N Nagraj Naik

      Hi all, I am creating query at runtime this query is depend upon dynamic criteria selection. Now when this query is created I want to send this as stored procedure query part in sql stored procedure i.e. select * from records where recno>100 // this is sql query I want to set this query as stored procedure query //stored procedure create procedure recordcount as //above generated query shoul be here return I hope you understand my problem. If Know solution share with me...... Let's Teach Life To Laugh........:laugh:

      A Offline
      A Offline
      albCode
      wrote on last edited by
      #2

      CREATE PROCEDURE recordcount @recno int(4) AS SELECT * from records where recno > 100

      N 1 Reply Last reply
      0
      • A albCode

        CREATE PROCEDURE recordcount @recno int(4) AS SELECT * from records where recno > 100

        N Offline
        N Offline
        Nagraj Naik
        wrote on last edited by
        #3

        Hi, You don't get me. Basically I want to send my dynamic query as query to stored procedure.I mean stored procedure is not created i want to create it dynamically with my dynamic query

        F 1 Reply Last reply
        0
        • N Nagraj Naik

          Hi, You don't get me. Basically I want to send my dynamic query as query to stored procedure.I mean stored procedure is not created i want to create it dynamically with my dynamic query

          F Offline
          F Offline
          Faisal Khatri
          wrote on last edited by
          #4

          Please specify your problem clearly

          1 Reply Last reply
          0
          • N Nagraj Naik

            Hi all, I am creating query at runtime this query is depend upon dynamic criteria selection. Now when this query is created I want to send this as stored procedure query part in sql stored procedure i.e. select * from records where recno>100 // this is sql query I want to set this query as stored procedure query //stored procedure create procedure recordcount as //above generated query shoul be here return I hope you understand my problem. If Know solution share with me...... Let's Teach Life To Laugh........:laugh:

            S Offline
            S Offline
            surshbabuk
            wrote on last edited by
            #5

            hi try it bteeeeeeeeeeeee create procedure getrecno @recno as begin select * from tablename recno>=100 end;P suresh babu.k -- modified at 10:33 Tuesday 20th June, 2006

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups