Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 OdbcDataAdapter - Select statement with parameter

Author  Topic 

Shobham
Starting Member

2 Posts

Posted - 2011-07-29 : 02:29:51
Hi,

I am trying to configure an OdbcDataAdapter using SQL statements using the
"Query Builder".
I want to create a criteria based on a parameter value. Normally, with a
SQLdataadapter, I would just drop @OrderNumber in the criteria field for the
OrderNumber column. This would generate the correct parameter for the select
statement etc.

When I run the query inside of the "Query Builder" it works just fine. I get
prompted for the parameter and then I get the results I am looking for.

The problem I am having is that when I try to finish the configuration of
the dataadapter, I get this message:
"ERROR [42S22][Sybase][ODBC Driver]:column '@OrderNumber' not found"

Any help would be appreciated.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-07-29 : 02:34:28
Sybase? are you using Sybase query?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Shobham
Starting Member

2 Posts

Posted - 2011-07-29 : 05:58:25
Yes, In BIDS (Business Intelligent Development studio) using odbc connection , i am connecting to sybase database , in the query builder i am facing the above problem.

If SQL Server DB is connected through Microsoft SQL Server connection then above problem is not found
Go to Top of Page
   

- Advertisement -