Click here to Skip to main content
15,889,826 members
Home / Discussions / Database
   

Database

 
GeneralRe: VS 2013 Get detailsview with SQL light Pin
Richard MacCutchan12-Apr-16 7:47
mveRichard MacCutchan12-Apr-16 7:47 
GeneralRe: VS 2013 Get detailsview with SQL light Pin
BobbyStrain13-Apr-16 17:05
BobbyStrain13-Apr-16 17:05 
QuestionUsing Image Data type for a variable is giving error Pin
indian14311-Apr-16 9:50
indian14311-Apr-16 9:50 
AnswerRe: Using Image Data type for a variable is giving error Pin
Mathi Mani11-Apr-16 10:40
Mathi Mani11-Apr-16 10:40 
AnswerRe: Using Image Data type for a variable is giving error Pin
Richard Deeming12-Apr-16 3:13
mveRichard Deeming12-Apr-16 3:13 
QuestionFind if Change Data Capture is failing Pin
indian1436-Apr-16 7:36
indian1436-Apr-16 7:36 
AnswerRe: Find if Change Data Capture is failing Pin
John C Rayan11-Apr-16 1:34
professionalJohn C Rayan11-Apr-16 1:34 
QuestionSQLBindParameter producing SQL_NEED_DATA and/or [Microsoft][ODBC Driver Manager] Program type out of range Pin
Member 123356955-Apr-16 21:25
Member 123356955-Apr-16 21:25 
C#
Hi All,

We are working on a Windows desktop application and which interacts with a MS-Access as end database. We are writing some rows into tables of Ms-Access database by binding the parameters using SQLBindParameter.

 At the time of binding a double and a string separately using SQLBindParameter(), it is successful and after SQL_Execute statement getting "Program type out of range" and "SQL_NEED_DATA" error correspondingly.

The SQLBindParameter() calls as below:

Scenario 1 - binding double parameter:

              double pValue;

             SQLINTEGER iResult = 0;

              iRetCode = SQLBindParameter(
              this->m_hStatement
              , 1
              , SQL_PARAM_INPUT
              , SQL_C_DOUBLE
              , SQL_DOUBLE
              , 8
              , 5
              , (SQLPOINTER*)pValue
              , 0
              , (SQLLEN*)&iResult
          );

and it is producing  [Microsoft][ODBC Driver Manager] Program type out of range  error.

Scenario 2 - binding string parameter(Uni code character set):

              CString pValue;
             SQLINTEGER iResult = SQL_NTS;

              iRetCode = SQLBindParameter(
              this->m_hStatement
              , 1
              , SQL_PARAM_INPUT
              , SQL_C_WCHAR
              , SQL_WCHAR
              , 32
              , 0
              , (SQLPOINTER*)pValue
              , 32
              , (SQLLEN*)&iResult
          );

and it is producing SQL_NEED_DATA  error.

Surprisingly, when I ran the above one by using sample program it is successfully writing record into the table, but when it comes to application, its giving SQL_NEED_DATA error.

I am trying to fix them for couple of days, but no luck. I appreciate your contribution to this question.

Thanks in advance,

Lakshmi NC.

QuestionA New Declarative Method to Update Object Databases and Remote Memories Pin
hvirkkun8-Jul-16 12:41
hvirkkun8-Jul-16 12:41 
AnswerRe: A Totally New Declarative Method to Update Object Databases and Remote Memories Pin
Mycroft Holmes5-Apr-16 14:35
professionalMycroft Holmes5-Apr-16 14:35 
QuestionQueries return contrary results (Postgre SQL) Pin
Lutosław4-Apr-16 22:15
Lutosław4-Apr-16 22:15 
AnswerRe: Queries return contrary results (Postgre SQL) Pin
Lutosław4-Apr-16 23:31
Lutosław4-Apr-16 23:31 
GeneralRe: Queries return contrary results (Postgre SQL) Pin
Jörgen Andersson5-Apr-16 20:14
professionalJörgen Andersson5-Apr-16 20:14 
Questiondelegate array of controls Pin
tiagu1-Apr-16 6:55
tiagu1-Apr-16 6:55 
AnswerRe: delegate array of controls Pin
Richard Deeming1-Apr-16 7:07
mveRichard Deeming1-Apr-16 7:07 
AnswerRe: delegate array of controls Pin
CHill602-Apr-16 9:56
mveCHill602-Apr-16 9:56 
QuestionMigrate data from production database to testing database Pin
Member 124302851-Apr-16 0:28
Member 124302851-Apr-16 0:28 
AnswerRe: Migrate data from production database to testing database Pin
Wombaticus1-Apr-16 1:19
Wombaticus1-Apr-16 1:19 
AnswerRe: Migrate data from production database to testing database Pin
CHill601-Apr-16 4:55
mveCHill601-Apr-16 4:55 
QuestionIs there an API for Datastax's cassandra file system (similar to WebHDFS). Pin
ravitk30-Mar-16 13:11
ravitk30-Mar-16 13:11 
QuestionStar schema . Pin
Member 1242471629-Mar-16 18:35
Member 1242471629-Mar-16 18:35 
AnswerRe: Star schema . Pin
GuyThiebaut29-Mar-16 21:55
professionalGuyThiebaut29-Mar-16 21:55 
QuestionTake default value if column doesn't exist Pin
indian14329-Mar-16 6:22
indian14329-Mar-16 6:22 
AnswerRe: Take default value if column doesn't exist Pin
CHill6029-Mar-16 13:44
mveCHill6029-Mar-16 13:44 
QuestionDate time so confuse. Pin
hmanhha29-Mar-16 5:25
hmanhha29-Mar-16 5:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.