Viewing 15 posts - 2,701 through 2,715 (of 3,543 total)
In your case, I would do it in the app. SQL has no parsing ability, only string slicing. To get SQL to do you would have to write udf or...
April 14, 2004 at 8:23 am
Can the app split each line and then insert the 10 columns. How is the app inserting the data?
April 14, 2004 at 8:05 am
If you use a GROUP BY clause then any column not part of an aggregate statement needs to be specified in the GROUP BY as per the error message. Either...
April 14, 2004 at 8:02 am
If you have SQL2K then you write a udf to extract the data, I believe there are examples on this site, try a search. There may be other solutions too.
If...
April 14, 2004 at 7:42 am
I have never heard of Solid, but...
Since you have the ODBC driver and DSN setup then use DTS to transfer the data, it will be the most efficient. You can create...
April 14, 2004 at 7:20 am
Firstly, whatever works.
However using money or smallmoney your output will always be to 4 decimal places, that is the nature of the data type.
Personally I would use numeric (aka decimal)...
April 14, 2004 at 7:13 am
I rewrote the query like this
SELECT department,
[Date],
SUM(CASE [Product] WHEN 'E-Tech' THEN [output] else 0 END) as 'E-TECH',
SUM(CASE [Product] WHEN 'E-9' THEN THEN [output] else 0...
April 14, 2004 at 6:52 am
Why not create a single proc and pass isClosed as a parameter, it is what is recommended in BOL and sql will likely cache both procs with a single plan...
April 14, 2004 at 6:11 am
If you are mapping a local account then you must login with sql security using the mapped local account specified, for the link to work otherwise you will get the error message.
If...
April 14, 2004 at 5:52 am
![]() | what's wrong with you? ASKING a question, instead of answering? |
Thanks Frank ...
April 14, 2004 at 4:09 am
Just because 71.8% got it right does not make the question too easy. Would this mean if 71.8% got it wrong then the question was too hard?
The question seemed OK...
April 13, 2004 at 2:22 am
You have put a single quote around the command, change the 3 single quotes at the beginning and end of the line like this
SET @MyCmd = 'bcp "SELECT * from...
April 8, 2004 at 9:15 am
Viewing 15 posts - 2,701 through 2,715 (of 3,543 total)