Forum Replies Created

Viewing 15 posts - 496 through 510 (of 748 total)

  • RE: Microsoft OLE DB Provider for ODBC Drivers

    Anyone knows? I just need to import Notes database, I don't care whatever method I have to use, would be better if I can schedule it.

    I have no problem importing...

  • RE: How to generate auto ID in my query result? Thanks.

    Thank you my friend

  • RE: how to get login's ip address?

    Big thanks to everyone, your kind helps make my life lots easier.

    I am going to send the result as email attachment in certain period, is it possible to make the...

  • RE: how to get login's ip address?

    Thank you George,

    select * From sys.dm_exec_connections WHERE Session_id = @@SPID will give me the IP address info, and the following code gives me more detailed info...

  • RE: Quick question on how to judge if an integer equal to any integer

    try it! you'll like it.

    Sorry guys, I was hoping to see some case when query and didn't even try it, my apologies for this, it does work.

    Thank you lots.

  • RE: Quick question on how to judge if an integer equal to any integer

    thanks. it won't work.

    The records are all associated with a UserID, all non 0 value.

    When the input parameter is 0, all records should be pulled out.

    When the input parameter is...

  • RE: Performance issue

    Dave Ballantyne (2/27/2010)


    Have you established weather your stats are up to date or not ? Without good stats , sqlserver will not be able to make good choices.

    In terms...

  • RE: Performance issue

    Alex 469216 (2/25/2010)


    Dave's query also can give you incorrect results because of the LEFT joins: you can get records where w.workphonenumber AS phone, w.emailaddress AS email,w2.workphonenumber AS phone, w2.emailaddress AS...

  • RE: Performance issue

    Does this perform better ?

    SELECT TOP 20 a.employeeid AS [ID], a.account, a.displayname AS [Name], w.workphonenumber AS phone, w.emailaddress AS email,w2.workphonenumber AS phone, w2.emailaddress AS email

    FROM activedirectory a

    left JOIN WhitePage...

  • RE: Performance issue

    Does this perform better ?

    SELECT TOP 20 a.employeeid AS [ID], a.account, a.displayname AS [Name], w.workphonenumber AS phone, w.emailaddress AS email,w2.workphonenumber AS phone, w2.emailaddress AS email

    FROM activedirectory a

    left JOIN WhitePage...

  • RE: Performance issue

    Does this perform better ?

    SELECT TOP 20 a.employeeid AS [ID], a.account, a.displayname AS [Name], w.workphonenumber AS phone, w.emailaddress AS email,w2.workphonenumber AS phone, w2.emailaddress AS email

    FROM activedirectory a

    left JOIN WhitePage...

  • RE: Performance issue

    Dave Ballantyne (2/25/2010)


    Its the lookup to WhitePaper that is killing you ?

    I don't know, querying either of the two is acceptable but not after inner join them

    Are your stats upto...

  • RE: Performance issue

    foxxo (2/24/2010)


    You'll need to respond about whether there are indexes available..

    Thanks.

    Index has been created on: displayname(both), a.account, w.workphonenumber, w.emailaddress

    are you providing the Actual query plan, (rather than Estimated query plan)...

Viewing 15 posts - 496 through 510 (of 748 total)