[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby 1.8 reference?

Ferenc Engard

9/7/2003 11:39:00 PM

Hi all,

Is there a reference for the new features of version 1.8.0 compared to
1.6.8?

Thank you:
Circum
2 Answers

Miha Markic

2/7/2009 1:29:00 PM

0

You can try something like this:
DataTable table = new DataTable();
using (SqlDataAdapter adapter = new SqlDataAdapter("SELECT bla bla",
connectionString))
{
adapter.Fill(table);
}

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_...

"John" <info@nospam.infovis.co.uk> wrote in message
news:%23KdGiGSiJHA.3440@TK2MSFTNGP06.phx.gbl...
> Hi Miha
>
> Thanks. Basically I am stuck at how to turn a given sql into a data table
> which I can use as data source.
>
> Thanks
>
> Regards
>
> "Miha Markic" <miha at rthand com> wrote in message
> news:OX9crNRiJHA.4372@TK2MSFTNGP02.phx.gbl...
>> Are you saying thta you want to execute a select on database and use the
>> result as data source?
>> You'd need to use a database specific dataadapter to fill the table. Then
>> you can use that table as a data source. You can use database specific
>> datareader as well in some cases.
>>
>> --
>> Miha Markic [MVP C#, INETA Country Leader for Slovenia]
>> RightHand .NET consulting & development www.rthand.com
>> Blog: http://cs.rthand.com/blogs/blog_with_...
>>
>> "John" <info@nospam.infovis.co.uk> wrote in message
>> news:%23MbIYEMiJHA.5732@TK2MSFTNGP05.phx.gbl...
>>> Hi
>>>
>>> I would appreciate if someone could kindly give an example of how an sql
>>> string can be turned into a data source. I would specifically need to
>>> assign the data source to a binding source.
>>>
>>> Thanks
>>>
>>> Regards
>>>
>>
>
>

Jonathan Wood

2/8/2009 11:39:00 PM

0

In order to serve as a data source, you also need to define the database
server and the connection string needed to connect to that server. Once you
have that, you can also provide the SQL statement.

You can't create a data source from only a SQL string.

--
Jonathan Wood
SoftCircuits Programming
http://www.softci...
http://www.softci.../blog/

"John" <info@nospam.infovis.co.uk> wrote in message
news:%23KdGiGSiJHA.3440@TK2MSFTNGP06.phx.gbl...
> Hi Miha
>
> Thanks. Basically I am stuck at how to turn a given sql into a data table
> which I can use as data source.
>
> Thanks
>
> Regards
>
> "Miha Markic" <miha at rthand com> wrote in message
> news:OX9crNRiJHA.4372@TK2MSFTNGP02.phx.gbl...
>> Are you saying thta you want to execute a select on database and use the
>> result as data source?
>> You'd need to use a database specific dataadapter to fill the table. Then
>> you can use that table as a data source. You can use database specific
>> datareader as well in some cases.
>>
>> --
>> Miha Markic [MVP C#, INETA Country Leader for Slovenia]
>> RightHand .NET consulting & development www.rthand.com
>> Blog: http://cs.rthand.com/blogs/blog_with_...
>>
>> "John" <info@nospam.infovis.co.uk> wrote in message
>> news:%23MbIYEMiJHA.5732@TK2MSFTNGP05.phx.gbl...
>>> Hi
>>>
>>> I would appreciate if someone could kindly give an example of how an sql
>>> string can be turned into a data source. I would specifically need to
>>> assign the data source to a binding source.
>>>
>>> Thanks
>>>
>>> Regards
>>>
>>
>
>