Forum Replies Created

Viewing 15 posts - 61 through 75 (of 79 total)

  • RE: Clean data in a column and use an IF ELSE LOGIC

    Since you are parsing the column, adding a clustered index will not help since the optimizer will probably do a full table scan during that operation.

    You can add an identity...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Clean data in a column and use an IF ELSE LOGIC

    It seems to me that there is a parsing question here.

    When using the IN for string comparision, it will be using the database collation.

    Default Collation of the SQL Server installation...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Error converting data type varchar to numeric- sql 2005

    Hi Jeff,

    I know you are a big fan of Tally tables and I have not used them since you gave a talk a long time ago at SNESSUG.

    Therefore, I took...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Error converting data type varchar to numeric- sql 2005

    Nice article Jeff. The function that you wrote determines if it is a integer. If there is decimal data, the regular expression has to be changed. Unfortunately,...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Error converting data type varchar to numeric- sql 2005

    Are you sure there is not bad data in that column?

    I was able to blow up your convert WHERE clause with a space and non numeric data.

    -- Database selection does...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Cannot insert a non-null value into a timestamp column

    This snipet will show you what a timestamp looks like when allowing the system to generate on the insert.

    USE tempdb;

    go

    CREATE TABLE stamp_test(

    TestDate DATETIME NOT NULL,

    TestStamp TIMESTAMP

    );

    GO

    SET...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Symantec Backup Exec

    Hi All,

    A quick update to this question I posted a month ago. The evaluation version of Backup Exec that comes with most LTO3 + drives does not restore an...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Group The Date

    Nice example Crazy Eights,

    I guess my question is why use the cross apply?

    Is there any advantage to using that statement?

    I turned on statistics for both your query and...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Generate all possible characters for UNICODE using SQL Script

    🙂

    Hi Jeff & Lowell,

    All and all, it is cool stuff and I have squirelled the E16 example away.

    I will have to remember to use it in the real world.

    -John

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Generate all possible characters for UNICODE using SQL Script

    Hi Jeff,

    I think you presented Tally Tables at the SQL Server Users Group in Southern New England last summer.

    I guess I am old school and need to think more in...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Check Table Exists being skipped in SP

    Hi Crazy Eights,

    I have used the identity insert before on bulk loads when I wanted to keep the identity column the same and not change the value to a plain...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Generate all possible characters for UNICODE using SQL Script

    I hope this explains your question in depth.

    First, SQL Server only supports UTF16 with the NCHAR, NVCHAR and NTEXT datatypes. That means, a character is represented by 2 bytes...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Group The Date

    You are converting the dates which are near midnight and after to whole dates and then grouping.

    The results are whats to be expected, two dates in yyyymmdd format.

    I guess my...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Log file shrink

    Hi SQL Novice,

    I picked this script up somewhere on the INTERNET. Execute it inside the database that you are interested in shrinking. It will tell you the files...

    John Miner
    Crafty DBA
    www.craftydba.com

  • RE: Check Table Exists being skipped in SP

    One solution is to put the whole DDL statement to create the table in the code instead of the SELECT into. For the field with a identity, change it...

    John Miner
    Crafty DBA
    www.craftydba.com

Viewing 15 posts - 61 through 75 (of 79 total)