Forum Replies Created

Viewing 15 posts - 46 through 60 (of 177 total)

  • RE: Error 21776

    Believe it or not, Microsoft's online documentation (BOL) is suprisingly good.

    I'm not sure what happed with your first restore attempt. It seems like you basically did the right thing....

  • RE: Manual Log Shipping

    I haven't seen that behavior, but I have bult manual log shipping programs with C#. But really, you could use almost anything. This might work better for you...

  • RE: cannot

    It's not a system database, is it? (Master, Model, MSDB or tempdb.) These can't be deleted.

  • RE: Only put a period "." if there is a middle intial.

    If you SET CONCAT_NULL_YIELDS_NULL ON (which I believe is the default value, you should be able to accomplish this very easily:

    select LastName + ', ' + firstname + isnull(' '...

  • RE: Query Help

    select max(price)

    from (

    select top 100 price

    from tab1

    order by dates desc) a

  • RE: qod 12/29

    You would be correct if there are spaces in the data. Although the question didn't state it, I assumed that the field was some type of varchar and that...

  • RE: SQL on NAS

    I didn't think it was a good idea. I was wondering if there were good reasons for it, but I guess in most cases, there aren't.

    I was also struck...

  • RE: How to TEST if statistics should be updated.

    DBCC DBREINDEX does update the statistics on the indexes being rebuilt.

    Perhaps you need to review your indexing strategy. Also, are you sure that all indexes on all tables are...

  • RE: Insert month if missing

    You could create a temp table with your months, similar to the following:

    select month

    from #months

    where month not in(

    Select distinct b.month

    from invoice a,

    #months b

    wheredatepart(mm, a.InvoiceDate) = month

    )

  • RE: JOIN VS CORRELATED SUBQUERIES

    I think a rule of thumb is to use joins whenever possible, but to test the plan if performance is not what you expect.

    SQL Server can perform a join in...

  • RE: Script out logins and users

    quote:


    why not

    select * from syslogins


    syslogins doesn't contain the password. I believe you...

  • RE: Stars

    If stars are meant to show the level of commitment/contribution to this forum and not necessarily the level of knowledge, perhaps the problem lies in the labels. Labels such...

  • RE: Generate Sequence Number Safely

    Another approach is to use another table to hold your values. Then use a stored procedure to update the other table and get the last value. Always get...

  • RE: Filegroup Performance

    What kind of SAN do you have? My experience is with an EMC Symetrics (RAID 1+0) connected by fiber. It was much, much faster than any internal disk....

  • RE: How to select distinct month- year order by month-

    Maybe I'm missing something. can't you just order by productiondate?

Viewing 15 posts - 46 through 60 (of 177 total)