Solved

SQL Extract a record to a text file

Posted on 2011-03-02
2
307 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
Comment Utility
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
Comment Utility
you can use the sql server import export wizard
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now