Forum Replies Created

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

  • RE: HELP Joing table by string searches??!!

    No matter what I do I always mess up the syntax

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Generate SQL script with EM

    In sysobjects find an ID of the record where the field 'name' is the same as the name of you UDF. Then find the record(s) in syscomments with the same...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Return date of following past week or future by 3 input arguments

    Too bad baceuse I think I have something that can do it with the number so you will just have to convert the VARCHAR to proper number yourself

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Return date of following past week or future by 3 input arguments

    Can it take the SQL weekday values instead of VARCHAR. 

    6 instead of Friday?

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Sql case statements..

    Well, Chris gave you an example that worked so there was no need for fixing the syntax of your code since in this case the usage of CASE was not...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Sql case statements..

    "The case statement is used in the select clause not the join clause"

    I have to disagree with this statement. There is nothing syntax wise preventing you from using CASE  in...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: HELP Joing table by string searches??!!

    How about this:

    select * from tablea

    INNER JOIN tableb ON tableb.property LIKE '%tablea.property%'

     

    PS. Changing CONTAINS to LIKE should do it. I just don't like the old linking syntax anymore.

     

     

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: What is managed code ?

    Maybe this can help

    http://blogs.msdn.com/brada/archive/2004/01/09/48925.aspx

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Question re inserts and updates

    The suggestion Ian gave you is fine in development environment, but be carefull with this in production with multiple users using your database. The Begin Transaction and running test SQL...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Table Dependencies

    I created few little SPs to help me with some of what you trying to do. They work for me but you may have to modify them to fit your needs.

    CREATE...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: problem with DISTINCT

    If you provide the table definitions for both we can see what can be done.

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: What is the argument against IDENTITY columns

    In my opinion CELKO's approach is a purist view of how the database should be build and has nothing to do with real life.

    For example you have a database of...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Viewing posts issue

    I think this is only the 'Active Topics' forum issue. The combo box for sorting there has only one entry. If you go and browse the other forums everything works...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Job Properties

    Look at all the tables starting with sysjob in msdb

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

  • RE: Select Previous Qtr''''s data in January

    Sorry a little cut and paste typo

    It should be something like this:

    SELECT * FROM table1

    WHERE

    (DATEPART(quarter, @date) = 1 AND DATEPART(quarter, table1_date) = 4 AND YEAR(table1_date) = YEAR(@date) -...

    ---------------------------------------------
    [font="Verdana"]Nothing is impossible.
    It is just a matter of time and money.[/font]

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