PC Review


Reply
Thread Tools Rate Thread

DB2 - Parameters

 
 
OldButStillLearning
Guest
Posts: n/a
 
      3rd Dec 2007
I went through the VB2005 UI and create a DataSet and I create a DataAdapter
with the set of queries that I want to be able to run. One of my queries
requires that "CustomerID" be passed. In constructing the query for SQL
Server I would specify @CustomerID and this would be recognized as a
parameter. In Oracle I believe I would specify ":CustomerID". What would I
specify for DB2?

Thansk in advance for your assistance!!
 
Reply With Quote
 
 
 
 
Frans Bouma [C# MVP]
Guest
Posts: n/a
 
      4th Dec 2007
OldButStillLearning wrote:

> I went through the VB2005 UI and create a DataSet and I create a
> DataAdapter with the set of queries that I want to be able to run.
> One of my queries requires that "CustomerID" be passed. In
> constructing the query for SQL Server I would specify @CustomerID and
> this would be recognized as a parameter. In Oracle I believe I would
> specify ":CustomerID". What would I specify for DB2?
>
> Thansk in advance for your assistance!!


with a '?', as stated in the documentation of the DB2 ado.net
provider.

so:
SELECT * FROM Customers WHERE Country = ?

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpectedly prompted for parameters using parameters of form EdA Microsoft Access Forms 0 30th Apr 2008 09:53 PM
Help Needed. Update with parameters error - No value given for one or more parameters. Hexman Microsoft VB .NET 2 10th Aug 2006 07:46 PM
How can i make a help file with parameters as the menus parameters =?Utf-8?B?S2ltb24=?= Microsoft Access 0 21st Oct 2005 05:56 PM
Passing output parameters to SQL Server stored procedures through an SqlCommand object's Parameters collection Mark Rae Microsoft ADO .NET 8 26th Sep 2005 03:28 PM
Why is 2098 the maximum number of parameters in SqlCommand.Parameters Paul Clark Microsoft ADO .NET 3 24th Aug 2003 06:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:01 AM.