Forum Replies Created

Viewing 15 posts - 346 through 360 (of 423 total)

  • RE: Five Rules For Sucessful Conversations With DBAs

    If you think you know, then you have become ignorant; you have stopped your own evolution. I agree with most of the above posts: collaboration is number one.

    Recently people...

  • RE: Soundex - Experiments with SQL CLR

    Interesting article although it dwells more on C# than SQL. I too find Agile and Extreme Programming books fascinating but never found a way to make them useful in...

  • RE: SQL Server Full to Simple to Full Recovery Model

    You're not gaining anything because you need to do a full backup immediately after doing your changes. There used to be a command to "dump tran with no_log" but...

  • RE: Searching Address by Ranges

    I still strongly disagree. UDFs are much, much easier to incrementally add customization rather than throw away a CTE because it can no longer be used because of additional...

  • RE: Searching Address by Ranges

    I'm completely sick of anti-rbar preachers. They're just getting their ego kicks through trying to one-up everybody. Here is what is happening: code is being run on a...

  • RE: does it make difference nvarchar(50) or nvarchar(500)

    Only use nvarchar if you really need unicode otherwise use varchars. I make my varchars as small as possible because reports are generally formatted to handle the largest data...

  • RE: Searching Address by Ranges

    This function will return an int from the beginning of a string.

    SELECT dbo.LeadingNumbers('4568 Lancaster Avenue');

    SELECT *

    FROM Addresses

    WHERE AddressLine like '%Lancaster%'

    AND dbo.LeadingNumbers(AddressLine) >= 4000

    AND dbo.LeadingNumbers(AddressLine) < 5000

    ;

    IF EXISTS (SELECT *...

  • RE: Searching Address by Ranges

    A "good" way to perform your query would be to design the table with address parts instead of address lines.

    primary_number: ...

  • RE: Extracting a Date from a string

    Here is an attempt. I would write a procedural function to add tons of checking before moving this to production.

    declare @temp table (MyValues varchar(50));

    insert into @temp values ('3/24/12 Saturday

    ')

    insert...

  • RE: Run a script file against Multiple databases

    -- You can put this in your templates for easy reuse

    declare @list table (name varchar(128) not null);

    -- fill the list with your custom subset

    insert into @list

    select name from sys.databases where...

  • RE: SELECT with a variable Tablename

    declare @TableName varchar(128);

    set @TableName = 'sysdiagrams';

    if exists

    (

    select i.rowcnt

    from sys.tables t

    join sys.sysindexes i on t.object_id = i.id

    where indid in (1,0)

    and t.name = @TableName

    )

    print 'yes'

    ;

  • RE: Programming

    The whole mess of programming "between" different apps and data requires scripting or macro languages which are usually syntactically very ugly and kludgy. I generally end up doing a...

  • RE: LTRIM and RTRIM are not working

    Check the column or parameter definitions for char instead of varchar. Conversions between those are very tricky.

  • RE: smart first name matching in TSQL

    Here are an additional 2600 nicknames in my attachment to add to the attachment in the post above.

    My recommendation is to separate male from female names. Also use a...

  • RE: Separation of MDF and LDF files in a VM enviornment

    I've used the rule in the past of logs get mirrored and data gets RAID 5. It seems to be a losing battle against the network guys who like...

Viewing 15 posts - 346 through 360 (of 423 total)