Sql and DB Brand

N

Nice Chap

My application can use both SQLClient and OleDBClient, how can I write a
common SQL for both the options ? OleDB uses ? as a parameter and SqlClient
expects @Name as the parameter. I don't want to inject literal values into
the Sql. Is there is a way out at all ?
 
A

Armin Zingler

Nice Chap said:
My application can use both SQLClient and OleDBClient, how can I
write a common SQL for both the options ? OleDB uses ? as a parameter
and SqlClient expects @Name as the parameter. I don't want to inject
literal values into the Sql. Is there is a way out at all ?

Please ask in the database group instead. This group is about VB.Net related
questions.

microsoft.public.dotnet.framework.adonet


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top