Forum Replies Created

Viewing 15 posts - 151 through 165 (of 498 total)

  • RE: Best way to exec crystal reports from a trigger?

    I agree with Andy, buld a small exe and have it do the processing. Just have your trigger put a record into a table that the exe looks at for...

  • RE: Using Print

    I prefer to use a logging table instead. Simply insert the records into the logging table and then when you want to check the status select from the log table...

  • RE: How To Check if Job is Running?

    Check sp_help_job.

  • RE: Getting one .sql file to execute contents of anothe .sql

    The only way I know of to do this is to use xp_cmdshell and call osql. Rather than doing it this way I usually use a batch file to run...

  • RE: collation

    Fred,

    I think we need more information on this. Are you saying that on Server1 you used SQL_Latin1_General_CP1_CI_AS as the default when you set up SQL? And that on Server2 you...

  • RE: Script which will backup the transaction

    I would do this with a couple of jobs. First create a backup device for your log, then create a job that will run your trans log backups (Look at "BACKUP"...

  • RE: Table data modification using Enterprise Manager

    I've never actually run across this. I wonder though if it is due to you not having a primary key on the table?

    Can you script your table out for us...

  • RE: Replication Control

    Look at sp_start_job and sp_stop_job. You should be able to start/stop the replication agent job with these.

  • RE: t-SQL to excel??

    You might also look at using OPENDATSOURCE and simply inserting the data directly into an XLS file.

    To retrieve data...

    ---------------------------------------------------------------------------------------------------------------------------------

    -- TODO: Make sure to change the name/path of...

  • RE: Help

    Depending on if you have permission for xp_cmdshell you could alter Richards print statements to call xp_cmdshell and print the line into your file.

    DECLARE @ctr int

        , @Cmd    nvarchar(255)

    SET...

  • RE: Rewrite Query with Nested Queries and Cross Join

    Hmmm... Why do you say it is using too much tempdb? With all those subqueries I'm not surprised! As Ken stated it would be nearly impossible to do the analysis...

  • RE: ESCAPE quote

    Try something like this....

    SET @var = REPLACE(@strWord,'''','''''')

    Then build the rest of the string.

  • RE: EXTRACT DATA TO A .CSV - Comma Separated Values

    If you return the results in Query Analyzer to a grid you can then save the results in CSV format. Unfortunately you can't save the column settings that way. Another...

  • RE: Switching database context within a script or proc

    If Jonathan's suggestion doesn't work use xp_cmdshell and call osql with the command.  BTW: That will also work even if you need to do it on another machine

  • RE: Converting Access Query to TSQL

    I agree with Keith on this. I think I would make a new table or add a column so that the abreviation of the region could be mapped to the...

Viewing 15 posts - 151 through 165 (of 498 total)