Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)

  • RE: Email Formatted HTML Table with T-SQL

    i fixed my code to support the "problematic" gmail which strips any CSS styling...

    and as you say "keep it simple" , so NO bcp, NO xp_cmdshell ,NO Blat = ONLY...

  • RE: Email Formatted HTML Table with T-SQL

    No Need to put <head> tag 🙂 this is a In-Line CSS in the <body> of the HTML...

    BUT Gmail is striping any Style (CSS) out of the HTML......

  • RE: Email Formatted HTML Table with T-SQL

    Why not using CSS?

    Example:

    DECLARE @bodyMsg nvarchar(max)

    DECLARE @subject nvarchar(max)

    DECLARE @tableHTML nvarchar(max)

    SET @subject = 'Query Results in HTML with CSS'

    SET @tableHTML =

    N'<style type="text/css">

    #box-table

    {

    font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;

    font-size: 12px;

    text-align: center;

    border-collapse:...

  • RE: Date Manipulation with DATEADD/DATEDIFF

    the fastest way to remove time from datetime is:

    select CONVERT(datetime,floor(convert(float,getdate())))

    Itzik Ben-Gan had a big post on Date Manipulation with benchmarking..(long time ago..)

Viewing 4 posts - 1 through 4 (of 4 total)