Attualità e Information Technology

May 30, 2006

Query per SharePoint

Filed under: IT, SQL

Un po’ di query SQL utili per SharePoint:
Useful SQL Queries to Analyze and Monitor SharePoint Portal Solutions Usage.

Technorati tags: , ,

AddThis Social Bookmark Button

May 29, 2006

Simulating Stored Procedures in Microsoft Access using Enterprise Library Application Blocks

Filed under: IT, .NET

Giorgio mi segnala un articolo interessante:
Simulating Stored Procedures in Microsoft Access using Enterprise Library Application Blocks.

Technorati tags: , , ,

AddThis Social Bookmark Button

Un altro SP Generator

Filed under: IT, .NET, SQL

SPGen - Stored Procedure Generator.
Ci ho dato solo un’occhiata al volo… sembra non gestire granchè il discorso identity, però non sembra male e può essere utile per prendere spunto per fare una versione un po’ più completa, magari “unendola” agli altri generatori.

Technorati tags: , ,

AddThis Social Bookmark Button

GenericParser

Filed under: IT, .NET

Buona base da cui partire per una classe che devo implementare a breve… me lo segno per non dimenticarmelo: GenericParser.

Technorati tags: ,

AddThis Social Bookmark Button

May 8, 2006

Access query from C#

Filed under: IT, .NET, SQL

Se aveste bisogno di lanciare una query di un database access da C#, guardatevi questo:
How to Run Access Query from C#.

Cito:

This is the way to execute your access queries from c#, (no need to pass the entire query like select ….. from …..) just name of the access query is enough.

OleDbConnection myConn = new OleDbConnection(strConn);
myConn.Open();
commonCommand.Connection = myConn;
commonCommand.CommandType = CommandType.StoredProcedure;
commonCommand.CommandText = “name of the query”;
commonAdapter.SelectCommand = commonCommand;
DataSet dtSet = new DataSet();
commonAdapter.Fill(dtSet,”table_name”);

// Here commonCommand is name of the OleDbCommand object
// Here commonAdapter is the name of the OleDbDataAdapter object
// strConn is “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\path”
strConn may vary from provider to provider

Instead of .storedprocedure, you can also make use of .TableDirect.
This is actually meant for running SQL Server stored procedures, but it is perfectly working for MS_Access Queries also.

Testato, sia con query di tipo select (come nell’esempio) sia con istruzioni di delete o update, e funziona perfettamente.

Technorati tags: , , ,

AddThis Social Bookmark Button

May 5, 2006

Hands On Labs for Enterprise Library 2

Filed under: IT, .NET

Sono usciti i “laboratori” per la Enterprise Library 2:
Hands On Labs for Enterprise Library 2

Technorati tags: ,

AddThis Social Bookmark Button

May 1, 2006

BindingSource.Filter - sintassi

Filed under: IT, .NET

Lo saprà chiunque, ma lo segnalo ugualmente.
La sintassi per la property Filter dell’oggetto BindingSource è quella SQL.
Lo segnalo perchè in rete non si trovano tante informazioni molto chiare al riguardo, o almeno io non le ho trovate.

Technorati tags: , ,

AddThis Social Bookmark Button
   

Get free blog up and running in minutes with Blogsome | Theme designs available here