Forum Replies Created

Viewing 15 posts - 1,051 through 1,065 (of 1,409 total)

  • RE: Restoring failed

    Changing permissions on a folder is done from within Windows. You can use the Windows Explorer and open the properties of the folder. Use the security tab to add accounts...

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

    It looks like the folder 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\IPE_OCT_120_log' doesn't exist or the SQL service account doesn't have read/write access to that folder.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: How to get user position in table i.e 1st 2nd, 3rd

    To get a list of users without a lead, you'll have to change the INNER JOIN to a LEFT OUTER JOIN. You'll also need to change the join-criteria to accept...

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

    Take a look at the following links to get a file list:

    http://www.patrickkeisler.com/2012/11/how-to-use-xpdirtree-to-list-all-files.html

    Uses a undocumented feature that could be changed/removed by Microsoft without notice!!

    http://oakdome.com/programming/SQL_FileListing.php

    Uses the XP_CMDSHELL extended stored procedure and could...

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

    Add a new first step to the job to check if the table exisits and only create it if it doesn't exist yet.

    Change the command to read the trace from...

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

    And what is the error message when the steps fail?

    If you can't find the error message, execute the command "select * from ::fn_trace_gettable('C:BWP_test\T.trc', default)" from a SSMS query window...

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

    nivedita talukdar (6/23/2013)As suggested I'm using this:

    USE AdventureWorks;

    GO

    SELECT * INTO temp_trc

    FROM fn_trace_gettable('c:\temp\mytrace.trc', default);

    GO

    But this doesn't copy or load all the .trc files...instead just does it for the first file and...

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

    When restoring a backup, the default setting will be to place the data- and log-files to the same location as from the database the backup was taken from. So if...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Problem in SQL Server - Service Account

    Take a look at the name of the database under option "Default database" in the properties of the LOGIN. This database is probably deleted or offline or the user doesn't...

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

    If you have setup the trace using rollover files including a max number of files to use, you will have to read the first file before the rollover reaches the...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: having trouble granting role to user

    vxhughes (6/20/2013)


    Give me some credit - I'm not a complete idiot.

    Please forgive me if you take it personally. I didn't mean to offend you, just making a warning sign about...

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

    You can use the various [dbo].[backup%] tables in the MSDB database to see when backups are made and all other info about the backups.

    You can use the [dbo].[sysjobhistory] table to...

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

    You need to build some logic into the Agent jobstep to check if the trace is allready running. If the trace definition doesn't exist you need to create and start...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Why SQLCMD?

    Because SQLCMD is a commandprompt utility it can be used to automate actions. Consider a scenario in which you need to execute 50 different scriptfiles to update an application database.

    -...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Unable to Replay Default Profiler Trace

    The default trace template "Standard (default)" cannot be used to replay the actions. You should create a new trace and select the "TSQL_Replay" trace template.

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

Viewing 15 posts - 1,051 through 1,065 (of 1,409 total)