Home / ASP.NET Weblogs

Browse by Tags

Related Posts

  • Different SQL between C# and vb.net using LINQ to SQL causes performance issues

    Hi All, I am currently working on a project and we are using VB.NET, I am using LINQ to SQL for my data access. I have just implemented my search query and thought I would check the generated SQL's execution plan and found that the subtree cost was about 7.3. I know that I get different SQL between C#...
    Posted to Stefan Sedich's Blog (Weblog) by stefan.sedich on 02-07-2008, 12:00 AM
    Filed under: ASP.NET, .NET, MICROSOFT, .NET 3.5, SQL, LINQ, C#, VB.NET
  • Gotcha with linq and paging

    Hey All, Had a query which I was paging on the front end. I knew that a certain product was meant to be in my display but could not see it. But on page 2 a product would repeat itself. Odd, got into profiler and looked at the queries. The first page would get a select top 9 which would not do any orderby...
    Posted to Stefan Sedich's Blog (Weblog) by stefan.sedich on 01-22-2008, 12:00 AM
    Filed under: ASP.NET, .NET, MICROSOFT, .NET 3.5, SQL, LINQ, C#
  • Handling Default Values With LINQ to SQL

    Hi All, Have run into some issues with using default values in my SQL database with LINQ. I set AutoGenerated in the LINQ Designer to true which made use of my default values but this did not let me update this manually as it would throw an exception. I got a good suggestion from Young Joo to keep autogenerated...
    Posted to Stefan Sedich's Blog (Weblog) by stefan.sedich on 01-08-2008, 12:00 AM
    Filed under: ASP.NET, .NET, MICROSOFT, .NET 3.5, SQL, LINQ, C#
  • Tagging Implementation with LINQ

    Hello all, I decided to implement tagging on my video library. My first solution was to use one table for the tags. Containing the videoid and tagname. When I loaded in 1,000,000 test tags this became slow to generate my tag cloud data. My new solution was to split up the tags into two tables. One containing...
    Posted to Stefan Sedich's Blog (Weblog) by stefan.sedich on 12-22-2007, 12:00 AM
    Filed under: ASP.NET, .NET, MICROSOFT, .NET 3.5, SQL, LINQ, C#, TagCloud, Tags, Tagging
  • Unexpected results with Compiled Queries and LINQ to SQL

    SOLUTION: Ok fired up SQL profiler and see my problem, the non compiled query seems to not evaluate the query until you actualy use the object. But the Compiled version is hitting the database straight away. And as I was not using this data the non compiled version seemed fast as it never hit the database...
    Posted to Stefan Sedich's Blog (Weblog) by stefan.sedich on 12-10-2007, 12:00 AM
    Filed under: ASP.NET, .NET, ASP, MICROSOFT, .NET 3.5, SQL, LINQ, C#
  • Wierd behaviour with LINQ to SQL designer (bug????)

    This is odd. Have a test table with an id and name field no primary key was set as it was a quick test hack. Pulled the table into the LINQ Designer and noticed none of the validation partial methods were there. There was no OnnameChanged. Nowhere. After banging my head I made ID a primary key and boom...
    Posted to Stefan Sedich's Blog (Weblog) by stefan.sedich on 12-07-2007, 12:00 AM
    Filed under: ASP.NET, .NET, MICROSOFT, .NET 3.5, SQL, LINQ
  • dbo.PartitionLeft, dbo.PartitionRight and dbo.Partition

    IF EXISTS( SELECT * FROM dbo . sysobjects WHERE id = OBJECT_ID ( N'[dbo].[PartitionLeft]' ) AND xtype in ( N'FN' , N'IF' , N'TF' ) ) BEGIN DROP FUNCTION [dbo] . [PartitionLeft] END GO CREATE FUNCTION [dbo] . [PartitionLeft] ( @value bigint , @min bigint , @max bigint , @range bigint ) RETURNS bigint...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 06-08-2006, 12:00 AM
    Filed under: microsoft, sql, server, backoffice, sql server
  • CREATE FUNCTION dbo.IsValidCPF

    IF EXISTS( SELECT * FROM dbo . sysobjects WHERE id = object_id ( N'[dbo].[IsValidCPF]' ) AND xtype in ( N'FN' , N'IF' , N'TF' ) ) BEGIN DROP FUNCTION [dbo] . [IsValidCPF] END GO CREATE FUNCTION dbo . IsValidCPF ( @CPF varchar ( 11 ) ) RETURNS bit AS BEGIN DECLARE @Digito int DECLARE @Index int DECLARE...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 05-09-2006, 12:00 AM
    Filed under: microsoft, sql, server, backoffice, sql server
  • How to mimic Microsoft Access's FIRST and LAST clauses on SQL Server 2k, 7.0 and 6.5

    Suppose I have the following query run against Pubs database SELECT employee . emp_id , employee . fname , employee . minit , employee . lname , employee . job_id , jobs . job_desc , employee . job_lvl , employee . pub_id , employee . hire_date FROM employee INNER JOIN jobs ON employee . job_id = jobs...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 09-28-2005, 12:00 AM
    Filed under: microsoft, sql, server, backoffice, sql server
  • LINQ looks good, but DLINQ scares me

    One of Microsoft's announcements at the PDC this week has been LINQ ( L anguage IN tegrated Q uery). Here's the elevator speech version: "LINQ enables developers to query objects, databases and XML using a unified programming model because LINQ makes data transforms and queries first class NET citizens...
    Posted to Jon Galloway (Weblog) by Jon Galloway on 09-16-2005, 12:00 AM
    Filed under: SQL, TechEd / PDC, Microsoft
Page 1 of 3 (27 items) 1 2 3 Next >