Forum Replies Created

Viewing 15 posts - 6,811 through 6,825 (of 7,191 total)

  • RE: Unable to Update

    Not tested, but something like this should work.

    John

    UPDATE t

    SET t.lst_upd_ts c.lst_upd_ts

    FROM Tbl_Dates_Convert c JOIN Table_Dates2 t

    ON t.TS c.TS

  • RE: Advice needed to persuade customer to use sensible practices

    Rob

    I agree that it does seem a daft way of doing, but you don't need to have everybody having sysadmin access.  Just delete the BUILTIN\ADMINISTRATORS user (or whatever it's called...

  • RE: restore all databases, including system dbs, on one server to another

    Kathleen

    OK, so you can either copy the model database files to the default location before you start SQL Server, or you can start SQL Server with the -T3608 flag and...

  • RE: Help with difficult Query

    SQL Server implicitly converts the string into a datetime value.

    If you are trying to plug in the values in the way you show in your "Test it out" section, then...

  • RE: Help with difficult Query

    Would this work, then?

    INSERT INTO #temp_Metrics_aspStart_Time,End_Time)

    SELECT CAST (mt.New_idle_Time AS datetime), -- datatype is decimal

     CAST (mt.New_idle_duration AS datetime-- datatype is decimal

    FROM tbl_metrics_asp_test mt

    John

  • RE: Help with difficult Query

    What sort of information is in the idle_time and idle_duration columns?  Is it a number of seconds, or is it a decimal number that represents the number of days... or...

  • RE: Help with difficult Query

    Francis

    You don't say what you want to do with the data when you get it, so I have assumed you want to add the number of seconds in each half-hour...

  • RE: restore all databases, including system dbs, on one server to another

    Kathleen

    Are you not able to start SQL Server from a command prompt, either?  Look up the sqlservr syntax and try using the -c, -m or -f parameters.  Using trace flag...

  • RE: Missing Join Predicate

    Jan

    Is there an event immediately before the Missing Join Predicate event with the same SPID that might give you a clue?

    John

  • RE: Security Risk! Has anyone seen this before?

    Look up the topic "dtsrun Utility" in Books Online for details of how to encrypt the parameter string, and much more.

    You can still schedule through SQL Server - make sure...

  • RE: Moving the Distribution Database

    I know you can't detach a user database that's involved in replication, but I don't know whether that's true of the distribution database.  I have a feeling it is.  If...

  • RE: restore all databases, including system dbs, on one server to another

    Kathleen

    Not that I've ever done this before, but I think you need to use the sp_addserver stored procedure to change the name of your server.  See if you can start...

  • RE: Nested case Statment

    Richard

    COALESCE is more concise when you're testing for nulls:

    SELECT COALESCE (test1test2test3test4AS sample1

    John

  • RE: EXEC in SQL Functions

    Vidhya

    Can you not use a stored procedure instead of a function?

    John

  • RE: Linked servers in a cluster environment

    Chris

    MSDTC is configured differently on a cluster server, using the comclust utility.  You should be able to find plenty of information on this on the Microsoft website and elsewhere.

    John

Viewing 15 posts - 6,811 through 6,825 (of 7,191 total)