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. Web Development
  3. ASP.NET
  4. problem with databaseconnectivity in webservices

problem with databaseconnectivity in webservices

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasesysadmin
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.
  • C Offline
    C Offline
    christefer
    wrote on last edited by
    #1

    hi this is RK iam working with webservics in asp.net in that iam trying to use databaseconnectivity iam passing this query in dataadopter " select dtlastupdated,dblvalue from dbo.tblPerodicTickerData where dtDateTime = between 2007-03-28 11:35:09.000 a.m And 2007-04-09 11:40:05.000 a.m" while using this websrvice in asp.net page iam getting the error like this "System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'between'." whAT DO I DO TO RECTIFY THIS ERROR COULD U PLEASE KINDLY HELP ME OK BYE

    K 1 Reply Last reply
    0
    • C christefer

      hi this is RK iam working with webservics in asp.net in that iam trying to use databaseconnectivity iam passing this query in dataadopter " select dtlastupdated,dblvalue from dbo.tblPerodicTickerData where dtDateTime = between 2007-03-28 11:35:09.000 a.m And 2007-04-09 11:40:05.000 a.m" while using this websrvice in asp.net page iam getting the error like this "System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'between'." whAT DO I DO TO RECTIFY THIS ERROR COULD U PLEASE KINDLY HELP ME OK BYE

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      Change your select to: select dtlastupdated,dblvalue from dbo.tblPerodicTickerData where dtDateTime between '2007-03-28 11:35:09.000' And '2007-04-09 11:40:05.000' And I think it will work. There is no = between and I removed the a.m and put quotes around the datetime values. Hope that helps. Ben

      C 1 Reply Last reply
      0
      • K kubben

        Change your select to: select dtlastupdated,dblvalue from dbo.tblPerodicTickerData where dtDateTime between '2007-03-28 11:35:09.000' And '2007-04-09 11:40:05.000' And I think it will work. There is no = between and I removed the a.m and put quotes around the datetime values. Hope that helps. Ben

        C Offline
        C Offline
        christefer
        wrote on last edited by
        #3

        yes it is working thak u very much rightfrom morning onwards iam suffering with this problem once thank u very much

        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