-
as seen on C# Corner
- Search for 'C# Corner'
This article demonstrates how to use LINQ on DataTable, XML Data using LINQ to XML and SQL server data base using LINQ to SQL Classes.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am running a query using Linq2SQL that comes down to following query:
DateTime? expiration = GetExpirationDate();
IQueryable<Persons> persons = GetPersons();
IQueryable<Items> subquery = from i in db.Items
where i.ExpirationDate >= expiration
…
>>> More
-
as seen on ASP.net Weblogs
- Search for 'ASP.net Weblogs'
The way data can be retrieved in .NET. LINQ provides a uniform way to retrieve data from any object that implements the IEnumerable<T> interface. With LINQ, arrays, collections, relational data, and XML are all potential data sources. Why LINQ?With LINQ, you can use the same syntax to retrieve…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a Logic layer that references Silverlight's System.Xml.Linq dll and a GUI that is in WPF (hence using the non-Silverlight System.Xml.Linq dll). When I attempt to pass an XElement from GUI project to a method in the Logic project, I am getting (basically) "XElement is not of type XElement" errors…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I am using SQL Server 2005 in a project. I have to decide about datalayer. I would like to use LINQ in my project. I saw SubSonic 3 supporting LINQ and I also have option for LINQ to SQL, because i can have typed lists from LINQ to SQL.
I am wondering what is different between LINQ to SQL and…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a star schema but SQL Server 2005 always uses the clustered indexes to access a table. What parameters do I have to set to enable this optimization.
According to http://blogs.msdn.com/sqlqueryprocessing/archive/2007/04/09/how-to-check-whether-the-final-query-plan-is-optimized-for-star-join…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a problem with my SQL query that take time to get all records from database. Any body help me. Below is a sample of database:
order(order_id, order_nm)
customer(customer_id, customer_nm)
orderDetail(orderDetail_id, order_id, orderDate, customer_id, Comment)
I want to get latest customer…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm running a query daily to compile stats - but it seems really inefficient. This is the Query:
SELECT a.id, tstamp, label_id, (SELECT author_id FROM b WHERE b.tid = a.id ORDER BY b.tstamp DESC LIMIT 1) AS author_id
FROM a, b
WHERE (status = '2' OR status = '3')
AND category != 6
AND a.id = b…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi Team,
I am trying to learn SQL query optimization using SQL Server 2005. However, I did not find any practical example where I can improve performance by tweaking query alone. Can you please list some example queries - prior and after optimization?
It has to be query tuning – not adding index…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have googled but I can't find answers for these questions.
Your advice is appreciated.
centOS on vps with 512MB RAM, nginx, php5 (fastcgi), mysql5 (myisam, not innodb).
I need to optimize this app created by some ex-employee. This app is working, but it's slow.
Table:
t1(id[bigint(20)],c1[mediumtext]…
>>> More