Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 14th, 2007, 04:54 AM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Girl need help

Plis any body help me

Public Function GetCountTypeId(ByVal strselect As String) As DataSet
        Try
            Dim cmd As New SqlCommand
            Dim dsTypeID As New DataSet
            cmd.CommandType = CommandType.StoredProcedure
            cmd.CommandText = "CheckTypeID"
      Dim sqlNewParm As New SqlParameter("@convertName", strselect)
            cmd.Parameters.Add(sqlNewParm)
            cmd.Connection = con
            adpt = New SqlDataAdapter(cmd)
            adpt.Fill(dsTypeID)
            Return dsTypeID
        Catch ex As Exception
            Throw ex
        End Try
    End Function


I have Exception ----
ExecuteReader requires the command to have a transaction when the connection assigned to the command is in a pending local transaction.
-------
what can i do with this problem??????????????

The Transaction property of the command has not been initialized
:D

 
Old May 14th, 2007, 06:34 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

What is this: CheckTypeID

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
A Girl who wants to learn to oracle, Help me tactualapple Oracle 3 July 13th, 2004 08:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.