Viewing 15 posts - 56,416 through 56,430 (of 59,072 total)
Heh... I thought you said "without looping".
May 17, 2007 at 5:17 am
Nicely done... If I may suggest, however, a method that avoids both loops and dynamic SQL...
--===== If the test table exists, drop it
IF OBJECT_ID('TempDB..#HexToAlpha','U') IS NOT...
May 17, 2007 at 12:49 am
He doesn't get it as a hex/binary number... he get's it as a string.
May 17, 2007 at 12:17 am
Nicely done, Brian. And, Jan, I agree... we've asked you to post the cursor code a couple of times now...
May 16, 2007 at 11:21 pm
There is a "good" reason
... they're probably not allowed to put their own stored procedures in and it must pass a DBA review......
May 16, 2007 at 11:02 pm
Here's an example... you can't do unlimited hierarchies, but it's normally good enough. And, it's not your specific example... it for something I did for someone else... thought it might...
May 16, 2007 at 10:54 pm
Unlike DTS, Query Analyzer, and BCP, OSQL was NOT designed to scan the data and size the output accordingly. Since you don't want headers, BCP is the best bet. DO...
May 16, 2007 at 10:44 pm
Unless you need absolutely awesome performance on a huge table, this'll do nicely with pretty good performance...
SELECT i.IntName,r.RegName,r.RegInterests
FROM Registrations r,
Interests i
WHERE ','+r.RegInterests+',' LIKE '%,'+CAST(i.fk_Interests AS...
May 16, 2007 at 10:15 pm
That's just not the way we do things here... lot's of folks busted a hump trying to help and now you're not going to take the time to explain what...
May 16, 2007 at 10:00 pm
No need for even a single CAST or CASE...
SELECT (
SELECT COUNT(*) * 100.0
FROM @ProviderLink
WHERE PLtat + PLunworkable > 75
)
/ (COUNT(*)) AS Percentage
...
May 16, 2007 at 9:56 pm
Thanks folks... great feedback and I appreciate it very much.
Ben, I've not found much on Triangular joins but I did write an explanation for someone else on this forum. Please...
May 16, 2007 at 9:20 pm
You can go a bit further... the following will return the number of spaces found for each row for that column...
SELECT pkcolumnname, LEN(yourcolumn) - LEN(REPLACE(yourcolumn,' ','')) AS Spaces
...
May 16, 2007 at 9:15 pm
How is it that a casual user has been allowed access to backups? That, in itself, would be a violation on PCI audits...
May 16, 2007 at 9:09 pm
The problem may be with any SQL DMO or sp_OA* code you may have... if you forget to close and drop connections, you may end up with a "connection leak".
May 16, 2007 at 9:00 pm
Viewing 15 posts - 56,416 through 56,430 (of 59,072 total)