none
SqlDataAdapter::Fill(DataSet^ ds) gives error " "null2" is not permitted RRS feed

  • Question

  • Hi All,

     

    I need an urgent help. I have using SqlDataAdapter::Fill(DataSet^ ds).

    I am adding data to columns using

    SqlCommand^ var->Parameters[ "@in<colname>" ]->Value = a_in<colname>;

    0x0012d408 { "The name 'null2' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted."}

     

    Any idea why am I getting this error?

     

    Thanks,

    Anni

    Monday, July 16, 2007 7:18 PM

Answers

  • issue was resolved.

    It was my mistake in passing the parameters which i could never catch Smile

     

    Wednesday, October 24, 2007 11:56 PM