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
E

EliteBrain

@EliteBrain
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Structure Fraction With Switch
    E EliteBrain
    1. Create a structure Fraction (numerator, denominator). Accept details of n fraction and write a menu driven program to perform the following operations. Write separate functions for different options. Use dynamic memory allocation.
      i) Display the largest Fraction.
      ii) Display the smallest Fraction.
      iii) Sort Fraction.
      iv) Display all.
      Note: While accepting fractions, store the fractions in the reduced form.
    C / C++ / MFC performance

  • InvalidOperationExpression was unhandled by user code(Enterprise Library)
    E EliteBrain

    Public Function GetMaxSerialNumber(ByVal docType) As Int32

          Dim db As Database = DatabaseFactory.CreateDatabase("igrwebConnectionString")
    
          Dim sqlCommand As String = SP\_UPDATE\_DOCUMENTDETAILS
          Dim dbCommand As DbCommand = db.GetStoredProcCommand(sqlCommand)
          db.AddInParameter(dbCommand, "@operationType", DbType.String, "R")
          db.AddInParameter(dbCommand, "@cType", DbType.Int64, docType)
    
          Dim SrNo As Integer = db.ExecuteScalar(dbCommand)
          Return SrNo + 1
    
      End Function
    

    The above code is giving an exception at db.ExecuteScalar(dbCommand) Error is

    ExecuteScalar requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.

    Please Help as i am new to enterprise library

    Web Development database help sharepoint
  • Login

  • Don't have an account? Register

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