Article View: alt.pl.comp.lang.csharp
Article #801Re: procedury przechowywane
From: Macko
Date: Thu, 01 Apr 2004 17:35
Date: Thu, 01 Apr 2004 17:35
25 lines
1569 bytes
1569 bytes
>W jaki sposob moge uzyc procedure osadzona na serwerze SQL ? > >SqlCommand1.CommandType = CommandType.StoredProc; >SqlCommand1.CommandText = "mojaprocedura"; >SqlCommand1.ExecuteNonQuery(); > >Zostaje zwrocony TYLKO jeden rekord, a powinien zwrocic ich 200! Gdy >uruchamiam ja w innym programie dziala, natomiast pod C# nie za bardzo.. >Co mam mu zrobic zeby zadzialalo? Mozna na przyklad tak: SqlDataAdapter daAdapter = new SqlDataAdapter(SqlCommand1, connection); DataSet dsDataSet = new DataSet(); daAdapter.Fill(dsDataSet, "NaToCzekalem"); connection.Close(); A potem na przyklad: MessageBox.Show(dsDataSet.Tables["NaToCzekalem"].Rows.Count.ToString()); Pozdrawiam, Macko
Technical Details
Message-ID:
<ghko60ls94mi8uldp9sv0u70e43p9j095r@4ax.com>Path:
mbox-mo1.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<c4hbta$5dm$1@news.onet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Macko <mluszc...@poczta.onet.pl> Newsgroups: alt.pl.comp.lang.csharp Subject: Re: procedury przechowywane Date: Thu, 01 Apr 2004 19:35:02 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 25 Message-ID: <ghko60ls94mi8uldp9sv0u70e43p9j095r@4ax.com> References: <c4hbta$5dm$1@news.onet.pl> NNTP-Posting-Host: 80.50.174.166 Mime-Version: 1.0 X-Trace: nemesis.news.tpi.pl 1080841042 13169 80.50.174.166 (1 Apr 2004 17:37:22 GMT) X-Complaints-To: use...@tpi.pl NNTP-Posting-Date: Thu, 1 Apr 2004 17:37:22 +0000 (UTC) X-Newsreader: Forte Agent 1.93/32.576 English (American) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit