Query per SharePoint
Un po’ di query SQL utili per SharePoint:
Useful SQL Queries to Analyze and Monitor SharePoint Portal Solutions Usage.
Technorati tags: sql, SharePoint, Microsoft
Un po’ di query SQL utili per SharePoint:
Useful SQL Queries to Analyze and Monitor SharePoint Portal Solutions Usage.
Technorati tags: sql, SharePoint, Microsoft
Giorgio mi segnala un articolo interessante:
Simulating Stored Procedures in Microsoft Access using Enterprise Library Application Blocks.
Technorati tags: C#, access, database, stored procedure
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: C#, SQL, stored procedure
Buona base da cui partire per una classe che devo implementare a breve… me lo segno per non dimenticarmelo: GenericParser.
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 providerInstead 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.
Sono usciti i “laboratori” per la Enterprise Library 2:
Hands On Labs for Enterprise Library 2
Technorati tags: Enterprise Library, .NET 2.0
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: .NET 2.0, SQL, BindingSource
Get free blog up and running in minutes with Blogsome | Theme designs available here