141 Prosta aplikacja bazodanowa #using using namespace System; using namespace System::Collections; #using
{"Image DocumentName": "Prosta aplikacja bazodanowa", "Image ImageDescription": "#using <mscorlib.dll> using namespace System; using namespace System::Collections; #using System.dll #using System.Data.dll #using System.Transactions.dll #using System.EnterpriseServices.dll #using System.Xml.dll using namespace System::ComponentModel; using namespace System::Data; using namespace System::Data::SqlClient; void main() { // Zapytanie SQL: String ^query = SELECT   FROM Categories ; // \u0141a\u0144such tekstowy definiuj\u0105cy po\u0142\u0105czenie // do bazy: String ^connectString = Data Source=983E8A44B5024CD\\SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True ; SqlConnection^ sqlconn = gcnew SqlConnection(connectString); sqlconn->Open(); SqlCommand ^sqlCommand = gcnew SqlCommand(query, sqlconn); // Bufor na dane. SqlDataReader ^dataReader = sqlCommand->ExecuteReader(); // Odczytanie liczby kolumn: int numCols = dataReader->FieldCount; // Wypisz liczb\u0105 kolumn. Console::Write( No. of columns: ); Console::WriteLine(numCols); // Wypisz Dane: while(dataReader->Read()) { for (int c = 0; c < numCols-1; c++) {Console::Write(dataReader[c]); Console::Write( \\t ); } Console::WriteLine( );", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}