Forum Replies Created

Viewing 15 posts - 8,806 through 8,820 (of 14,953 total)

  • RE: Loop to count

    You're welcome.

  • RE: SQL 2008 RTM but SSMS Pre_Release?

    Reinstall the client tools from an RTM (or later) disk.

  • RE: Testing Backups created from Maintenance Plans

    You should be able to query the backups tables in msdb and use the data from there.

  • RE: Need to lockdown access to sql server through EM and Query Analyser

    Nikki (8/6/2009)


    I guess I did not phrase the question clearly.

    Users do need access within database to perform their duties but they should be connecting to database only through the application...

  • RE: Loop to count

    It would look like this for you:

    declare @Range varchar(10);

    select @Range = '1-3';

    -- Query

    ;with CTE as

    (select EMPLOYID, 1 as Col, GROSWAGS_1 as MonthlyWages

    from dbo.UPR00900

    union all

    select EMPLOYID, 2 as Col, GROSWAGS_2

    from dbo.UPR00900

    union...

  • RE: Loop to count

    jordon.shaw (8/6/2009)


    I'm really new at T-SQL. I do have a background in PHP, so I know programming and I know SQL, just T-SQL is new for me, so I'm...

  • RE: Are the posted questions getting worse?

    jcrawf02 (8/6/2009)


    That's how I picture Jeff too, a princess in a forest.

    [hides]

    I'm just hoping to make him shoot soda out of his nose when he reads my post.... 😛

  • RE: Determine Row Size on a Table

    Do you mean the actual size of the stored data for each row, or do you mean the total possible size for the columns?

  • RE: Loop to count

    Here's a sample solution that you should be able to modify to fit your needs:

    set nocount on;

    if object_id(N'tempdb..#T') is not null

    drop table #T;

    --

    -- Table with similar structure

    create table #T (

    ID...

  • RE: Does Maturity Make a DBA?

    The one that says:

    While there are exceptions, most of the DBAs *I* have met seem to fit into one or more of the following categories:

    Conservative, not necessarily in the political...

  • RE: Are the posted questions getting worse?

    Jeff Moden (8/6/2009)


    Grant Fritchey (8/6/2009)


    GilaMonster (8/6/2009)


    Grant Fritchey (8/6/2009)


    Jeff Moden (8/6/2009)


    I've not confirmed my plane reservations but I'm 99.99% sure that I'm going to be in Lil' Rhody from 9/6 to...

  • RE: Loop to count

    It makes sense. It's the reason that data of that sort should be stored in rows, not columns, but it can be made to work.

    Will the query always be...

  • RE: Loyalty Cards

    bitbucket (8/6/2009)


    For those who read this forum and who are living in the U.S.A and who have forgotten about the Do Not Call listing and who wish to stop telemarketing...

  • RE: How do I return the third Friday of the current month?

    If you have a Numbers table, you can use this:

    ;with

    DatesInMonth (Date) as

    (select

    dateadd(day, Number-1, dateadd(month, datediff(month, 0,...

  • RE: Scripting task

    Look up "incremental" in a good dictionary. Not trying to put you off, but it's pretty straightforward once you've done that.

Viewing 15 posts - 8,806 through 8,820 (of 14,953 total)