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

Database

 
AnswerRe: Struggling with using xp_cmdshell in stored procedure Pin
Parwej Ahamad11-Dec-08 5:14
professionalParwej Ahamad11-Dec-08 5:14 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
dan!sh 11-Dec-08 5:16
professional dan!sh 11-Dec-08 5:16 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
Parwej Ahamad11-Dec-08 5:24
professionalParwej Ahamad11-Dec-08 5:24 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
Parwej Ahamad11-Dec-08 5:38
professionalParwej Ahamad11-Dec-08 5:38 
AnswerRe: Struggling with using xp_cmdshell in stored procedure Pin
Wendelius11-Dec-08 5:25
mentorWendelius11-Dec-08 5:25 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
dan!sh 11-Dec-08 5:27
professional dan!sh 11-Dec-08 5:27 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
Wendelius11-Dec-08 5:29
mentorWendelius11-Dec-08 5:29 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
dan!sh 11-Dec-08 5:41
professional dan!sh 11-Dec-08 5:41 
Thanks Mika. I have sort of progressed. Now this is what I have done:

exec master..xp_cmdshell 'bcp "select * from cab.useraudit" queryout "c:\test.xls" -S "MACHINE\SQLEXPRESS" -U "uid" -P "pwd"'


Now I am getting this error:
Error = [Microsoft][SQL Native Client][SQL Server]Login failed for user 'Machine\Danish'. 
The user is not associated with a trusted SQL Server connection.

How to deal with this?

Please bear. This is the first time I am writing a decent stored procedure.

C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void


"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live." - Martin Golding

GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
Parwej Ahamad11-Dec-08 5:43
professionalParwej Ahamad11-Dec-08 5:43 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
dan!sh 11-Dec-08 5:45
professional dan!sh 11-Dec-08 5:45 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
Wendelius11-Dec-08 5:45
mentorWendelius11-Dec-08 5:45 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
dan!sh 11-Dec-08 5:47
professional dan!sh 11-Dec-08 5:47 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
Wendelius11-Dec-08 6:05
mentorWendelius11-Dec-08 6:05 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
dan!sh 11-Dec-08 6:23
professional dan!sh 11-Dec-08 6:23 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
Wendelius11-Dec-08 7:17
mentorWendelius11-Dec-08 7:17 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
dan!sh 11-Dec-08 7:59
professional dan!sh 11-Dec-08 7:59 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
Wendelius11-Dec-08 8:03
mentorWendelius11-Dec-08 8:03 
GeneralRe: Struggling with using xp_cmdshell in stored procedure Pin
dan!sh 11-Dec-08 8:05
professional dan!sh 11-Dec-08 8:05 
QuestionNumber of open connections Pin
blackjack215011-Dec-08 3:13
blackjack215011-Dec-08 3:13 
AnswerRe: Number of open connections Pin
Wendelius11-Dec-08 4:11
mentorWendelius11-Dec-08 4:11 
Questionsql reporting services Pin
member2711-Dec-08 2:28
member2711-Dec-08 2:28 
AnswerRe: sql reporting services Pin
Wendelius11-Dec-08 4:13
mentorWendelius11-Dec-08 4:13 
GeneralRe: sql reporting services Pin
member2714-Dec-08 19:12
member2714-Dec-08 19:12 
GeneralRe: sql reporting services Pin
Wendelius15-Dec-08 5:45
mentorWendelius15-Dec-08 5:45 
QuestionShould I store flash advertisements in DB? Pin
Mohammad A Gdeisat11-Dec-08 0:29
Mohammad A Gdeisat11-Dec-08 0:29 

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.