Forum Replies Created

Viewing 15 posts - 9,241 through 9,255 (of 9,399 total)

  • RE: Creating views on multiple tables

    Ed Wagner (5/30/2013)


    Assuming the tables you want to expose in a single view are all the same, have you tried something like this?

    This is where this comment comes into play....

  • RE: SQL Server SSMS Doesn't like the ORDER BY Clause. What??

    Thanks. I feel the same way...that's why I still don't like the GUI table or view designers. I completely agree on speed and cleanliness of the tables, too....

  • RE: SQL Server SSMS Doesn't like the ORDER BY Clause. What??

    SSMS has an option where you can define how many rows are selected by default when you right-click a table. Go to Tools...Options...SQL Server Object Explorer...Commands. The key...

  • RE: Service Master and Database keys

    I agree with sturner. Backing up your service master key is always a good idea. Just because encryption isn't being used now doesn't mean it won't be used...

  • RE: The best method for reading books

    I very much prefer reading actual paper books instead of e-books. In real books, you can flip around and use fingers to hold a spot or two before continuing;...

  • RE: Service Master and Database keys

    No problem. Glad it helped.

  • RE: Service Master and Database keys

    Master Keys:

    select * from sys.symmetric_keys;

    The name of '##MS_DatabaseMasterKey##' or '##MS_ServiceMasterKey##' will tell you if it's a database master or service master key.

    Symmetric Keys are stored in the same table and...

  • RE: Delete take too much time

    I don't know if the time part of the datetime really matters to you, but you can adjust your minimum date to keep if necessary to account for the 23:59:59...

  • RE: Creating views on multiple tables

    Assuming the tables you want to expose in a single view are all the same, have you tried something like this?

    CREATE VIEW BillsView

    AS

    SELECT field_list

    FROM [server,port].database_name.dbo.table_name

    UNION

    SELECT field_list

    FROM...

  • RE: Delete take too much time

    Is the delete statement going to become part of a daily maintenance job on the table or is this a one-time task?

    If you're creating a daily maintenance, what indexes are...

  • RE: Delete take too much time

    I see you're casting ReportTime for every row in the table. You're also casting GetDate() and doing math with it. You end up with deleting 1M rows, so...

  • RE: TOP clause WITH TIES

    That was a good one. The insert twisted my thinking a bit and I had to take the time to see how the data was going to be populated....

  • RE: Application Slowness issue

    BTW, if you haven't read Grant's book he referenced earlier, I'd recommend it. It's good.

  • RE: Converting a old .sql to new

    It isn't SQL Server code that I've ever seen before. It isn't Oracle either. I don't know MySQL, so I won't comment on that.

    Perhaps the best way to...

  • RE: Checking References for a New DBA

    I had to go through this exercise myself a few years ago. I wrote up an "interview" sheet and limited myself to 10 questions. I had 5 technical...

Viewing 15 posts - 9,241 through 9,255 (of 9,399 total)