Viewing 15 posts - 586 through 600 (of 1,554 total)
If it's ##temptable it won't go out of scope, but the example said #temptable, then it will.
One letter can make all the difference
/Kenneth
March 9, 2006 at 8:12 am
Something weird happened with last post, so I repost:
Jeff,
it works fine up to the part when 'double barreled' names comes up.
select '''Smith Johnsson'' John Mr'
select '''Smythe Johnsson'' John'
We...
March 9, 2006 at 7:56 am
You have to create the temptable in the outer proc (A)
then you can call proc, have it insert into the temptable, return, and then you select from it again in...
March 9, 2006 at 5:55 am
Well, can't really see that there would be any difference from the optimizer's point of view, since it deals primarily with finding the data, not how to display what it...
March 9, 2006 at 2:38 am
Try both and compare the plans.
My guess is that there is no measurable difference.
/Kenneth
March 9, 2006 at 2:01 am
You're not allowed to do DML (like the insert) inside scalar functions.
/Kenneth
March 9, 2006 at 1:58 am
Assuming that the column holding your dates is a datetime datatype, you can convert it to a string and use a style parameter.
SELECT CONVERT(CHAR(8), myDateColumn, 112) FROM ....
..will probably do...
March 8, 2006 at 8:52 am
Well, it's not a black or white issue, bcp has it's good apsects, as does bulk insert - they are two ways of quickly loading files. Which to use is...
March 8, 2006 at 8:29 am
Could you post your bcp commandline?
If you're running locally, try to leave out the -S server parameter. (if you've not done so already)
In the 'old days' this was a trick...
March 7, 2006 at 8:26 am
SELECT col1 AS 'A', col1 AS 'B'
FROM myTable
The clientside will refer to the columns as 'A' and 'B'.
/Kenneth
March 6, 2006 at 9:09 am
Codepage 862 seems to be Hebrew (DOS).
Is this what the file contains?
Perhaps you need to install support for Hebrew in order to load the file successfully..?
/Kenneth
March 6, 2006 at 9:06 am
Try this experiment.
Switch the servername for the actual IP address of the server in the bcp commandline.
If time improves, you're probably having a nameresolution issue.
/Kenneth
March 6, 2006 at 8:59 am
Talk to the mailserver guys and ask them to make what need be so your server will be able to send mails through that server. (I assume it's like setting...
March 6, 2006 at 2:39 am
Could be a DNS resolution problem for you Vladan.
I use a fully qualified FQDN 'server.abc.def.se', and it works with no problems.
Though I must confess I don't quite know what the...
March 3, 2006 at 7:50 am
Ah, you're correct. It doesn't support a @query parameter like xp_sendmail does. However.....
if the result of the query is placed in a file on disk, you could then attach it...
February 28, 2006 at 1:08 am
Viewing 15 posts - 586 through 600 (of 1,554 total)