Click here to Skip to main content
15,890,527 members
Home / Discussions / Database
   

Database

 
GeneralConnection Timeout Pin
Mauricio Ritter17-Mar-04 5:08
Mauricio Ritter17-Mar-04 5:08 
Generalserver error msg- 'Index (zero based) must be greater than or equal to zero and less than the size of the argument list.' when executing stored procedure in asp.net Pin
angelrain16-Mar-04 18:43
angelrain16-Mar-04 18:43 
GeneralRe: server error msg- 'Index (zero based) must be greater than or equal to zero and less than the size of the argument list.' when executing stored procedure in asp.net Pin
Not Active17-Mar-04 2:12
mentorNot Active17-Mar-04 2:12 
GeneralOdbc and .dbf data file Pin
mabb16-Mar-04 6:39
mabb16-Mar-04 6:39 
GeneralRe: Odbc and .dbf data file Pin
l a u r e n18-Mar-04 18:43
l a u r e n18-Mar-04 18:43 
General9x/xp paradox table compatibility Pin
kzyczynski15-Mar-04 11:57
kzyczynski15-Mar-04 11:57 
GeneralRe: 9x/xp paradox table compatibility Pin
ian mariano15-Mar-04 19:50
ian mariano15-Mar-04 19:50 
GeneralBinding variables to columns using names... Pin
Jesse Evans15-Mar-04 11:04
Jesse Evans15-Mar-04 11:04 
Hi, Folks!

In my applications I build an insert statement by concatenating several strings together, adding values by first using sprintf to get a string of the value. These values are defined in my database as floats, so all this conversation results in a loss of precision.

I believe the right way to do this is to bind my application's variables to the connection. However, the only call I've come across to do this with is SQLBindParameter. The problem I have is this: the call needs to know the parameter's ordinal position in the database schema. In my apps I don't always know this; I only know the column names.

So, it boils down to this: is there a way to get a column's parameter number from its name?

'til next we type...
HAVE FUN!! -- Jesse
GeneralRe: Binding variables to columns using names... Pin
Chris Meech16-Mar-04 7:42
Chris Meech16-Mar-04 7:42 
GeneralRe: Binding variables to columns using names... Pin
Jesse Evans16-Mar-04 8:05
Jesse Evans16-Mar-04 8:05 
General% and _ Pin
yyf15-Mar-04 8:31
yyf15-Mar-04 8:31 
GeneralRe: % and _ Pin
Mazdak17-Mar-04 3:41
Mazdak17-Mar-04 3:41 
GeneralConverting DBTYPE_STR to INT Pin
Robert Smit15-Mar-04 1:34
Robert Smit15-Mar-04 1:34 
Generalconversion of procedures Pin
M. Abubakar15-Mar-04 0:08
M. Abubakar15-Mar-04 0:08 
GeneralRe: conversion of procedures Pin
Steve S15-Mar-04 0:51
Steve S15-Mar-04 0:51 
QuestionLocking Rows During Edit? Pin
Verdant12314-Mar-04 18:49
Verdant12314-Mar-04 18:49 
AnswerRe: Locking Rows During Edit? Pin
Marcie Jones15-Mar-04 3:43
Marcie Jones15-Mar-04 3:43 
GeneralRe: Locking Rows During Edit? Pin
Verdant12315-Mar-04 3:52
Verdant12315-Mar-04 3:52 
Generalfill an access table with a dataset Pin
pankajdaga14-Mar-04 1:47
pankajdaga14-Mar-04 1:47 
GeneralRe: fill an access table with a dataset Pin
dishanf14-Mar-04 18:36
dishanf14-Mar-04 18:36 
GeneralRe: fill an access table with a dataset Pin
pankajdaga14-Mar-04 21:27
pankajdaga14-Mar-04 21:27 
GeneralRe: fill an access table with a dataset Pin
dishanf14-Mar-04 21:39
dishanf14-Mar-04 21:39 
GeneralCount (*) Pin
Peter Mayhew14-Mar-04 1:43
Peter Mayhew14-Mar-04 1:43 
GeneralRe: Count (*) Pin
-Dr_X-14-Mar-04 8:15
-Dr_X-14-Mar-04 8:15 
GeneralRe: Count (*) Pin
Peter Mayhew14-Mar-04 9:30
Peter Mayhew14-Mar-04 9:30 

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.