Forum Replies Created

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

  • RE: Using aliases in a subquery

    Update x set x.a = Z.Code from TableX X inner join

    (select code from openquery(select b,c,code from table y)) z

    on z.b = x.b and

    z.c = x.c

  • RE: varibles

    in the form source use dbo.ProcedureName

    and in input parameters : Forms!myform!mytextbox

    then separate each parameter with a comma.

  • RE: varibles

    What is the question?

  • RE: WHERE IN help needed

    I'll let this sink in before I show you the set-based solution.

    You might consider it seriously if this report is run very often.. or if the in list is very...

  • RE: WHERE IN help needed

    Then I guess that the problem comes from the employes list... can we see how you populate that variable?

  • RE: WHERE IN help needed

    You can't have a parameter in a view so no... By I suspect another problem. What error r u getting from sql server? Or Are you just not...

  • RE: ASNI NULLS and ANSI Warnings error

    SET ANSI_NULLS ON

    GO

    SET ANSI_WARNINGS ON

    GO

    CREATE PROC A

    AS

    Select null

    GO

  • RE: WHERE IN help needed

    This will run much faster (the longer the list, the faster) :

    Declare @list varchar(200)

    set @list = '688,708,87,88'

    Select * from Employees

    where empID in (Select Element from dbo.Split(@list, ','))

    CREATE FUNCTION [dbo].[Split]...

  • RE: SQL syntax question

    if intMemberId"" then

    strSql="select tblEvent.EventID as EventID,tblEvent.Event as Event,tblEventCategory.EventCategory as EventCategory,tblEvent.EventDate as EventDate,tblEvent.EventToDate from tblEvent,tblEventCategory where MemberId=" & intMemberId & _

    "and tblEvent.EventCategoryCode=tblEventCategory.EventCategoryCode...

  • RE: Scheduling sql

    Can we see the cursor code... I'd like to give a shot at the set based approach.

  • RE: Another Quickie- can Remi the demi(god) help again?!

    Tx Frank... Still a long way from catching you.

  • RE: Default "Order By"

    If you don't add any indexes then yes. But it's said in the bol that the only garantee to have the order by stay the same is to specify...

  • RE: help with a query

    HTH.

    And here's post #1000 <<<<<<<<<<<<<<<<<<<

  • RE: Retention

    Ya.. gives something to dream about and keep learning more about sql server... Maybe it's gonna be my turn someday .

  • RE: help with a query

    In this case this will correct your query and should give you what you need :

    CASE WHEN datepart(m, tblInvoiceMaster.invoice_date) = 5 THEN net_amt_due ELSE 0 END as soldmay,

    SUM(CASE WHEN...

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