all groups > sql server programming > august 2007 >
You're in the

sql server programming

group:

openrowset's annoying scientific notation?


openrowset's annoying scientific notation? Matt
8/9/2007 11:44:00 PM
sql server programming: I am using openrowset to load Excel file. Some column has a very big number
as Identify code.
I've use IMEX=1 in the connection string. However, it still convert the big
ID number to scientific notation and the lower digit number missed.

Anyway to avoid it?

RE: openrowset's annoying scientific notation? Matt
8/9/2007 11:52:02 PM
BTW, I forgot to mention that it only happens when I am trying to insert the
column in another table column with type varchar(255)

insert into (aVarchar255Column)
select BigNumberID
from openrowset(....)

[quoted text, click to view]
Re: openrowset's annoying scientific notation? Terri
8/10/2007 12:18:04 PM
I use this process which may help.

-Build an Excel template file and format the template accordingly
-Copy the template to a new file
-Use openrowset to insert data into new file

The formatting issue is on the Excel side so you will need to format the
destination file accordingly.

HTH

[quoted text, click to view]

AddThis Social Bookmark Button