Viewing 15 posts - 9,241 through 9,255 (of 9,399 total)
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....
May 31, 2013 at 4:33 am
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....
May 30, 2013 at 1:24 pm
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...
May 30, 2013 at 1:11 pm
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...
May 30, 2013 at 12:56 pm
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;...
May 30, 2013 at 12:43 pm
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...
May 30, 2013 at 12:31 pm
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...
May 30, 2013 at 5:42 am
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...
May 30, 2013 at 5:35 am
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...
May 30, 2013 at 5:31 am
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...
May 30, 2013 at 5:26 am
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....
May 30, 2013 at 5:14 am
BTW, if you haven't read Grant's book he referenced earlier, I'd recommend it. It's good.
May 29, 2013 at 10:07 am
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...
May 29, 2013 at 9:50 am
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...
May 29, 2013 at 7:57 am
Viewing 15 posts - 9,241 through 9,255 (of 9,399 total)