dbTalk Databases Forums  

BCP connect error via shared memory to local instance

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss BCP connect error via shared memory to local instance in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
TBQ
 
Posts: n/a

Default BCP connect error via shared memory to local instance - 04-13-2009 , 03:11 PM






I have three SQL server instances on my local box:

(local) = SQL Server 2000
(local)\SQL2005 = Developer Edition SQL Server 2005
(local)\SQLExpress = SQL Server 2005 Express Edition

ONLY shared memory is enabled.

I am trying to write some BCP scripts against my (local)\SQL2005 instance,
but cannot get it to work. Is there an issue with BCP using shared memory to
a SQL Server 2005 local instance?

** Works (against SQL Server 2000 (local):
bcp "myDB.dbo.myTable" out C:\test.txt -c -SmyPC -T
bcp "myDB.dbo.myTable" out C:\test.txt -c -S(local) -T


** fails (against SQL Server 2005 (local)\SQL2005:
bcp "myDB.dbo.myTable" out C:\test.txt -c -SmyPC\SQL2005 -T

** Error message:
SQLState = 08001, NativeError = 14
Error = [Microsoft][ODBC SQL Server Driver][DBMSLPCN]Invalid connection.
SQLState = 01000, NativeError = 14
Warning = [Microsoft][ODBC SQL Server Driver][DBMSLPCN]ConnectionOpen
(ParseConnectParams()).

I have tried a number of variations in server name specification (computer
name, (local), ., enclosed in "" and [], but to no avail).

I am running (on XP SP2)
Microsoft SQL Server 2000 - 8.00.2055 (Intel X86)
Microsoft SQL Server 2005 - 9.00.3077.00 (Intel X86)

respectively.

Any help will be greatly appreciated.

Tore.


Reply With Quote
  #2  
Old   
TBQ
 
Posts: n/a

Default RE: BCP connect error via shared memory to local instance - 04-13-2009 , 03:47 PM






Duh - I had to specify the path to the SQL Server 2005 version of BCP...

"TBQ" wrote:

Quote:
I have three SQL server instances on my local box:

(local) = SQL Server 2000
(local)\SQL2005 = Developer Edition SQL Server 2005
(local)\SQLExpress = SQL Server 2005 Express Edition

ONLY shared memory is enabled.

I am trying to write some BCP scripts against my (local)\SQL2005 instance,
but cannot get it to work. Is there an issue with BCP using shared memory to
a SQL Server 2005 local instance?

** Works (against SQL Server 2000 (local):
bcp "myDB.dbo.myTable" out C:\test.txt -c -SmyPC -T
bcp "myDB.dbo.myTable" out C:\test.txt -c -S(local) -T


** fails (against SQL Server 2005 (local)\SQL2005:
bcp "myDB.dbo.myTable" out C:\test.txt -c -SmyPC\SQL2005 -T

** Error message:
SQLState = 08001, NativeError = 14
Error = [Microsoft][ODBC SQL Server Driver][DBMSLPCN]Invalid connection.
SQLState = 01000, NativeError = 14
Warning = [Microsoft][ODBC SQL Server Driver][DBMSLPCN]ConnectionOpen
(ParseConnectParams()).

I have tried a number of variations in server name specification (computer
name, (local), ., enclosed in "" and [], but to no avail).

I am running (on XP SP2)
Microsoft SQL Server 2000 - 8.00.2055 (Intel X86)
Microsoft SQL Server 2005 - 9.00.3077.00 (Intel X86)

respectively.

Any help will be greatly appreciated.

Tore.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.