Viewing 15 posts - 6,361 through 6,375 (of 8,416 total)
You can use a table-valued function (TVF) in a SELECT, so if the logic can be moved from the procedure to a TVF that might work. You can't call...
January 12, 2010 at 4:43 pm
Clickable version of that link:
Deprecated Database Engine Features in SQL Server 2008
GOTO is part of the T-SQL language and probably always will be. It can be quite useful, and...
January 12, 2010 at 4:37 pm
Solomon Rutzky (1/12/2010)
Paul, thanks for the great compliment as well as the code and explanation of it. I think it will be very helpful to many people.
You're most welcome...
January 12, 2010 at 4:29 pm
jcrawf02 (1/12/2010)
I know it's something others have said, I just think this is particularly well said, and wanted to share:http://prodlife.wordpress.com/2009/10/13/most-important-thing-ive-learned-at-oow09/#comments
Very good. I'm reminded of another characteristic of an 'expert'...
January 12, 2010 at 4:27 pm
BH-428850 (1/12/2010)
It looks like I’ll have to chalk this one up as not being possible within a view.
...and not possible with a T-SQL table-valued function either, since dynamic...
January 12, 2010 at 4:24 pm
Ok Barry here we go. I've tried to cover everything so it's readable for the wider audience - so apologies for the amount of detail:
1. SQL Server expects...
January 12, 2010 at 4:06 pm
Yes it seems you would need some fairly hairy dynamic SQL to produce a CREATE VIEW statement. You would need to decide on some scheme to rename columns whose...
January 12, 2010 at 3:33 pm
RBarryYoung (1/12/2010)
For obviously selfish reasons I am very interested in implementing it in VB.net, and...
January 12, 2010 at 10:37 am
I usually use client_net_address as Lowell says.
Doesn't work so well for clients connecting over Named Pipes of course :laugh:
January 12, 2010 at 10:32 am
I was rather assuming that the data is all string representations of a GUID. If so, I would be amazed if a double convert wasn't the absolute fastest way:
DECLARE...
January 12, 2010 at 10:29 am
Can't think of a way, no.
I'll come back to this is the morning, but my initial reaction is that it can't be done.
January 12, 2010 at 10:25 am
If the column is one of the string types, all you need is CONVERT(UNIQUEIDENTIFIER, column_name).
That will remove the braces. CONVERT once more back to CHAR or whatever if you...
January 12, 2010 at 10:04 am
Paul Randal (1/12/2010)
Yes, that's what I said two replies further up in the thread...
So you did :laugh:
I read that post more than once and missed that part every time! ...
January 12, 2010 at 9:59 am
Viewing 15 posts - 6,361 through 6,375 (of 8,416 total)