Forum Replies Created

Viewing 15 posts - 61 through 75 (of 207 total)

  • RE: update value from the max date value

    I'd put it in function and then pass the function the three date values

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    CREATE FUNCTION [dbo].[ufn_MaxDate] (@DateA DATETIME, @DateB DATETIME, @DateC DATETIME)

    RETURNS DATETIME

    BEGIN

    DECLARE @ReturnDate DATETIME,

    BEGIN

    ...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: How to return multiple recordsusing Stored Procedure?

    in ASP the data is returned in a recordset, and then we code against that recordset. Again, I'm not sure how JSP uses data returned from the database. ...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: Checkbox = true

    Actually I would need to see the structure of all of the tables used in that query, I see you are using an outer join when setting the meal choice....

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: Checkbox = true

    What is the structure of your ses table that you are pulling the meal choice from?

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: Multiple Table Calculation

    Agree with Lynn, the referential integrity is needed to provide the solution, without it you would end up

    with a messy cartesian product. Now once you have set up the...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: Checkbox = true

    IN that case I would make my checkboxes generic. That being done, you can then pass the

    needed information in the same type of case statement after setting the...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: Checkbox = true

    The error in your code is that you are not limiting the code for the meal choice table to only the checked one. This can be a good proc...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: How to return multiple recordsusing Stored Procedure?

    Sharma

    Unfortunately, I don't know JSP, I'm a ASP/.NET developer. However, I did do a google search and the following url appeared to have very good information on working with...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: SELECT against Table or View

    as stated above, views are used to simplify complex queries that are used repeatedly. I use views for report writers who have difficulty with the join syntax and of...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: How to return multiple recordsusing Stored Procedure?

    CREATE PROCEDURE usp_ReturnRecords

    AS

    BEGIN

    SELECT

    id,

    name,

    address,

    phoneno,

    email,

    salary,

    FROM

    contacts

    END

    Then when calling the stored proc use:

    EXEC usp_ReturnRecords

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: Keep Identity values when importing data from one sql server table to another

    You have to turn identity insert on and off as each table is loaded. Of course that will slow you down because you will only be able to load...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: How Migrate from MS Access to SQL Server 2005?

    SSIS is probably the most simple way. If the field names are not the same, simply click on the edit mappings button when you get to that screen and...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: Full Recovery Mode Question for SQL 2000/2005

    Please ensure you check with management on data recovery and acceptable loss. If all data is bulk loaded from another source then you should use bulk logged or simple...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: Fastest way to copy backup file from server 1 to server 2

    Check with your network admin. 36 hours for 50gigs seams very slow. Of course it is all bandwidth dependent.

    The more switches between server a and...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

  • RE: Backup Plan

    Anjon

    Everything you need to do is in the script at this link

    http://www.sqlservercentral.com/scripts/Backup+%2f+Restore/31932/

    In the backup retention table, you set the time period increment and the number of backups you want to...

    Marvin Dillard
    Senior Consultant
    Claraview Inc

Viewing 15 posts - 61 through 75 (of 207 total)