Re: Passing array of numbers to SQL query
jrogers.sw@xxxxxxxxx wrote:
The SQL for the tableadapter needs to use the IN operator as in
WHERE job_id in (111, 222, 333, 444, 555)
How do I specify that it is rather an array or list of numbers,
esentially passing an array of numbers to the parameter?
Pass it as a string. Then let the stored procedure that returns the data,
parse out the individual items.
There are some issues with this approach....
Search google groups in comp.databases.ms-sqlserver. I remember Erland
Sommarskog (or something like that) has a HP about this specific problem.
/jim
.
Relevant Pages
- Re: KirbyBase
... creating objects from the database records was much easier. ... Hal, I don't know if you have had a chance to take a look at the beta yet, but I basically tried to implement a uniform way to specify one-to-one links, one-to-many links, and calculated fields in the ... I suppose it would in effect be embedding an array where all the ... My first couple of attempts at adding more complexity to KirbyBase did not honor this concept. ... (comp.lang.ruby) - Bounds checked arrays
... As everybody knows, the C language lacks ... When the state of this toggle is ON, the compiler ... Important is to know that the array updates ... We have just to allow him/her to specify what to do ... (comp.lang.c) - Re: KirbyBase
... Hal, I don't know if you have had a chance to take a look at the beta yet, but I basically tried to implement a uniform way to specify one-to-one links, one-to-many links, and calculated fields in the create_table method. ... I suppose it would in effect be embedding an array where all the ... It's creeping complexity. ... My first couple of attempts at adding more complexity to KirbyBase did not honor this concept. ... (comp.lang.ruby) - Re: Bounds checked arrays
... > more at each array access will not make any ... > this problem in the C language to do their dirty ... > When the state of this toggle is ON, the compiler ... > We have just to allow him/her to specify what to do ... (comp.lang.c) - RE: array: subscript out of range
... I didn't specify the size of the array because ultimately i'm planning on ... If so we can look at a dynamically sized array... ... > Dim strArrayAs String ... (microsoft.public.excel.programming) |
|