Forum Replies Created

Viewing 15 posts - 76 through 90 (of 108 total)

  • RE: Concatenating data from multiple records into one column

    Hi there

    try this - it might not be exactly what you're looking for, but the concepts could probably be amended to suit your needs. I made a test table and...

  • RE: Restore Backup from changing file name

    you can also use the 'ren' command to rename the backup file, providing xp_cmdshell is enabled (SQL 2005)

    xp_cmdshell 'ren \\servername\sharename\Backups\databasename\xyz_db_*.bak new_name.bak'

    Then add a job step to restore from 'new_name.bak' etc

    just...

  • RE: Monitoring Scheduled Jobs

    hey v

    thanks for that script - i'm going to expand it a bit and use it as the basis for writing a reporting services report that will indicate the last...

  • RE: What kind of DBA are you?

    rbarryyoung (4/7/2008)


    Jeff Moden (4/7/2008)


    rbarryyoung (4/6/2008)


    Jeff Moden (4/6/2008)


    Heh... I handed Babbage gears 😉

    Good one. 🙂

    I was serious about my Uncle though, he really did do all of that...

  • RE: What kind of DBA are you?

    FWIW

    I use 'sequel' when I refer to 'sequel server 2005'

    but lapse into the less efficient ess-kue-ell when referring to T-SQL

    typical Libran...a bob each way! :w00t:

  • RE: link server

    did you set up a SQL user specifically for the linked server (on the server to be linked) - with permissions on the tables, views etc that need to be...

  • RE: drop table if exists

    If you have access to the database via SS Management Studio you can generate the T-SQL needed to drop the table by

    right_clicking on the table and selecting:

    Script Table as |...

  • RE: select 3/4

    both of these work for me, and return .75

    SELECT cast((3.0/4.0) as float)

    SELECT cast(3 as float)/cast(4 as float)

  • RE: link server

    ...or right-click on "Server objects | Linked Servers" and select "New Linked Server..." then complete the fields in the dialog box.

    First of all, I usually set up a dedicated user...

  • RE: Delete old Backup files using T-sql script

    have you checked to ensure that the owner of the maintenance job (the identity that it runs under) has delete permission on the server folder where the backups are stored?

  • RE: Help with Year calculations

    call me ignorant :w00t: - but given that all years start on 1 Jan and end on 31 Dec couldn't these just be explicitly concatenated to the year that was...

  • RE: Bit Data Types

    Hi Jim

    I tested the use of both COUNT and AVG and in both cases the statement returned an INT

    COUNT returned the number of records where the bit was set to...

  • RE: Bit Data Types

    i haven't tried this out...but could you use something like the following to sum a bit field:

    SELECT COUNT(CASE WHEN bitfield = 1 THEN 1 ELSE NULL END) as totalBits

    FROM myTable

  • RE: Creating a combined IIF statement in a field expression

    alternatively, nest the four IIF statements inside each other, so that the "false" part of the first IIF, contains the next IIF statement

    for example:

    IIF (Fields!new_Region.Value=1, "West", IIF (Fields!new_Region.Value=2, "Central", ""))

    but...

  • RE: .Net Framwork version from SQL

    Open SS Management Studio, then click on Help | about...

    a popup window will appear with details of .NET framework etc -

    I'm not sure whether this is reporting the version on...

Viewing 15 posts - 76 through 90 (of 108 total)