Viewing 15 posts - 58,186 through 58,200 (of 59,048 total)
Try this from Query Analyzer...
EXEC Master.dbo.xp_DirTree 'C:\',0,1
Then, read up on the dangers of using undocumented features. Also keep in mind that Microsoft can also change or eliminate API's just as...
May 23, 2006 at 10:05 pm
SQLBill,
I'm amazed at how many folks don't know about the STUFF function... you beat me to it...
May 23, 2006 at 9:14 pm
| That's why instant messaging works great. It's like a conversation between two people. |
I just can't bring myself...
May 23, 2006 at 9:00 pm
Hi Mike,
Thanks for the feedback.... using the data in my test table, the function you built runs out of gas on the small numbers no matter how many decimal places...
May 23, 2006 at 8:21 pm
Khanh,
If you came up with a solution different than any of those posted, would you share it with us? Thanks...
May 23, 2006 at 8:12 pm
The easy way to figure this out (find the problem) is to just type out the SELECT as you normally would...
Then, everywhere you see a single quote, add another single quote...
May 22, 2006 at 9:13 pm
Nope... not a problem... I knew it wasn't personal... you're right about the daily date questions and the "mistrakes" folks make doing things on a global basis. Shoot, I still have guys...
May 22, 2006 at 6:04 pm
Careful... won't get down into the decimal places...
TestValue
---------------------------------------- ----------------------------------------
1245600085.0000000000000000000 1246000000.00000000
124560008.5000000000000000000 124600000.00000000
12456000.8500000000000000000 12460000.00000000
1245600.0850000000000000000 1246000.00000000
124560.0085000000000000000 124600.00000000
12456.0008500000000000000 12460.00000000
1245.6000850000000000000 1246.00000000
124.5600085000000000000 124.60000000
12.4560008500000000000 12.46000000
1.2456000850000000000 1.24600000
(11 row(s) affected)
Server: Msg 8134, Level 16, State 1, Line...
May 22, 2006 at 5:57 pm
You bet... and to confirm, yes, CHAR(9) is the tab character. You might be able to simplify things if you used the tabl character as a delimiter in the import...
May 22, 2006 at 5:50 pm
Yep... that too. For the record, there is no TRIM function in SQL Server 7 or 2000... just LTRIM and RTRIM. Dunno about 2005.
May 22, 2006 at 6:56 am
Nicely done. Obviously, we can't get away from a looping structure but this eliminates the cursor that so many dislike and has a couple of tricks in it that you...
May 22, 2006 at 6:42 am
Yep, you're right on the setting of the variable... but hopefully every one realizes that was just to demo. The rest shouldn't be a problem as I used fixed formats...
May 22, 2006 at 4:30 am
I like "simple" when I can get away with it
... here's my take on the date part thingy...
--===== Create a...
May 20, 2006 at 2:50 pm
By using some "JBM PFM"... this is actually a programable converter in that you can program the number of significant digits just by changing the contents of a single variable......
May 20, 2006 at 1:47 pm
You can find out if they are spaces or characters that look like spaces (assuming that all the rows for a given column have leading spaces)...
SELECT ACSII(LEFT(columnname,1))
FROM yourtable
If the come...
May 20, 2006 at 11:13 am
Viewing 15 posts - 58,186 through 58,200 (of 59,048 total)