Viewing 15 posts - 16 through 30 (of 58 total)
Although I still don't know why you can't do the above code, the quick fix is to set the sql code to a variable and execute the variable:
i.e.
set @sql =...
July 11, 2003 at 10:59 am
Thanks! I used a variation on your first idea that does work b/c it eliminates the aggregate. It probably wouldn't be a great solution if I had more than 4...
May 2, 2003 at 12:05 pm
Can't have an aggregate in an update statement. I'm trying to think if a self join with the inner join would work but I'm not getting it yet.
Suggestions? Thanks!
May 2, 2003 at 10:28 am
I use
/t ","
I just tried :
-t ","
-t","
/t","
\t","
and none of those seemed to do it. It keeps saying 'incorrect syntax near queryout'. My entire statement is:
set @sql = 'bcp "select...
December 9, 2002 at 12:21 pm
I will. I thought \t was the default statement for tab delimited though?
December 9, 2002 at 10:40 am
Thank you very much - that was exactly what I was needing to know! It appears to have worked - at least my database is responding again.
Can you tell me...
November 20, 2002 at 4:11 pm
Is that option possibly only for version 7.0? I didn't see it as an option in 2000, but I could be wrong.
I created a database maintenance plan to backup the...
November 20, 2002 at 3:44 pm
I'm using Sql Server 2000
Cannot shrink log file 2 (ADPS_Log) because all logical log files are in use.
Thanks!
November 20, 2002 at 3:38 pm
Does anybody have any new information about this issue? I am experiencing it - and my network guys claim nothing has changed regarding our domain controller - and my server...
October 21, 2002 at 3:16 pm
I am referencing an actual file that has quotes in the filename - if I take the quotes out of the variable holding the filename - it won't match the...
September 26, 2002 at 3:23 pm
Problem with quotes in the Bulk Insert - normally I use what you suggested
BULK INSERT temp FROM ''' (plus) @file (plus) '''
But in this case - my actual filename has...
September 26, 2002 at 1:05 pm
I read the thread and tried some of their suggestions. sp_who2 does not indicate any connections to that DB, but I can't detach b/c it says it is in the...
July 18, 2002 at 8:10 am
The answer turns out to be...a service pack/hotfix for sql server 2000. This adds a new parameter called @ansi_attachment that can be set to true. This ensures attachments aren't sent...
June 25, 2002 at 10:05 am
The answer turns out to be...a service pack/hotfix for sql server 2000. This adds a new parameter called @ansi_attachment that can be set to true. This ensures attachments aren't sent...
June 25, 2002 at 10:05 am
Viewing 15 posts - 16 through 30 (of 58 total)