Forum Replies Created

Viewing 15 posts - 11,206 through 11,220 (of 18,923 total)

  • RE: Changing 2 fields - will I loose data?

    If you do that I can garantee you another extended vacation right after that one .

  • RE: Not using index

    Is it used if you query only from its own table?

    If so try adding joins one table at the time and see when it stops being used.

    Also dates are usually good candidates...

  • RE: Not using index

    Can I get the ddl to recreate the index?

  • RE: Not using index

    No need for hints (99.999% of the time).

     

    If you do something like this the index will NOT be used :

    where DATEDIFF(D, DateCol, GetDate()) < 15

     

    This version would use an...

  • RE: Changing 2 fields - will I loose data?

    Ya try in developpement first.  Once you get it working.  Take backup of production db and run on Production DB.  Take another backup and go take a break

  • RE: Query Question

    Maybe if we worked on the same data it would be easier.  Here's what I have.  Tell me if it works for you and the problems you encounter, if any...

  • RE: Update system stored procedures

    Copy the system procedure and create under a new name, make the modifications to the copy and use the copy in your code.  That won't break the system and Microsoft...

  • RE: Indexdefrag for all tables in the database

    Most likely because you are logged in as DBO.

     

    That's why I was using fully qualified names in my exemple.  It fails only when no object exists and it should work...

  • RE: What is =N'''' xxx '''' ?

    Books online / Unicode / Constants.

     

    By you pretty much need to know what you are searching for in this case .

  • RE: What is =N'''' xxx '''' ?

    It converts to unicode.

  • RE: Help w/ an Update statement

    Ya... that's about the only great thing about 2005.. you can actually see the pairing of those parenthesis so you don't miss any and you don't have to count them...

  • RE: Modifying sp_password

    One step better... all validation with check constraints (just add the case statement to another check constraint / trigger (better error messages) and you're golden) :

     

    CREATE TABLE #Pass (Userid int...

  • RE: Modifying sp_password

    How about this :

    DECLARE @pass TABLE (pwd CHAR(8) PRIMARY KEY CLUSTERED)

    INSERT INTO @pass (pwd)

    SELECT '12345678' --valid??

    UNION ALL

    SELECT 'abcdefgh' --not valid

    UNION ALL

    SELECT 'abcdefg1' --not valid

    UNION ALL

    SELECT '1bcdefgh' --not valid

    UNION ALL

    SELECT...

  • RE: Help w/ an Update statement

    update users set password =

    (lower(substring(studemo.firstname,1,2)) + lower(substring(studemo.lastname,1,4)) + cast(datepart(day, studemo.birthdate) as varchar (2)))

    FROM users

    inner join studemo ON users.username = studemo.ident

  • RE: A Special Announcement from Andy, Brian, and Steve

     I think you'd be better off to start a new thread which specifically answers that question... if not another article altogether!!

Viewing 15 posts - 11,206 through 11,220 (of 18,923 total)