Forum Replies Created

Viewing 15 posts - 391 through 405 (of 1,409 total)

  • RE: When Does Minimum not Mean Minimum?

    Thanks for providing the excellent sample code. 😀

    Unfortunate I can't reproduce your problem. When I execute the code it is displaying all the correct minimum values in field ed.DateTimeProcessed. I...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: How to set password newly install Sql server 2005 by query?

    From your VB6 you allready install the SQL instance. You could add some additional code to create an ODBC connection when the installation is finished. Next you execute the SQL-code...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: How to set password newly install Sql server 2005 by query?

    I guess this should work (when you are logged in as the SA):

    USE [master]

    GO

    ALTER LOGIN [sa] WITH PASSWORD=N'new_password'

    GO

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Spid of -3 holding permanent lock on database and tempdb does not have any tables after restart

    aurato (7/21/2014)


    I restarted my server's SQL Service when I could not kill a connection for nearly an hour. This caused many issues.

    ...

    2) After the restart, tempdb and the model...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Need help on Configure linked server with Failover partner

    You could try to wrap the code in a TRY...CATCH block. In the TRY part you define the linked server to the primary instance. If this fails it will jump...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Snapshotting mirrored databases

    It is not possible to create a snapshot of a database on another instance. You could setup some kind of back-up/restore technique (perhaps logshipping?) to create a available database on...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Backing up a DB with log shipping turned on

    Edward-445599 (7/16/2014)


    thanks sorry a little confused so I have log shipping enabled...

    If I now want to have nightly backups and t-log backups every 30 minutes.

    Do I just set up a...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: SQL databases info

    I don't think there is just one script to get all your desired information. You could search the script section of SSC site for several scripts and combine them yourself....

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: how to order by using parameter value

    I'm not sure if I understand your question correct, but maybe this can help. You can use a CASE statement in an ORDER BY like this:

    SELECT

    ...

    ORDER BY CASE

    WHEN ItemNumber...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Failed "ALTER DATABASE...REMOVE FILE" leaves sys.database_files missing a file

    Perry Whittle (7/15/2014)


    since a restart of the instance is necessary i would recommend you just remove the file at your next maintenance window. Start the instance single user and remove...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Failed "ALTER DATABASE...REMOVE FILE" leaves sys.database_files missing a file

    CaptainSlock (12/15/2011)


    The file "K:\sqldata\PROD_CRICKET\tempdev2.ndf" has been modified in the system catalog. The new path will be used the next time the database is started.

    Msg 5042, Level 16, State 1, Line...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: JOb failed

    Does the SQL Agent service account has permission on the linked server?

    Look in the SQL Error log on the linked server and see the detaild errors regarding the failed login.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: migration sql databaase

    And in addition to my previous post:

    Usinig the backup/restore method you always keep the original database available in case you need to fallback the migration.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: migration sql databaase

    I wouldn't opt for the detach/attach option. I would go for a similar option as Eirikur Eiriksson already mentioned in one of the previous posts:

    1. Copy all logins with access...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Strange behaviour

    Keep in mind that when one of the parts is NULL, the combined string becomes NULL. It looks like you have one or more rows where "c.First_Name" or "c.Last_Name" is...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **

Viewing 15 posts - 391 through 405 (of 1,409 total)