Forum Replies Created

Viewing 15 posts - 17,506 through 17,520 (of 18,926 total)

  • RE: SQL Statement and Variables

    Nice, a triple synchronised post. It's a first for me.

    Hey Frank, since when are you approving the use a dynamic sql without questionning the design or the task at hand???

  • RE: Which is faster CHARINDEX or LIKE ?????

    That clears it up... obviously works now on another table.

  • RE: SQL Statement and Variables

    Unless this is for administration work I would suggest you find another way to solve your problem because the use of dynamic sql is strongly suggested againsts in a production...

  • RE: Which is faster CHARINDEX or LIKE ?????

    I know that but this query results in a scan :

    Declare @name as varchar(10)

    set @Name = 'id'

    Select * from dbo.SysColumns where name like @Name + '%'

  • RE: SQL Statement and Variables

    Nice point... but I'm still not totally sure of what he wants to do.

  • RE: NULL in Not In clause

    null = null returns unknown (without returning false, it doesn't return true). So there's just no match found in that query.

  • RE: SQL Statement and Variables

    well this would do it in this case.. but what are you trying to achieve exactly?

    set @MyMin = ISNULL((Select min(Number) from dbo.Fruits), 0)

  • RE: Which is faster CHARINDEX or LIKE ?????

    I can't replicate that index seek here..

    Can you post the ddl and some sample data so I can understand what I'm doing wrong?

  • RE: sql queries

    I was just prooving your point.. you can't have duplicate values on the clustered index...

  • RE: datetime with seconds

    Hey Frank, do you have a link where I can learn to show more smiley faces than the one I already way too overused (

  • RE: Finding Characters Patterns

    wow.. thanx for the trick, really gonna be usefull one of these days.

  • RE: sql queries

    I could post it but it would be in french so I'll pass on this occasion, but I created this little script.

    create table #a

    (

    A int not null

    )

    GO

    Insert into #a (a)...

  • RE: Looking for Suggestions from the pros

    Yup... we sometimes have huge threads and we have no other choice than to have 'em on difference pages. Also helps to see the sponsors more (hey they got...

  • RE: Sum hours

    Try something like this in the datasource of the textbox :

    =DateDiff("h";[StartDate];[EndDate])

    then at the bottom of the report you should be able to use sum([txtboxname])

  • RE: Query For Lower Case f

    This would look something like this :

    Select * from dbo.YourTable where YourCol = '123456f' collate LATIN1_GENERAL_CS_AC

Viewing 15 posts - 17,506 through 17,520 (of 18,926 total)