Forum Replies Created

Viewing 15 posts - 406 through 420 (of 1,409 total)

  • RE: Remove TempDB ndf file

    Pulivarthi Sasidhar (7/8/2014)


    DBCC SHRINKFILE: Page 3:48 could not be moved because it is a work table page.

    Msg 2555, Level 16, State 1, Line 2

    Cannot move all contents of file "tempdev1"...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Analytical Help - Customer Lifetime Value

    It would be very helpfull if you can give us some sample data and the desired result.

    See this link on how to post sample data: http://www.sqlservercentral.com/articles/Best+Practices/61537/

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Remove TempDB ndf file

    Use this command to empty the contents of the file. Only when the file is not used it can be removed.

    DBCC SHRINKFILE (N'{datafile_name}' , EMPTYFILE)

    You can also just remove the...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Doing healthcheck on 40+ SQL Servers centrally.

    I would prefer to execute the healthcheck locally by means of a SQL job and store the results in a table. The next step is to consolidate the data of...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: very slow performance

    If you replace the sub-selects to regular JOINs it will certanly clearify a lot and most likely improve performance. To make the query sargeble you also need to remove the...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: What's wrong with this code cant figure out?

    The "SELECT @Emp_ID = Emp_ID" part assigns a value to a variable and does not return any records. Therefor it can't be used to insert records into a (temporary) table.

    You...

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

    If they re-appear automaticly, they could be started by an SQL Agent job or perhaps by an application (like a monitoring application). You need to find out the process that...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Phantom FK violation

    Can you give us the exact code of the procedure and the exact code you execute from the query window, instead of a descriptive text of your action? If possible...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Database Mail Profile

    I don't have a script myselef, but it looks like this http://www.sqlservercentral.com/scripts/Database+Mail/100073/ can give you a rather good starting point.

    You can also create a script yourself using the [msdb].[dbo].[sysmail_add_....._sp] stored...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: unable to connect or ping the server.

    Do you have a (local) firewall that blockes all connections?

    Are you and your co-worker on the same network?

    Can you connect when you use your co-workers workstation?

    Can your co-worker connect when...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Database Mail Profile

    Have you looked at the script section of SQLServerCentral?

    http://www.sqlservercentral.com/search/?q=mail&t=s&sort=relevance

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

    sestell1 (6/24/2014)


    You can save your custom colors with specific connections if you use 'registered' servers in SSMS.

    I like to set all my production server connections to red, to cut down...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Wrong Updates when using Like Operator.. Need Urgent solution!

    Abhijit More (6/23/2014)


    As per my understanding SQL should compare the value one by one if that it the case it should have consider the matching value. Can you please explain...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Wrong Updates when using Like Operator.. Need Urgent solution!

    Abhijit More (6/23/2014)


    As per my understanding SQL should compare the value one by one if that it the case it should have consider the matching value. Can you please explain...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Wrong Updates when using Like Operator.. Need Urgent solution!

    Your problem is the text "HANDLING CHARGE" a complete value of its own, but also exists as a part in every other value. You need to alter the JOIN to...

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

Viewing 15 posts - 406 through 420 (of 1,409 total)