0

How can I connect to a Sybase Database using C#.Net? Do I need to install a specific dll or I should add something in the

using

section?

mouthpiec
  • 3,923
  • 18
  • 54
  • 73
  • Related question: http://stackoverflow.com/questions/945501/sybase-ase-ado-net-2-0-provider – Heinzi May 10 '11 at 13:41

2 Answers2

1

You'll need to do both. You can either get providers from Sybase (my last experience was not entirely positive... their connector consisted of an unmanaged dll and a managed wrapper that was not portable across 32/64 bit machines), or use the ones from the Mono project. I'm sure there are several other providers like DataDirect as well.

NateTheGreat
  • 2,295
  • 13
  • 9
1

An alternative to the answer provided so far is to download and install the ODBC drivers, then lookup connecting to ODBC in C#.

George Duckett
  • 31,770
  • 9
  • 95
  • 162