Viewing 15 posts - 5,626 through 5,640 (of 5,684 total)
It sounds as though you may have restored these databases from another server to here. If this is the case, and these are SQL logins (not NT logins), use...
September 9, 2010 at 2:14 pm
I'd start with the internal security on the linked server object, see who it's imitating, and see if that login can get to the view/has access to the other server.
September 9, 2010 at 10:55 am
Definately looking forward to parts 3 and 4, thanks for the articles!
September 9, 2010 at 10:38 am
Jeff Moden (9/8/2010)
Heh... whatever. My point is that BOL isn't wrong for the item I posted. 🙂
For the item you posted, no, but since we're discussing 2k5 and that...
September 9, 2010 at 10:33 am
Do you have the SQL Server error that gets kicked up when you try to call the local view that looks to the linked server view from .Net?
September 8, 2010 at 5:35 pm
Steve Jones - Editor (9/8/2010)
If you have a lot of code, it's a pain. I guess you could use something like SQL Search (http://www.red-gate.com/products/SQL_Search/index.htm) to find the code.
An additional method...
September 8, 2010 at 5:16 pm
To answer the specific question: You *can* alter the database restoration method via an Alter Database command before you begin, and thus the logging will only store the transactions that...
September 8, 2010 at 4:58 pm
LutzM (9/8/2010)
I usually try to avoid using DATEPART() at all due to the side effects of DATEPART(dw,) and ...
September 8, 2010 at 3:04 pm
elayevskiy (9/7/2010)
September 8, 2010 at 3:00 pm
Example below:
declare @blah DATETIME
SET@blah = '2010-09-08 13:45:00.000'
print LEFT( datename(dw, @blah), 3) + ', '
+ left( datename( month, @blah), 3) + ' '
+ datename( dd, @blah) + ',...
September 8, 2010 at 2:36 pm
LutzM (9/8/2010)
I would prefer a solution that would be able to benefit from an index on that date column, (snip)
Lutz, since when does a case statement in a returned column...
September 8, 2010 at 2:19 pm
I don't have a way to turn those off, but all of your dynamic code should be used with sp_executesql using parameters to help protect against sql injection if you...
September 8, 2010 at 2:14 pm
In Books Online (Help-Index), look up the CONVERT() function. It will give your your date time formatting options there.
September 8, 2010 at 2:08 pm
Code snippet: Alter as needed
CASE WHEN DATEPART( hour, @myDate) between 7 and 13 /*(1:59PM and lower)*/ then 1 when DATEPART( hour, @myDate) between 14 and 23 then 2 else 3...
September 8, 2010 at 2:01 pm
Please note the sample build code in the original post, where it shows that the first set of columns (for more then 8 fields) are in the most significant byte....
September 8, 2010 at 12:37 pm
Viewing 15 posts - 5,626 through 5,640 (of 5,684 total)