User Profile

Collapse

Profile Sidebar

Collapse
balajius
balajius
Last Activity: Apr 28 '10, 02:50 AM
Joined: Apr 12 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks for the help Pandian.

    Still is not working. Here is the latest code
    C#
    Code:
    Database db = DatabaseFactory.CreateDatabase("SQLSRVR");
    
    string myStoredProcedure = "usp_GetPersonContact";
    
    SqlParameter[] SQLParameters = new SqlParameter[1];
    
    SQLParameters[0] = new SqlParameter("@lastname", SqlDbType.VarChar, 50, "LastName");
    ...
    See more | Go to post

    Leave a comment:


  • Failed to convert parameter value from a SqlParameter to a String

    I am using VS2008 with asp.net 3.5 and enterprise library 4.1. I am getting the following error when I try to connect to database.
    "Failed to convert parameter value from a SqlParameter to a String"

    Here is my code

    Code:
    Database db = DatabaseFactory.CreateDatabase("SQLSRVR");
    
    string myStoredProcedure = "usp_GetPersonContact";
                
    SqlParameter[] SQLParameters
    ...
    See more | Go to post
No activity results to display
Show More
Working...