Viewing 15 posts - 13,411 through 13,425 (of 13,876 total)
Have you run the stored proc with the debugger? It might shed some light on things.
Regards
August 10, 2005 at 8:18 am
Or this
declare @m as money
set @m = 200.2365
select round(@m,2,1)
It does the rounding that you want, but leaves the 4 dps.
August 10, 2005 at 8:13 am
This link might be relevant:
http://support.microsoft.com/default.aspx?scid=kb;en-us;275847&sd=tech
August 10, 2005 at 5:59 am
I think that table variables might give you what you need - they can be passed as parameters to/from stored procedures - try reading the on-line help and see how...
August 10, 2005 at 4:35 am
What do you mean by 'linked table'? Are you talking about a table residing in a linked server? Or perhaps you're using Access and have linked to a SQL Server...
August 10, 2005 at 4:12 am
I still think that the error is happening before processing gets to the
Set Excel_WorkBook = Excel_Application.Workbooks.Open(sFilename)
line. To prove it one way or the other, try changing sFilename to...
August 9, 2005 at 9:04 am
Why do the CONVERT when the ROUND works without it?
August 9, 2005 at 8:01 am
No problem. The other thing you should consider doing is creating a lookup table:
DayNo (int, PK), Day (varchar(10))
and then populating it as follows:
1 Monday
2 Tuesday
........
7 Sunday
Then you can just do...
August 9, 2005 at 5:07 am
This can be achieved in many fewer lines, try this:
declare @days char(100), @classday varchar(10), @dayno int
set @days = ' Monday Tuesday Wednesday Thursday Friday Saturday Sunday'
set @classday = 'Sunday'
set @dayno...
August 9, 2005 at 4:25 am
Sorry if this is obvious, but is Excel installed on the SQL Server server itself (if you know what I mean)?
Your error is happening at the CreateObject line, before the...
August 8, 2005 at 4:35 pm
But I've just eaten 3 pieces of fried chicken & need to remove the grease somehow - not on my screen either ![]()
August 8, 2005 at 11:13 am
A fixed-length file has ALL records the same length! Yours does not, so it is not.
If you've got less than 65,535 rows you can do it in Excel in 1...
August 8, 2005 at 11:11 am
Viewing 15 posts - 13,411 through 13,425 (of 13,876 total)