Forum Replies Created

Viewing 15 posts - 46 through 60 (of 455 total)

  • RE: to create ldf file from an mdf file

    Do you have the directory path as is given above. Just to test try from Start Menu --> Run --> C:\Program Files\Microsoft SQL Server\MSSQL\

    and see if this folder is...

    Prasad Bhogadi
    www.inforaise.com

  • RE: to create ldf file from an mdf file

    Try attach option of the mdf file and it should prompt for creation of new ldf file on verify. Never tried though.

    Thanks

    Prasad Bhogadi
    www.inforaise.com

  • RE: Insert Update Stored Procedure for a table

    Thank You, thats a good idea I would probably create a tool which would automate creation of the Insert, Update, Select and Delete Stored Procedures.

    Thanks

    Prasad Bhogadi
    www.inforaise.com

  • RE: Insert Update Stored Procedure for a table

    It just generates the script as it is a generic script. You need to execute the script and it would create a stored procedure. I thought this is generic and...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Insert Update Stored Procedure for a table

    Can you please post what errors you are getting?

    Thanks

    Prasad Bhogadi
    www.inforaise.com

  • RE: Problem with eliminate convert date over 30 days

    Where do you get error? I did not understand why you are adding one day to GETDATE() function for Active and Inactive Status records.

    select

    [EMPLOYEE_STATUS],

    CASE WHEN [EMPLOYEE_STATUS]='Active'

    THEN (SELECT DATEADD(day,...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Problem with eliminate convert date over 30 days

    select

    * from hr

    WHERE

    terminate_date >=( CASE WHEN [EMPLOYEE_STATUS]='Terminate' THEN DATEADD(day,-30,GETDATE()) ELSE Terminate_date END)

    Prasad Bhogadi
    www.inforaise.com

  • RE: parameter

    Mike Levan (11/7/2007)


    I am trying to do something like this, but getting syntax error

    CREATE PROCEDURE [dbo].test

    @DBName varchar(30)

    AS

    SET NOCOUNT ON

    Select * FROM @DBName.dbo.emp

    WHERE jobid=''

    GO

    You need to use dynamic sql...

    Prasad Bhogadi
    www.inforaise.com

  • RE: QOD section

    In which case points should be alloted only for the posters who answer the questions before the answer is out, i.e. if a member answers the question correctly and within...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Copy database from SQL 2000 to SQL 2005 server

    I am not sure if you can use CDW for copying database from SQL Server 2000 to SQL Server 2005. Instead why don't you just trying using a backup and...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Sum returns error with IIF of field values.

    You can as well modify your source stored procedure or query to return 0 for No and 1 for yes and that way you may not be required to CAST...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Dashboard Reports

    I don't think this feature is supported in SSRS.

    Prasad Bhogadi
    www.inforaise.com

  • RE: Locate primary key - foreign key relations

    Todd Sherman (11/7/2007)


    Howdy, I expanded this a bit, and its now my favorite query for a new database 🙂

    By adding the bit to the WHERE clause, it brings back information...

    Prasad Bhogadi
    www.inforaise.com

  • RE: How to execute stored procedure which is having where condition as parameter

    May not be practical in scenario's where you have features like advanced searched across say a combination 15 fields with AND, OR and braces. I would rather prefer building a...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Whack a Database

    I believe the way Delete Database currently works has adequate steps before it deletes the database interms of having security and also prompting the user for confirmation in a separate...

    Prasad Bhogadi
    www.inforaise.com

Viewing 15 posts - 46 through 60 (of 455 total)