Dear Collegues,

 

when using sqlQuery from the package RODBC I always get a data frame with 
automatically generated rownames, even if:

*  the first column of the query is called rownames using "Select ... AS 
rownames, ... From ..."

*  and: the values from this column are unique

*  and: the values are inevitably forced to character data with e.g. " 'rn_' + 
CAST(xy AS NVARCHAR) "

 

It works with sqlFetch but I would have to define a view for every query. Does 
anybody know help?

 

SQL-Server: MS SQL 2000

 

 

___________________

Markus Preisetanz

Consultant

 

Client Vela GmbH

Albert-Roßhaupter-Str. 32

81369 München

fon:          +49 (0) 89 742 17-113

fax:          +49 (0) 89 742 17-150

mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 



Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht 
gestattet.

This e-mail may contain confidential and/or privileged infor...{{dropped}}

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to