Forum Replies Created

Viewing 15 posts - 2,866 through 2,880 (of 6,397 total)

  • RE: Disabling job schedules

    Yep, query msdb.dbo.sysjobschedules, link it back to msdb.dbo.sysschedules to get the schedule id, pass it into sp_update_schedule with an enabled param of 0

  • RE: Change hyperlink text

    In the footer of a subscription email? Not that I am aware of.

    In the report itself, you could use an expression on the text box

  • RE: Maintenance plan job error

    failed with the following error: "Cannot open backup device 'D:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\Backup\\BDSBPM\\BDSBPM_backup_201301010300.bak'. Operating system error 3(The system cannot find the path specified.).

    Ensure the path is correct

    A backup every...

  • RE: Disabling job schedules

    sp_update_schedule

    sp_update_jobschedule

  • RE: how to find dependent objects on Default or Rule in sql 2008

    Query sys.default_constraints, link it back to sys.columns and you get the default name, table name and column name.

    For rules, they are a depereciated feature, you should consider changing them all...

  • RE: how to find out number of processor core?

    Many ways

    exec xp_msver 'ProcessorCount'

    SELECT cpu_count FROM sys.dm_os_sys_info;

    Sure if you google "Number of Processors SQL" you will find others.

  • RE: simple MAX question

    That would be one for a ranking function. Depending on how you want to do what you need to do and then also what you want to do if...

  • RE: Report title with the use of report parameters???

    Use an expression in the text box which is the title, like the below

    ="Report with "+CStr(Paramaters!Param.Value)+" persons"

  • RE: Maintenance plan to clean *.bak files older than 14 days - SQL 2005

    Time plays a big factor in the deletion as it looks for anything which is directly 15 days or older.

    For example, day 1 backup finishes at 00:10, day16 finishes at...

  • RE: importing data remotly executing.

    That would then call for something to be coded in the app which will FTP up the file to a specific location, then connect to SQL and issue something like...

  • RE: Computed Columns & Divide By Zero Errors

    So the computed column is ColA / ColB, what do you want the output to be.

    If ColA is 10 and ColB is 0, do you want the computation to be...

  • RE: importing data remotly executing.

    I would say this is a task for SSIS.

    Use it to download the files from the FTP server and then if it downloads any execute a for each loop to...

  • RE: CTE or while loop or an other?

    Hi

    Something like this?

    DECLARE @Client TABLE (ClientID INT, Expected INT)

    DECLARE @JobHis TABLE (ClientID INT, JobInfo INT)

    INSERT INTO @Client VALUES (1,1),(2,2),(3,3),(4,4),(5,5)

    INSERT INTO @JobHis VALUES (1,100),(2,100),(2,200),(3,100),(3,200),(4,100),(4,200),(4,300),(4,400),(5,100),(5,200),(5,300),(5,400),(5,500)

    SELECT

    t1.ClientID,

    t1.Expected,

    COUNT(t2.ClientID) AS Actual,

    CASE WHEN t1.Expected > COUNT(t2.ClientID)...

  • RE: sql procedure

    As I say, this is a MS SQL forum, not a MySQL forum, I do not know MySQL.

    The example I gave was for MS SQL, you will need to find...

  • RE: Hard disk full

    Ok, so your in simple, thats ok just would dictate the way to go when purging.

    So the options are

    1 - Add more disk space

    2 - Purge data and perform...

Viewing 15 posts - 2,866 through 2,880 (of 6,397 total)