Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello All
I am reading data from a SQL Server table using ADO and as I read the recordset I place each recordset field into a Excel cell. But sometimes when I read a field in the SQL Server which is of type nvarchar the data in the SQL table is as follows: 000003710 000003720 but in Excel this is displayed by my ADO read program with the leading zeros chopped as follows: 3710 3720 how can I set the Excel cell format programmatically based on the data type of the SQL table field please advise. Thanks Belinda |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel file change to 'read-only' when copied to another server | Excel Discussion (Misc queries) | |||
Retrieving data from database (MS Sql Server) to Excel | Excel Discussion (Misc queries) | |||
SQL Server UPDATE Database from Excel Table | Links and Linking in Excel | |||
Excel Connecting to SQL Server Database - Need your Help | Excel Programming | |||
Read Image From SQL Server n Export to Excel | Excel Programming |