Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[ freetds-Patches-1106465 ] quote column names for bcp: msg#00135

db.tds.freetds

Subject: [ freetds-Patches-1106465 ] quote column names for bcp

Patches item #1106465, was opened at 2005-01-20 22:45
Message generated for change (Comment added) made by prensing
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=1106465&group_id=33106

Category: db-lib
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Paul Rensing (prensing)
Assigned to: Nobody/Anonymous (nobody)
Summary: quote column names for bcp

Initial Comment:
With TDS version 7.0 and higher, bcp fetches the table
column names and then sends them back to the DB when
setting up the bcp transfer (in the "INSERT BULK"
statement). The problem occurs if you have spaces in
your column names; the column names are not quoted in
any way and the server gets confused.

Turns out (at least on MS SQLserver) that the way to
quote the column names is to use square brackets ("[",
"]"), not quotes. The patch modifies bcp.c to always
quote column names.

I have tested this against our MS SQLServer 2000. I
don't have any other system to test.

----------------------------------------------------------------------

>Comment By: Paul Rensing (prensing)
Date: 2005-01-20 22:47

Message:
Logged In: YES
user_id=32595

Sorry. Forgot to say: the patch was against version 0.62.4.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=1106465&group_id=33106


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe