Click here to Skip to main content
15,893,487 members
Home / Discussions / Database
   

Database

 
QuestionHelp me with the query strings. Pin
shashi_code4-Sep-08 4:29
shashi_code4-Sep-08 4:29 
AnswerRe: Help me with the query strings. [modified] Pin
Blue_Boy4-Sep-08 5:21
Blue_Boy4-Sep-08 5:21 
GeneralRe: Help me with the query strings. Pin
Meenal Ronghe12-Sep-10 23:34
Meenal Ronghe12-Sep-10 23:34 
GeneralRe: Help me with the query strings. Pin
nelsonpaixao4-Sep-08 13:57
nelsonpaixao4-Sep-08 13:57 
AnswerRe: Help me with the query strings. Pin
ahsan sarfraz8-Sep-08 4:45
ahsan sarfraz8-Sep-08 4:45 
QuestionInserting data from an XML string in a table Pin
ONeil Tomlinson4-Sep-08 1:37
ONeil Tomlinson4-Sep-08 1:37 
AnswerRe: Inserting data from an XML string in a table Pin
Wendelius4-Sep-08 8:29
mentorWendelius4-Sep-08 8:29 
QuestionBcp error Pin
si_694-Sep-08 0:29
si_694-Sep-08 0:29 
Hi All

We have just upgaded our old sql server from 2000 to a 2005 cluster server

I am now having problems running some bcp commands

The command i am running is

exec master..xp_cmdshell 'bcp "select fileoutput from [new_db]..[Invoice_Table] order by roworder" queryout c:\invoice\template\customer.html -c -o c:\invoice\template\bcpOutput.txt'

the error i am getting is

User name not provided, either use -U to provide the user name or use -T for Trusted Connection



i have tried to add in -U and -P but then get the below

SQLState = 08001, NativeError = 2
Error = [Microsoft][SQL Native Client]Named Pipes Provider: Could not open a connection to SQL Server [2].
SQLState = HYT00, NativeError = 0
Error = [Microsoft][SQL Native Client]Login timeout expired
SQLState = 08001, NativeError = 2
Error = [Microsoft][SQL Native Client]An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.

i have also tried adding in

exec master..xp_cmdshell 'bcp "select fileoutput from [new_db]..[Invoice_Table] order by roworder" queryout c:\invoice\template\customer.html -c -o -STCSQL1\sqlcluster c:\invoice\template\bcpOutput.txt'

but i get the same error saying it could not open a connection to SQL server


Can anyone help at all ?
AnswerRe: Bcp error Pin
Wendelius4-Sep-08 8:26
mentorWendelius4-Sep-08 8:26 
QuestionReg: Handling Text Column in Trigger implementation Pin
Member 40084923-Sep-08 23:38
Member 40084923-Sep-08 23:38 
AnswerRe: Reg: Handling Text Column in Trigger implementation Pin
Wendelius4-Sep-08 8:17
mentorWendelius4-Sep-08 8:17 
QuestionUnion query.. I guess:) Pin
Muammar©3-Sep-08 9:19
Muammar©3-Sep-08 9:19 
AnswerRe: Union query.. I guess:) Pin
TheFM2343-Sep-08 9:32
TheFM2343-Sep-08 9:32 
GeneralRe: Union query.. I guess:) Pin
Muammar©3-Sep-08 9:51
Muammar©3-Sep-08 9:51 
GeneralRe: Union query.. I guess:) Pin
Muammar©3-Sep-08 10:33
Muammar©3-Sep-08 10:33 
AnswerRe: Union query.. I guess:) Pin
Wendelius3-Sep-08 9:35
mentorWendelius3-Sep-08 9:35 
GeneralRe: Union query.. I guess:) Pin
Muammar©3-Sep-08 9:56
Muammar©3-Sep-08 9:56 
GeneralRe: Union query.. I guess:) Pin
Wendelius3-Sep-08 10:01
mentorWendelius3-Sep-08 10:01 
QuestionProblems with connecting with ODBC source Pin
Deques3-Sep-08 8:00
Deques3-Sep-08 8:00 
AnswerRe: Problems with connecting with ODBC source Pin
Wendelius3-Sep-08 11:11
mentorWendelius3-Sep-08 11:11 
GeneralRe: Problems with connecting with ODBC source Pin
Deques3-Sep-08 20:56
Deques3-Sep-08 20:56 
GeneralRe: Problems with connecting with ODBC source Pin
Wendelius4-Sep-08 8:56
mentorWendelius4-Sep-08 8:56 
Question[Message Deleted] Pin
TheMandolinMan3-Sep-08 7:58
TheMandolinMan3-Sep-08 7:58 
AnswerRe: Using Parameterized queries in OLEDB Pin
Wendelius3-Sep-08 8:21
mentorWendelius3-Sep-08 8:21 
GeneralRe: Using Parameterized queries in OLEDB Pin
Muammar©3-Sep-08 10:40
Muammar©3-Sep-08 10:40 

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.