• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

SQL Extract a record to a text file

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
CipherIS
Asked:
CipherIS
1 Solution
 
knightEknightCommented:
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
 
tigin44Commented:
you can use the sql server import export wizard
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now