Solved

SQL Extract a record to a text file

Posted on 2011-03-02
2
309 Views
Last Modified: 2012-06-27
I need to extract a record from DEV to a text file and then import the record into QA.  I do not have permission to run xp_cmdshell and I do not have permission to link the database to the QA server.

If I copy and past the fields I lose the special characters in them so I need to export and then import.

Any ideas?
0
Comment
Question by:CipherIS
2 Comments
 
LVL 33

Accepted Solution

by:
knightEknight earned 500 total points
ID: 35021448
If the table isn't too big, you can simply do

  select * from mytable

in Management Studio, then right-click on the results and choose Save Results As ...
0
 
LVL 26

Expert Comment

by:tigin44
ID: 35021483
you can use the sql server import export wizard
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question