Re: Using C# to create stored procedures

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Using C# to create stored procedures
Дата
Msg-id 4612012D.1020307@hagander.net
обсуждение исходный текст
Ответ на Re: Using C# to create stored procedures  (Guy Rouillier <guyr-ml1@burntmail.com>)
Ответы Re: Using C# to create stored procedures
Список pgsql-general
Guy Rouillier wrote:
> Andrus wrote:
>> Last change for this project was 3 years ago.
>> So I think that it is dead.
>>
>> I'm writing application in C#.
>> I expected that I can wrote stored procedures in C# also using
>> something like mod_mono  in Apache.
>>
>> So it seems that most reasonable way is to learn dreaded plpgsql
>> language and write stored procedures in it.
>
> Who dreads PL/pgSQL?  It's a pretty easy language to learn.

It's fairly easy and fairly good as long as you're doing "db kind of
things". There are other things that are harder to do - which is why we
support a wide range of languages like perl, tcl, python, php, java etc.

Speaking of which - you might want to look into PL/Java, given that Java
syntax is fairly similar to C#. But if what you do is suitable for
pl/pgsql, it's probably a better idea to use that one.


> Granted,
> not as easy as one you already know, but I'm not aware of any RDBMS that
> supports C# as a stored procedure language.

Both MS SQL Server and IBM DB2 (on windows) supports .net stored
procedures in C#, VB, or any other .net hosted language. There may be
others that do as well, but those are the two I know of.

//Magnus

В списке pgsql-general по дате отправления:

Предыдущее
От: "Ashish Karalkar"
Дата:
Сообщение: Re: Problem restoring from backup file
Следующее
От: Jonathan Vanasco
Дата:
Сообщение: sql schema advice sought