473,406 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

oleDbDataAdapter1 limited to 99 variables in SQL-statements??

Hello

My oleDbDataAdapter1 seems to be limited to 99 variables
in SQL-statements. At least it does give an error when
tying to address more than 99

Does anyboda know if that is a fixed limit or can it be
increased??

Thanks for all answers in advance
Nov 15 '05 #1
6 1480
Hi flaavia,

How do you know that is limited?

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"flaavia" <an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
Hello

My oleDbDataAdapter1 seems to be limited to 99 variables
in SQL-statements. At least it does give an error when
tying to address more than 99

Does anyboda know if that is a fixed limit or can it be
increased??

Thanks for all answers in advance

Nov 15 '05 #2
flaavia,

What is the error when you try and use more than 99 statements? I have
created a small test program, and was able to add 1000 parameters.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"flaavia" <an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
Hello

My oleDbDataAdapter1 seems to be limited to 99 variables
in SQL-statements. At least it does give an error when
tying to address more than 99

Does anyboda know if that is a fixed limit or can it be
increased??

Thanks for all answers in advance

Nov 15 '05 #3
Hello

Txs for your answers

My Access DB contains about 350 variables. When using the
Query Builder of the Data Adapter configuration wizzard
(oleDbDataAdapter->properties->SelectCommand->
CommandText ...; oleDbDataAdapter connected to
oleDbConnection) and selecting DB.* (all) then the Error
message appears:

The wizzard detected the following problems when
configuring the data adapter "oleDbDataAdapter1".
Details: Generated select statement. There were errors
configuring the data adapter.

That is all the message that appeared.

I tried to find out which variable is causing this. It
turned out that whenever more than 99 variables were
selected for the SQL statement that this error appeared -
regardless which of the 350 variables were selected.

Do you have any idea why that is ??
-----Original Message-----
flaavia,

What is the error when you try and use more than 99 statements? I havecreated a small test program, and was able to add 1000 parameters.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"flaavia" <an*******@discussions.microsoft.com> wrote in messagenews:08****************************@phx.gbl...
Hello

My oleDbDataAdapter1 seems to be limited to 99 variables in SQL-statements. At least it does give an error when
tying to address more than 99

Does anyboda know if that is a fixed limit or can it be
increased??

Thanks for all answers in advance

.

Nov 15 '05 #4
Hello

Txs for your answers

My Access DB contains about 350 variables. When using the
Query Builder of the Data Adapter configuration wizzard
(oleDbDataAdapter->properties->SelectCommand->
CommandText ...; oleDbDataAdapter connected to
oleDbConnection) and selecting DB.* (all) then the Error
message appears:

The wizzard detected the following problems when
configuring the data adapter "oleDbDataAdapter1".
Details: Generated select statement. There were errors
configuring the data adapter.

That is all the message that appeared.

I tried to find out which variable is causing this. It
turned out that whenever more than 99 variables were
selected for the SQL statement that this error appeared -
regardless which of the 350 variables were selected.

Do you have any idea why that is ??
-----Original Message-----
Hi flaavia,

How do you know that is limited?

--
Miha Markic - RightHand .NET consulting & software developmentmiha at rthand com
www.rthand.com

"flaavia" <an*******@discussions.microsoft.com> wrote in messagenews:08****************************@phx.gbl...
Hello

My oleDbDataAdapter1 seems to be limited to 99 variables in SQL-statements. At least it does give an error when
tying to address more than 99

Does anyboda know if that is a fixed limit or can it be
increased??

Thanks for all answers in advance

.

Nov 15 '05 #5
Hi,

"flaavia" <an*******@discussions.microsoft.com> wrote in message
news:0b****************************@phx.gbl...
Hello

Txs for your answers

My Access DB contains about 350 variables. When using the
Query Builder of the Data Adapter configuration wizzard
(oleDbDataAdapter->properties->SelectCommand->
CommandText ...; oleDbDataAdapter connected to
oleDbConnection) and selecting DB.* (all) then the Error
message appears:


If I remember properly this is a known problem with query builder (not
supporting tables with more than around 100 columns - i guess it is the same
for parameters).
Try accessing the statament by code instead.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com
Nov 15 '05 #6
Hi

Thank you very much for your answer.

Is that known by Microsoft and are they trying to fix
that ??
-----Original Message-----
Hi,

"flaavia" <an*******@discussions.microsoft.com> wrote in messagenews:0b****************************@phx.gbl...
Hello

Txs for your answers

My Access DB contains about 350 variables. When using the Query Builder of the Data Adapter configuration wizzard
(oleDbDataAdapter->properties->SelectCommand->
CommandText ...; oleDbDataAdapter connected to
oleDbConnection) and selecting DB.* (all) then the Error message appears:
If I remember properly this is a known problem with

query builder (notsupporting tables with more than around 100 columns - i guess it is the samefor parameters).
Try accessing the statament by code instead.

--
Miha Markic - RightHand .NET consulting & software developmentmiha at rthand com
www.rthand.com
.

Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Rahul Chatterjee | last post by:
Hello All I have an asp page in which I am performing the following 1. Querying a database view 2. Returning rows in to a recordset. 3. Looping thru the recordset and printing the data 4....
1
by: Daniel Roy | last post by:
Hi gurus, I just started to look at a very slow-running SQL statement generated by an application (Siebel). I spooled the SQL from the application, replaced the bind variables by their values, and...
7
by: TinTin | last post by:
Hello, How do I concatinate a variable. Here's the scenarios: declare @var1 varchar(20) declare @var2 varchar(20) declare @var3 varchar(20) declare @var4 varchar(20) .. ..
175
by: Sai Hertz And Control Systems | last post by:
Dear all, Their was a huge rore about MySQL recently for something in java functions now theirs one more http://www.mysql.com/doc/en/News-5.0.x.html Does this concern anyone. What I...
1
by: Ian OBrien via .NET 247 | last post by:
Hi, Im following the visual Basic Walkthrough 'Simple Data Access in a Windows Form' in Visual Studio.net which throws an error at the line OleDbDataAdapter1.Fill(DsAuthors1) ERROR: An unhandled...
0
by: Claudia Fong | last post by:
Hi, the using a DataAdapter to connect to a database which has tables according to year, for example dep2005, dep2004. I have a comboBox that contains the years (2005,2004,2003). The user will...
17
by: Mark A | last post by:
DB2 8.2 for Linux, FP 10 (also performs the same on DB2 8.2 for Windoes, FP 11). Using the SAMPLE database, tables EMP and EMLOYEE. In the followng stored procedure, 2 NULL columns (COMM) are...
7
by: misha | last post by:
Hello. I was wandering if someone could explain to me (or point to some manual) the process of mapping the addresses of host variables by DB2. Especially I would like to know when DB2 decides to...
1
by: DR | last post by:
what are the memory caps for threads running as a CLR stored procedure executed by sql server 2005? is it limited by OS only or also by sql servers memory limits? e.g. lets say my clr stored...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.