Forum Replies Created

Viewing 15 posts - 3,886 through 3,900 (of 13,462 total)

  • RE: Regex Expression to remove RTF tags

    Sel what I've done myself is to create a CLR function that returns RTF2Text, or vice versa;

    that's the best way i know of, because the RichTextBox from windows.forms handles...

  • RE: Fuzzy Matching Barcodes

    the barcodes i'm used to, like at the grocery store are basically a concatenation of a vendor number plus a product number;

    ie 41415 -00106 is Eggs, Large at Publix Supermarkets,...

  • RE: SQL Query - Update varchar ID's...confused.com

    oops i missed that part;

    doing something like SELECT RIGHT('0000' + SomeString,3) will give you stuff like 002 with preceeding zeros;

    then it's the find and replace you were after.

    i think this...

  • RE: email multiple query results to multiple staff

    in my case, i don't use the @query parameter; instead i build a varchar max string, and append multiple FOR XML outputs to it.

    I use that string for the @body...

  • RE: sql2005

    sys.objects has the last time the DDL of an object was modified.

    here's a simple example

    SELECT

    objz.create_date,

    objz.modify_date,

    SCHEMA_NAME(objz.schema_id) AS SchemaName,

    objz.name

    FROM sys.objects objz

    --WHERE ...

  • RE: SQL Query - Update varchar ID's...confused.com

    ok, if you are sure there is always three sections to your ID's, here's one way to do it:

    with myCTE (ID)

    AS

    (

    SELECT 'AG001/1/P1' UNION ALL

    SELECT 'AG002/1/P1' UNION ALL

    SELECT 'AG003/1/P1' UNION ALL

    SELECT...

  • RE: Possible to recover / retrieve a server-side trace definition?

    glad i helped a little bit Jason! i fixed the link in my original post also, thank you!

  • RE: Possible to recover / retrieve a server-side trace definition?

    I Tripped over this same issue myself, even wrote an article about it long ago(Reverse Engineering a Server Side Trace[/url])

    this is a much-improved-since-that-article version of a proc I've created this...

  • RE: Incorrect syntax error when using group by

    whoops thought i had it...still looking

    ok got it;

    looks like you were starting to wrap the big query with SELECT * () ds

    WHERE....

    there's a beginning open parenthesis, but no select *...

  • RE: How to total on distinct?

    i might be reading it wrong, but i think you just want to use either a CTE or a subquery, so you can further group your data;

    something like this, maybe?

    SELECT

    ...

  • RE: supplying a schema in queries, performance?

    ryan.mcatee (3/12/2013)


    To clarify, say we have three tables:

    schemaA.MyTable

    schemaB.MyTable

    dbo.MyTable

    If my current-logged in user's default schema is schemaA and the default schema for the database is schemaB. And we create a...

  • RE: Split a String

    ChrisM@Work (3/12/2013)


    AndrewSQLDBA (3/12/2013)


    I was actually looking for something else. That really did not help.

    Andrew SQLDBA

    What's the problem with it, Andrew? There is an alternative; I'm just curious.

    the default DelimitedSplit8K is...

  • RE: How do I optimize a query with a text column?

    i would think it depends on the query; if the query is returning a million rows with text data, there's not a lot to do;

    but depending on the query,...

  • RE: 4 database instances in a single server (SQL Server 2005)

    ok dumb question time guys:

    i also have 4 instances on my developer machine, for versions 2005 thru 2012.

    when selecting the memory counters in Perfmon, i see instances for 2008, 2008R2...

  • RE: "Indirect" Foreign Key Relationship

    actual foreign key constraints cannot expand to objects outside of the existing database.

    you could potentially create a user defined function that is used as a CHECK CONSTRAINT, which checks if...

Viewing 15 posts - 3,886 through 3,900 (of 13,462 total)