Forum Replies Created

Viewing 15 posts - 766 through 780 (of 1,124 total)

  • RE: to create ldf file from an mdf file

    Use Attach Database method. BTW, You cannot have mdf or ldf files in CE edition. There are actually sdf files.

    --Ramesh


  • RE: Transactional log file backup:

    Off course, its possible & very simple to do.

    Just go to SSMS > Right click on the Database > All Tasks > Shrink > Files (In file type...

    --Ramesh


  • RE: enabled/disbaled job:MS sql server 2005

    Check in sysjobschedules & sysschedules tables in msdb database.

    --Ramesh


  • RE: Accessing remotely through views

    Cross Post...Continue discussions here

    --Ramesh


  • RE: Accessing remotely through views

    You need to create a linked server using sp_addlinkedserver procedure

    EXEC sp_addlinkedserver

    @server='TestServer',

    @srvproduct='',

    @provider='SQLNCLI',

    @datasrc='YourServer\InstanceName'

    Then, create linker...

    --Ramesh


  • RE: Retrieving records

    Is the friend_id a reference to users table? (which i think should)

    SELECTT.userid, U.username, T.friend_id, F.username As friendname, T.request_status

    FROMfriends T

    INNER JOIN users U ON T.userid = U.userid

    INNER JOIN users F...

    --Ramesh


  • RE: Meaning of error in Nest stored proc

    Msg 8134, Level 16, State 1, Procedure DivideByZero, Line 10

    Divide by zero error encountered.

    The statement has been terminated.

    It says that you're dividing a number by zero, which can't be defined...

    --Ramesh


  • RE: What to do to improve a table?

    How could I miss that?:hehe:

    Thanks Gail for the catch. I do agree with what you have suggested.

    Adding included varchar(max), nvarchar(max), varbinary(max), or xml (max) columns...

    --Ramesh


  • RE: What to do to improve a table?

    Create a non-clustered index on columns server, customer and add audit_output as include column.

    --Ramesh


  • RE: incorrect syntax for building a string

    You are not having enough quotes in the case block of the open query statement. You need to add 4 quotes instead of two as the statement is the...

    --Ramesh


  • RE: Openrowset returning null value when field is not null

    Setting up a linked server is the right way to go, anyway, try adding IMEX = 1 to the provider string, which will make treat the column as textual...

    --Ramesh


  • RE: How is the Query Designer toolbar enabled?

    Go to Management Studio > Query > Design Query in Editor

    --Ramesh


  • RE: How to find distinct top X values?

    Or something like this?

    SELECTTOP 5 T.*

    FROM( SELECT itemid, MAX( dateaccessed ) AS SNO FROM tblhits WHERE username = 'testusername' GROUP BY itemid ) T

    ORDER BY SNO DESC

    --Ramesh


  • RE: Rowcount

    RichardB (12/6/2007)


    Ramesh (12/3/2007)


    Why would somebody freeze his server by needing to use such a function?:w00t:

    Not the function I'd worry about - more the update of 4 billion + records...

    --Ramesh


  • RE: Checking for a view or table

    When creating or altering views, the statement CREATE VIEW should be the first one in the batch.

    Its definitely not a good idea to create views in a procedure.

    --Ramesh


Viewing 15 posts - 766 through 780 (of 1,124 total)