Viewing 15 posts - 241 through 255 (of 1,473 total)
Thanks for the links. I actually did find both of those in my searching the other day, and part of the reason I thought it might exist in some...
March 28, 2010 at 11:19 am
Paul White NZ (3/28/2010)
Lynn Pettis (3/26/2010)
nitinkumar_tss (3/26/2010)
March 28, 2010 at 9:59 am
Paul White NZ (3/27/2010)
Jeff Moden (3/27/2010)
March 27, 2010 at 11:32 pm
I'm almost inspired to create a whole database with "picture text" table names like >^.^< and <('.'<).
...
Almost.
March 26, 2010 at 3:28 pm
That one can be nasty. There's a very similar version that can bite you as well.
March 26, 2010 at 3:10 pm
Windowed functions are definitely high on my list, but I think I'd have to go with DMV's for the win.
March 26, 2010 at 3:02 pm
I think I've got you beat Bob. This is pretty performant... runs in well under a second.
CREATE TABLE #Test(
nvcnvarchar(MAX))
CREATE TABLE #Output(
nvcoutnvarchar(MAX))
INSERT INTO #Test(nvc)
SELECT REPLICATE(N'A',500) UNION ALL
SELECT REPLICATE(N'B',600)
-- Declare Variables
DECLARE...
March 26, 2010 at 2:56 pm
Michael Meierruth (3/26/2010)
The WITH statement is the best thing that came out with SS2005.
And there is no need to wrap your head around it. It's really simple!
It's like preparing your...
March 26, 2010 at 2:13 pm
kramaswamy (3/26/2010)
March 26, 2010 at 2:05 pm
It seems like Oracle uses something like this that you can access, but unfortunately MS SQL does not. If you can give more details on your goal, it's possible...
March 26, 2010 at 1:52 pm
If I understand this correctly, you're saying that it's failing even when you're not attempting to select from the table that you don't have rights to.
I tried to duplicate this...
March 26, 2010 at 1:41 pm
No problem with the skepticism, I'm still running 2000 in my environment here, and these work fine (with the versioning restriction on fn_get_sql that I mentioned above, you need that...
March 26, 2010 at 9:48 am
What are you trying to achieve? I know you want to get those columns... but for what purpose, what are you going to do with the info? I...
March 25, 2010 at 4:16 pm
Here's another snippet for working with fn_get_sql that might be helpful.
CREATE TABLE #C(dbid smallint, objectid int, number smallint, encrypted bit, [text] text)
DECLARE @handle binary(20),@textptr binary(16),
...
March 25, 2010 at 4:12 pm
You should be able to use DBCC INPUTBUFFER(@@SPID) and ::fn_get_sql (The second one only works if you have SP3, or more specifically the patch that added this and the sql_handle...
March 25, 2010 at 4:07 pm
Viewing 15 posts - 241 through 255 (of 1,473 total)