Forum Replies Created

Viewing 15 posts - 5,806 through 5,820 (of 6,395 total)

  • RE: Automating Saving Spreadsheets from SQL queries

    Ah banking, now thats a whole different kettle of fish, you might have some problems with this due to the nature of the banking industry due to security regulations.

    I would...

  • RE: Long Sleeping/idle sessions (session_id)

    i would say no.

    if the connection count is getting higher and higher, its likely that one of the apps isnt closing and disposing of the connection object properly...

  • RE: script

    ramyours2003 (2/24/2012)


    thanks for sending , i would like

    DB name, DB size, Free space ,used space

    instead of geeting the file sze deatails separatley .

    use...

  • RE: script

    anthony.green (2/24/2012)


    sp_msforeachdb 'USE [?];

    select

    DatabaseName = DB_NAME() ,

    CollectionDate = CONVERT(DATE,GETDATE()),

    a.FILEID,

    [FILE_SIZE_MB] =

    convert(decimal(12,2),round(a.size/128.000,2)),

    [SPACE_USED_MB] =

    convert(decimal(12,2),round(fileproperty(a.name,''SpaceUsed'')/128.000,2)),

    [FREE_SPACE_MB] =

    convert(decimal(12,2),round((a.size-fileproperty(a.name,''SpaceUsed''))/128.000,2)) ,

    a.NAME,

    a.FILENAME

    from

    dbo.sysfiles a'

    Not a problem, its how I manage growth, it runs every day, inserts into a table,...

  • RE: Insert the deleted record in another Tables

    Didnt know about the output clause, thanks for that on Gail.

  • RE: Service Service Accounts

    Nice question

    I knew it wasnt in dm_os_nodes or dm_os_windows_info, so as it says to pick two, it had to be the top two.

    Changed the top one to sys.dm_ser then let...

  • RE: Automating Saving Spreadsheets from SQL queries

    Do you have any DBA's or BI developers (forgive me if you are one, but not having BIDS usually suggests that your not as its a key tools in a...

  • RE: How to instal sql server 2005(RTM) on windows server 2008 r2(64bit)?? error occured

    did you only want SSMS?

    Have you installed any of these features

    DB Engine

    Analysis Services

    Reporting Services

    Integration...

  • RE: Insert the deleted record in another Tables

    triggers are t-sql

    you will need to provide sample data, DML and expected results in a consumable format so we can help you out and explan clearly what you need, please...

  • RE: logshippin port number

    disable windows firewall on your servers

    if your on the same LAN for Pri and Sec servers and there is no firewall inbetween then its open

    if there is a firewall speak...

  • RE: Insert the deleted record in another Tables

    what you asking for is a trigger

    take a look at triggers and the before update statement, you can then have an audit table

    so for example i have the below table...

  • RE: SQL Server Job Notifications

    SQLKnowItAll (2/23/2012)


    Figured it out...

    SELECT *

    FROM msdb.dbo.sysmail_profile p

    JOIN msdb.dbo.sysmail_principalprofile pp

    ON p.profile_id = pp.profile_id

    WHERE pp.is_default = 1

    I have 4 accounts and 4 profiles, they all show in profile and principal profiles but...

  • RE: script

    sp_msforeachdb 'USE [?];

    select

    DatabaseName = DB_NAME() ,

    CollectionDate = CONVERT(DATE,GETDATE()),

    a.FILEID,

    [FILE_SIZE_MB] =

    convert(decimal(12,2),round(a.size/128.000,2)),

    [SPACE_USED_MB] =

    convert(decimal(12,2),round(fileproperty(a.name,''SpaceUsed'')/128.000,2)),

    [FREE_SPACE_MB] =

    convert(decimal(12,2),round((a.size-fileproperty(a.name,''SpaceUsed''))/128.000,2)) ,

    a.NAME,

    a.FILENAME

    from

    dbo.sysfiles a'

  • RE: SQL Server Job Notifications

    please attach a screenshot of the alert system tab by right clicking on the SQL agent in Ssms so we can see the settings being used to send notifications

  • RE: SQL Server Job Notifications

    you don't need a default mail profile so maybe that's why nothing is being returned from principal profile.

Viewing 15 posts - 5,806 through 5,820 (of 6,395 total)