Click here to Skip to main content
15,891,033 members
Home / Discussions / Database
   

Database

 
QuestionSQL Server Connection Failure Pin
εїзεїзεїз21-May-11 22:47
εїзεїзεїз21-May-11 22:47 
AnswerRe: SQL Server Connection Failure Pin
GenJerDan22-May-11 4:13
GenJerDan22-May-11 4:13 
QuestionGroup By All Columns except the image field Pin
Vimalsoft(Pty) Ltd21-May-11 9:00
professionalVimalsoft(Pty) Ltd21-May-11 9:00 
AnswerRe: Group By All Columns except the image field Pin
Vimalsoft(Pty) Ltd21-May-11 9:44
professionalVimalsoft(Pty) Ltd21-May-11 9:44 
GeneralRe: Group By All Columns except the image field Pin
Shameel25-May-11 8:20
professionalShameel25-May-11 8:20 
QuestionDataset folder Pin
paper6721-May-11 5:59
paper6721-May-11 5:59 
AnswerRe: Dataset folder Pin
Eddy Vluggen23-May-11 0:25
professionalEddy Vluggen23-May-11 0:25 
QuestionOpenRowSet - Sql server Pin
Hum Dum20-May-11 19:58
Hum Dum20-May-11 19:58 
I am using Openrowset function of sql server to read data from excel files.
SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','Excel 8.0;Database=E:\IGM\Files\cis overview.xls;HDR=No;IMEX=1;','SELECT * FROM [CIS Overview$]')


But all columns are not showed by openrowset.
below is just sample, the excel file which i am reading having 28 columns, and 27 having no data in it, just heading, and 28 is ignored by Openrowset.

col1 col2 col3
--------------
 A         X
 B         X
 C         X
 .         .
 .         .


Openrowset is not returning col3 in resultset?

Its only showing col1, col2.
But if i insert some data in col2(any cell),
result set will have all three columns.

It is ignoring last column if previous has no data?
i also include HDR=NO option in query, but no luck?

Is their any way to get all columns in result set?

any help?

regards,
AnswerRe: OpenRowSet - Sql server Pin
Shameel25-May-11 8:14
professionalShameel25-May-11 8:14 
QuestionSQL Mystery Pin
Super Lloyd20-May-11 4:46
Super Lloyd20-May-11 4:46 
AnswerRe: SQL Mystery Pin
Chris Meech20-May-11 7:48
Chris Meech20-May-11 7:48 
QuestionSQL Stored Procedure Question??? Pin
Toniyo Jackson19-May-11 21:47
Toniyo Jackson19-May-11 21:47 
AnswerRe: SQL Stored Procedure Question??? PinPopular
dasblinkenlight20-May-11 0:59
dasblinkenlight20-May-11 0:59 
AnswerRe: SQL Stored Procedure Question??? Pin
David Skelly20-May-11 1:50
David Skelly20-May-11 1:50 
QuestionOracle partitioned indexes... Pin
Paladin200019-May-11 2:51
Paladin200019-May-11 2:51 
AnswerRe: Oracle partitioned indexes... Pin
Paladin200019-May-11 4:11
Paladin200019-May-11 4:11 
Questionimage databasee Pin
mrjaya18-May-11 19:17
mrjaya18-May-11 19:17 
AnswerRe: image databasee Pin
Mycroft Holmes18-May-11 19:35
professionalMycroft Holmes18-May-11 19:35 
Questionstring concadination in sql query Pin
yesu prakash17-May-11 20:39
yesu prakash17-May-11 20:39 
AnswerRe: string concadination in sql query [modified] Pin
Blue_Boy17-May-11 21:02
Blue_Boy17-May-11 21:02 
AnswerRe: string concadination in sql query Pin
Pete O'Hanlon17-May-11 21:03
mvePete O'Hanlon17-May-11 21:03 
AnswerRe: string concadination in sql query Pin
Ra-one17-May-11 21:04
Ra-one17-May-11 21:04 
AnswerRe: string concadination in sql query Pin
Shameel18-May-11 0:43
professionalShameel18-May-11 0:43 
QuestionSQL Server. Insert into table whiles querying Pin
Eli Nurman16-May-11 19:05
Eli Nurman16-May-11 19:05 
AnswerRe: SQL Server. Insert into table whiles querying Pin
Gerben Jongerius16-May-11 20:05
Gerben Jongerius16-May-11 20:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.