Viewing 15 posts - 58,786 through 58,800 (of 59,039 total)
Using a combination of VARCHAR(8000) as previously mentioned and multiple variables, you can build stored procedures to the max of 250 MB (for "Bytes in source text of a stored...
March 22, 2005 at 9:47 pm
Or, you could try ParseName and Replace like this... Like NoelD suggested, TinyInt comes into play... The Str and Convert functions are to zero fill the octects.
DECLARE @MyTCPIP...
March 17, 2005 at 9:27 pm
I mentioned indexes (rather, the lack of) in my last reply to Scott.
March 17, 2005 at 8:23 pm
Checkout the ParseName function... it was designed to parse octets in addresses and name in 4 part named database objects. Could help you to shorten your function a bit...
March 16, 2005 at 8:18 pm
You're welcome.... just in case you didn't know... Books-on-Line is free and comes with SQL Server... it's the name of the rather voluminous on-line help that comes with SQL Server.
March 16, 2005 at 8:01 pm
Scott,
No offense was meant and I agree except that I've seen the optimizer give the non-Case method the win 2 out of 3 times when testing with and without proper indexes...
March 16, 2005 at 7:13 pm
The CASE statement is very useful, indeed, although I don't think it will increase the performance in this particular case.
March 16, 2005 at 12:35 am
"Book-on-Line" is a great resource, once you learn how to use it and actually take the time to read it. And, I've found that some of the authors that write...
March 13, 2005 at 1:49 pm
Eheraux,
Your original problem stated:
I have an "OpeningDate" field in a table that's set up as a varchar, but the data it contains is all dates (3rd party app. I didn't...
March 10, 2005 at 9:09 pm
I believe the time difference is -8 hours so try this...
DATEADD(hh,-8,yourUTCdatetime)
March 10, 2005 at 12:57 am
Very nice alzdba! It's exactly what I needed. Thanks for coming through on such short notice... I was really in a crunch and you've just made it possible for me...
March 9, 2005 at 6:48 am
Here's a straight forward way that probably won't use available indexes...
SELECT yada-yada
FROM yourtable
WHERE datediff(mi,0,datecolumn)= datediff(mi,0,datetimelookingfor)
Here's a less straight forward way that will use available indexes...
SELECT...
March 9, 2005 at 6:44 am
David,
As promised, here's the actual BCP format file and the call to BCP to use it (from a command window). This has been working correctly for almost a year. Of...
March 9, 2005 at 6:15 am
I'll find the production code and see if I did anything different... sorry for the confusion.
March 8, 2005 at 11:40 am
Hi David,
The example I gave was modified to be generic from production code that I currently have working in the same fashion offered. Dunno what to say about the notation...
March 8, 2005 at 4:05 am
Viewing 15 posts - 58,786 through 58,800 (of 59,039 total)