Forum Replies Created

Viewing 15 posts - 9,211 through 9,225 (of 13,469 total)

  • RE: DBCC TRACE

    are you confusing DBCC TRACEON with a system trace? (select * from sys.traces)

    every DBCC TRACEON command does a different thing...some turn on something to be visible in performance counters, others...

  • RE: Unable to send email alerts in SQL server 2005

    this clearly identifies the issue, and it's outside of SQL server:

    The server response was: 5.7.1 Unable to relay for aangie@ibmcore.org). )

    that is one of the standard SMTP error messages.

    that means...

  • RE: i need a query tip

    wouldn't this just be a min( date), and count(*) grouped by customerid ,year(min(date))?? so you can calculate counts per year or some other period?

  • RE: How to use sqlcmd to run my create database/tables/sp's script

    nite re-download the project one more time;

    i tested it found some bugs and missing code, this versions much better.

  • RE: Read only access to view all objects in a DB

    something like this is what you want;

    the permissions is VIEW ANY DEFINITION, which is what you were asking for: let them see the text of any view/proc/function.

    CREATE ROLE [ReallyReadOnly]

    --give reader...

  • RE: Periodic Backup using script and task scheduler

    the recommended way is to take your script, which you already know works, and use SQL Agent to create a job from within SSMS, which runs on a regular basis.

    while...

  • RE: SQL Agent Start Depend On SQL Server Engine

    as Chirag alluded to, you can use the procedure sp_procoption to run a procedure when SQL server starts, but SQL Agent might not be running.

    here's an article wher ethey discuss...

  • RE: DLL OR OCX??

    maybe i'm mis reading the request, but it seems to be "show SSMS reports in our application instead of SSRS web pages". I had thought it was different.

    I'm assuming the...

  • RE: Query idea!

    Renis yes it is certainly possible;

    check out this example; it is getting the names of all the tables and putting it into five columns.

    in your case, you just need to...

  • RE: Email from DDL trigger

    smitty your syntax was close; i tested this with my profile, and it works fine:

    ALTER TRIGGER [ddl_trig_database]

    ON ALL SERVER

    FOR CREATE_DATABASE

    AS

    declare @results varchar(max)

    SELECT EVENTDATA().value('(/EVENT_INSTANCE/TSQLCommand/CommandText)[1]','nvarchar(max)')

    EXEC msdb.dbo.sp_send_dbmail

    @profile_name = 'Default Notifications',

    @recipients = 'lowell@mydomain.com',

    @body =...

  • RE: How to Merge 3 database to 1 database

    there's not a simple script that does it; everything depends on the specifics of the data in question...foreign keys, primary key definitions, and more. you'll need to analyze the data...

  • RE: Two Server have different times on processing ETL.

    well, the existing load on the production server would certainly affect the speed, as it has to share/complete for resources with regular users;

    the devleopment server probably has a near-no load...

  • RE: Easy SQL

    the trick is to join the table against itself, so you can exclude one group:

    something like this:

    SELECT *

    FROM SOMETABLE t1

    WHERE t1.contact_type = 'Requestor'

    AND t1.user_id NOT IN

    (SELECT user_id ...

  • RE: How to use sqlcmd to run my create database/tables/sp's script

    the are .NET references, and have nothing to do with having SQL installed or not.

    you should be able to go to the project references and add them.

    ==edit whoops my bad...you...

  • RE: DiskSpace```

    well there's a couple of ways to do it, but they are just different flavors of the same idea....the command must be run on each server.

    One way is to...

Viewing 15 posts - 9,211 through 9,225 (of 13,469 total)