Results 1 to 4 of 4

Thread: error: SQL mobile made an unsupported request to the host operating system

  1. #1

    Thread Starter
    Member kryptonboy22's Avatar
    Join Date
    May 2006
    Location
    philippines
    Posts
    48

    error: SQL mobile made an unsupported request to the host operating system

    the error occur after inserting 3 consecutive record. I add the record then after my 3rd time that error pop up. and another i cant view the record i made in my slq server mobile database in my pc. i used emulator. i can only see the record in the emulator database but after i stop the program the record also disappears.

    what should be problem? tell me what should i do?


    here's my code
    HTML Code:
     Try
                ConnDatabase()
                cmdSData = CreateSQLConn.CreateCommand
                cmdSData.CommandText = "SELECT EANUPC, Itemdesc, RSP, [Count],itemcode  FROM  t_DATA"
                rstSData = cmdSData.ExecuteResultSet(ResultSetOptions.Updatable Or ResultSetOptions.Sensitive)
    
                Dim recSAVE As SqlCeUpdatableRecord = rstSData.CreateRecord()
    
                recSAVE.SetString(0, iBarcode)
                recSAVE.SetString(1, iItemDesc)
                recSAVE.SetDouble(2, iRSP)
                recSAVE.SetDouble(3, iCount)
                recSAVE.SetString(4, iItemcode)
    
                rstSData.Insert(recSAVE)
            
    
                Me.txtBarcode.Text = ""
                Me.txtRSP.Text = ""
                Me.txtCount.Text = ""
    
            Catch ex As Exception
                MessageBox.Show("Error: " & ex.Message)
    
            End Try

    Thanks!

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: error: SQL mobile made an unsupported request to the host operating system

    Hi,
    you may be easier using straight SQL - eg
    "insert into eanupc" using parameters

    Having never used updatable recordsets, I can't help further on that

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Member kryptonboy22's Avatar
    Join Date
    May 2006
    Location
    philippines
    Posts
    48

    Re: error: SQL mobile made an unsupported request to the host operating system

    I have used that before but the problem is no record was saved when i used straight SQL query, using tableadapters. Do i have to used table adapters? can you gave me some easy advice or samples? Thanks sir!

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: error: SQL mobile made an unsupported request to the host operating system

    http://samples.gotdotnet.com/quickst...pactFramework/ shows how to open a database and insert records

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width