Forum Replies Created

Viewing 15 posts - 26,101 through 26,115 (of 26,484 total)

  • RE: stored procedure error (using case)

    Try this code:

    CREATE PROCEDURE spClientContact

    @CustomerID int,

    @RecruitingOnly bit = 0

    AS

    BEGIN

    SET NOCOUNT ON;

    SELECT

        ID_Contact,

        ID_Customer,

        FirstName + ' ' + LastName AS Name

    FROM

        tblContactPersons

    WHERE

        (@Recruiting = 0

        and ID_Customer =...

  • RE: stored procedure error (using case)

    Never mind my last post, I missed something.  Give me a couple of minutes.

     

  • RE: stored procedure error (using case)

    Try this instead:

    CREATE PROCEDURE spClientContact

    @CustomerID int,

    @RecruitingOnly bit = 0

    AS

    BEGIN

    SET NOCOUNT ON;

    SELECT

        ID_Contact,

        ID_Customer,

        FirstName + ' ' + LastName AS Name

    FROM

        tblContactPersons

    WHERE

        ID_Customer = @CustomerID

        and (@RecruitingOnly =...

  • RE: Any Experienced Freelance 2005 DBAs in Dublin Irl?

    If I am like most people, I could always use some extra money.  Only question I have is are you will to work with someone out of country for freelance...

  • RE: Licensing for virtual servers

    Here is an excerpt from the licensing document from Microsoft:

    For Workgroup, Standard and enterprise edition, each virtual operating environment running SQL Server 2005 must have a processor license for...

  • RE: Looking for Feedback on Running PeopleSoft On SQL 2005 64 bit

    Are you looking at only running the database portion of PeopleSoft on a 64-bit server?  We run PeopleSoft Financials and HR here (Finance is at 8.9, and HR is on...

  • RE: Licensing for virtual servers

    If I remember correctly, and you may want to verify this on the Microsoft website, SQL Server needs to be licensed seperately on each virtual server.  I was looking at...

  • RE: Comma Separated values from the DB

    Using the above, I would make one change (you actually have two choices for this one change):

    DECLARE @Location VARCHAR(2000)

    set @Location = '' -- this

    SELECT @Location = @Location +...

  • RE: SQL 2005 Enterprise Evaluation on Production Server?

    Is your company in the process of purchasing SQL Server 2005 Enterprise Edition?  The evaluation copy is the Enterprise Edition that expires after 120 or 180 days, depending on how...

  • RE: problem revoking a users'''' access to msdb

    You could use dynamic sql in your stored procedure.  It would look sort of like this:

    declare @SqlCmd nvarchar(4000)

    set @SqlCmd = N'use msdb;exec your procedure'

    exec @SqlCmd

    hth

  • RE: restore to a different DB name

    Could you post the SQL you are using to restore the database?

  • RE: SQL 2005 on new server performance issues

    Part of the problem could be that you have SQL Server on domain controller.  That alone could take up quite a bit of system resources even if there are only...

  • RE: union problem

    You showed us what you are getting and what you want, but you also need to provide us with some sample data as well (preferable the same data used to...

  • RE: Working with Months

    Try this:

    declare @month varchar(15)

    set @month = datename(mm,dateadd(mm,-1,getdate()))

    select @month -- to see what you got

  • RE: Return Code

    Yes, I could, but I won't.  maybe some one else will, but we aren't doing you any favors just giving you the answers.  You need to take the time to...

Viewing 15 posts - 26,101 through 26,115 (of 26,484 total)