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
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Failed to open a Row set

Failed to open a Row set

Scheduled Pinned Locked Moved Database
databasehelpquestion
3 Posts 2 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.
  • H Offline
    H Offline
    haleemasher
    wrote on last edited by
    #1

    crystal reports r new to me i want to make a query using Add Command and want to include a condition Between for a Date. How i can do that? when i done it i create parameters also usin CREATE PARAMETER but when i give value to Date1 and click ok it show error Permission violation, or other nonsecific error and give another error failed to open a rowset. here is my query plz chk and reply. thnx in advance

    SELECT Sum(b.TotalSale*b.Price) AS total, a.Category , a.[Transaction]
    FROM TransactionType AS a INNER JOIN CouponTransaction AS b ON a.TransactionTypeID = b.TransactionTypeID
    where b.Transactiondate Between ({?Date1},{Date2})
    GROUP BY a.Category,a.[Transaction];

    M 1 Reply Last reply
    0
    • H haleemasher

      crystal reports r new to me i want to make a query using Add Command and want to include a condition Between for a Date. How i can do that? when i done it i create parameters also usin CREATE PARAMETER but when i give value to Date1 and click ok it show error Permission violation, or other nonsecific error and give another error failed to open a rowset. here is my query plz chk and reply. thnx in advance

      SELECT Sum(b.TotalSale*b.Price) AS total, a.Category , a.[Transaction]
      FROM TransactionType AS a INNER JOIN CouponTransaction AS b ON a.TransactionTypeID = b.TransactionTypeID
      where b.Transactiondate Between ({?Date1},{Date2})
      GROUP BY a.Category,a.[Transaction];

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      I suggest you take your select processing away from CR and move it back to your database where it belongs. When I worked with CR X|, years ago, we would build a stored proc (in SQL Server) that returned the exact set of data to service the report. Testing the data set is dramatically quicker in SQL management studio. Then use a parameterised query to get the data from the proc.

      H 1 Reply Last reply
      0
      • M Mycroft Holmes

        I suggest you take your select processing away from CR and move it back to your database where it belongs. When I worked with CR X|, years ago, we would build a stored proc (in SQL Server) that returned the exact set of data to service the report. Testing the data set is dramatically quicker in SQL management studio. Then use a parameterised query to get the data from the proc.

        H Offline
        H Offline
        haleemasher
        wrote on last edited by
        #3

        thnx 4 the suggestions but i want to get Date parameters value at run time.what should i do?

        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