SQL Server 2012: Import and Export Wizard - Exporting Multiple Result Sets at Once?
I'm working in SQL Server 2012 trying to export some data from our database into an Excel file. My SQL statement has two separate Select statements. They are not joined by a union. When I Execute them inside of SQL Server Management Studio, with Results
set to go to a Grid, I get two result sets back. Two full tables of data.
However, when I use the Import and Export Wizard, the Excel sheet only has the first set of data.
What do I need to do to have it so both result sets show up in the excel file?
Why cant use merge them using union/union all if intention is to get them to same sheet? Is it like the metadata is different so that they cant be merged to single sheet?
If that being the case you need to do it in two steps.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page
Similar Messages
-
SQL server 2012 Import and Export Wizard missing Flat File Options
When using either the 32 or 64 bit Import & Export wizard selecting data source "flat file source" no options appear, compared to excel import , sql or another data source ? tried uninstalling etc, build a VM 2008
Server works fine options appear. Any sugguestions before I rebuild my laptop ?
Stage that the Next button is optional, (usually greyed out)
TITLE: SQL Server Import and Export Wizard
The operation could not be completed.
ADDITIONAL INFORMATION:
The server name is not specified. (DTSWizard)
BUTTONS:
OK
Microsoft.SqlServer.Management.UI.WizardFrameworkErrorSRHi mtech,
When I open Import and Export Data(64-bit), I choose “flat file source”.
Maybe you could try to reinstall it.
If you have any feedback on our support, please click
here.
Thanks.
Maggie Luo
TechNet Community Support -
Issue while importing table from oracle to sql server using import and export wizard
Hi All,
I am trying to populate oracle table to sql server using import export wizard and i am getting the below error.the table is allready present in the database but still it throwing error like table doesn't exists.
Could not connect source component.
Error 0xc0202009: Source - JOB_ACTION_HISTORY [1]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
Error 0xc02020e8: Source - JOB_ACTION_HISTORY [1]: Opening a rowset for ""FLXUSER"."JOB_ACTION_HISTORY"" failed. Check that the object exists in the database.
(SQL Server Import and Export Wizard)
Kindly help me out
Thanks in advanceHi Snehasis,
Please check whether the table name in the Oracle database has lower case letters. The table name should be exactly correct.
In addition, the issue might be related to the Oracle driver. What provider/driver do you use? If you use Microsoft OLE DB Provider for Oracle, you can try the
Oracle OLE DB Provider. If you use Enterprise or Developer edition of SSIS 2008 or higher, you can also try the
Microsoft Connectors for Oracle by Attunity. The Oracle OLE DB Provider and Microsoft Connectors for Oracle are proved to have better performance.
Regards,
Mike Yin
TechNet Community Support -
SQL Server 2012 Import-Module 'sqlps' breaks the "Test-Path" PowerShell cmdlet
I've run into something that is "very" frustrating with the new SQL Server 2012 PowerShell module. When I Import the module, it breaks the "Test-Path" cmdlet when trying to test a UNC path to a directory.
For example:
"Test-Path -path \\server\dirname" returns true as expected before the sqlps module is imported. But after you import the SQL Server module "Import-Module 'sqlps' –DisableNameChecking" the same Test-Path
now returns false.
If I run the following in Windows PowerShell ISE I see the following results:
Test-Path -path "\\server\directoryname"
Import-Module 'sqlps' –DisableNameChecking
Test-Path -path "\\server\directoryname"
True
False
Anyone have any idea what's going on?
UPDATE: after more testing, it looks like the problem happens with any cmdlet that references a UNC. The New-Item has the same problem. Before importing 'sqlps', New-Item is able to create a directory at the UNC path specified, but ater importing
'sqlps', the New-Item fails.
Thanks!Hi Mikea730,
Sqlps.exe doesn't take advantage of a couple of these nice PowerShell V2 cmdlets without doing a bit of configuring in your environment.
Please refer to the following references to make some configuration in your server
http://www.maxtblog.com/2010/11/denali-get-your-sqlpsv2-module-set-to-go/
http://www.simple-talk.com/sql/database-administration/practical-powershell-for-sql-server-developers-and-dbas-%E2%80%93-part-1/
http://sev17.com/2010/07/making-a-sqlps-module/
Thanks,
TechNet Subscriber Support
If you are
TechNet Subscription user and have any feedback on our support quality, please send your feedback
here.
Iric Wen
TechNet Community Support -
SQL Server 2012 Analysis Services Deployment Wizard broken after SP1
I have installed SQL Server 2012 SP1, now I cannot edit Data Source Connection Strings anymore in the Deployment Wizard.
When clicking the button labeled "..." I get an error "Could not load file or assembly 'Microsoft.Data.ConnectionUI, Version=8.0.0.0' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference".
This happened on two different 2008 R2 servers and local windows 7 desktop, SP1 Cumulative Update 1 does not fix the error.
Please help!I managed to fix it by modifying the Workaround from Microsoft a bit.
Microsoft Fix: https://support.microsoft.com/en-us/kb/2809127/
Summary of fix:
Open the following configuration file in a text editor, such as Notepad, as an administrator:
<var class="sbody-var" style="box-sizing:border-box;"><system drive>:</var>\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Microsoft.AnalysisServices.Deployment.exe.config
2. Insert the runtime XML tags after the </startup> tag in the configuration section:<configuration>
<startup>
<requiredRuntime version="v4.0.30319" safemode="true" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.ConnectionUI" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="8.0.0.0-9.0.0.0" newVersion="10.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.ConnectionUI.Dialog" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="8.0.0.0-9.0.0.0" newVersion="10.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
What i did to make it work:
<configuration>
<startup>
<requiredRuntime version="v4.0.30319" safemode="true" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.ConnectionUI" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="10.0.0.0" newVersion="8.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.ConnectionUI.Dialog" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="10.0.0.0" newVersion="8.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Instead of redirecting from version 8 and 9 to 10, i reverted it and made sure it uses version 8. -
SQL Server 2012 installation and to default user database files to a particular path
Hi, I am working on SQL Server 2012 installation on one of our test boxes and I would like to configure the sql server install binaries and all the system databases but for tempdb to be in my C and tempdb on a different drive and once all this is set up,
whenever a developer creates a new database without specifying the path for the mdf & ldf files. They should be defaulted to a path like "D:/Data file" & "D:/Log file" for instance instead of being created on the C drive.
Thanks in advance.........
IoneHi,
You can of course set default location of database through management Studio please refer below link. Once you change default location even if you do not specify location it would take default one.
http://sqlandme.com/2013/03/18/sql-server-changing-default-database-location-for-server/
I would advise you not to keep files on C drive let it be dedicated system drive also its quite possible that SQL server service account would not have privilege on C drive so after you move tempdb SQL server would not come online as tempdb files cannot
be created . Tempdb is always recreated after SQL Server starts so you just need to change location once using Alter database command
See example mentioned in below link for how to do that
http://msdn.microsoft.com/en-us/library/ms345408%28SQL.90%29.aspx
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
SQL Server 2012 Standard and hyperthreading core count
I have 2 Intel E5-2640 v2 processors for my SQL Server 2012 Standard server. Each processor has 8 cores and has hyper threading so it has 16 logical cores. Will SQL standard be able to use hyper threading? Since it has a 16 core limit, does it see hyper
threading as an extra core or will it only look at the 8 cores each processor has?Ignoring licencing, Standard version can only use up to 16 cores. In my case I have 16 cores but 32 logical cores. Will the Standard edition only use the first 16 logical processors or will it use all logical cores since I have 16 physical cores
that just happens to have hyper threading?
As per my understanding whatever is less than 16, Physical core or logical core will use that .But I am not sure best answer would be from Microsoft.
Reading there below statement .
'When hyper-threading is enabled, the Basic Input Output System (BIOS) uses a logical to physical CPU ratio. Current implementations are using 2:1 ratios. This means that there are two (2) logical CPUs for each physical CPU. These ratios may change in the
future; however, Microsoft SQL Server 2000 Service Pack 3 (SP3) and later versions have additional licensing code that adjusts the licensing restrictions to handle the ratio. For example,
if the SQL Server product code that you have installed permits a 4 CPU license at a 2:1 ratio, the SQL Server 2000 SP3 build and later builds adjust and let you use 8 CPUs.
So it says if you have license for 4 CPU but if it is hyperthreaded it can use 8.But again if number goes over 16 for standard edition I guess it would not use above 16.So in your case Enabling hyperthreading would have no use.
NOTE: This is complex discussion and correct answer would be what Microsoft says :)
PS: Please read link I have posted it is applicable to 2012 as well
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
Remove only SQL Server 2012 Standard and keep Express 2012
Hi everybody, We have installed both SQL 2012 Express and SQL 2012 Standard (licensed). All our instances which we need are running fine on the Express version.
I’m having problems uninstalling the licensed SQL 2012 Standard one. When starting the uninstall process I cannot see which server I’m removing.
My question is: how I can only for sure! remove the SQL 2012 Standard version and keep the Express 2012 working?
Greetings. TIA
win_builderHi,
To remove instance of SQL Server you have to go to Add remove program and search for
Microsoft SQL Server 2012 (64 bit)
Then right click on it and select Uninstall/Change and screen will appear where you have to select REMOVE
then click on remove and below screen will appear
From above see the drop down , select SQL Server standard instance you want to remove. In your case it would be standard edition
On next page select features you want to remove
bThen Next... Next and you would remove SQL Server standard
Edit:
You can also uninstall from command line as below
Setup.exe /Action=Uninstall /FEATURES=SQL,AS,RS,IS,Tools /INSTANCENAME=MSSQLSERVER
Here /features is features you want to uninstall
/instancename is instance name of your standard edition
Please read Uninstall Section in below link
https://msdn.microsoft.com/en-us/library/ms144259.aspx
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
Issue installing SQL Server 2012(with SP1) on windows 7 Error result: -2067529718
When running the installation, it suddenly stops without any error popup.
I ran the installation from the command prompt and this is what I get:
An error occurred during the SQL Server 2012 Setup operation.
Error result: -2067529718
Result facility code: 1220
Result error code: 10
I recently uninstalled SQL Server 2012 SP1, because the SQL server service was not starting up, it would just hang in there with no response. I tried many things to get that issue fixed, finally I decided to uninstall and start fresh but I couldn't since
I was getting an error stating that I needed Windows 7 SP1(which was already installed). I downloaded the
microsoft fix it tool which fixed the issue.
On the control panel/Programs and features, I still see that SQL Server 2012 is listed if I click to uninstall again it tells me:
An error occurred while trying to uninstall Microsoft SQL Server 2012. it may have already been uninstalled. do you want to remove Microsoft SQL Server 2012 from the Programs and features list?
if I click yes, eventually it will be listed again.
currently I'm not able to install SQL server again and besides the info provided there are not error messages (I also copied the installation files to disk).
UPDATE: it appears that the sql server was not completely removed from the system, I still see listed the SQL server(SQLExpress) and server browser services on the SQL server configuration manager.
Thanks.1) First Reboot your server and try again for the installation.
2) If first fail again than Take a backup of Registry first for safe side and then delete the entries of SQL server 2012 if found take a reboot again and try to install again.
One more thing if installation created any file then move/Delete that also before installation. -
SP2 for SQL Server 2012 with SP1 is failed with Error result: -2067529723
SP2 for SQL Server 2012 with SP1 is failed when start the installtion from command prompt and thorws below errors in Passive node of the cluster.No other errors logged in eventviewer, temp folder and not created any log files in bootstarp folder.An error occurred during the SQL Server 2012 Setup operation.
Error result: -2067529723
Result facility code: 1220
Result error code: 5
For more information, review SQL Server 2012 Setup logs in your temp folder.It is not allowing to run the sql core setup to uninstall the cluster node and gives same error.Can any one got into the same issue and please help?ThanksPetchikumarHi,
Can you post summary.txt below link will help you locate it
https://msdn.microsoft.com/en-us/library/ms143702%28v=sql.110%29.aspx
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
SQL Server 2012 software and licencing
Hi folks,
We've purchased some per core licences for a SQL 2012 install.
When I try to install SQL 2012 I get asked to put in a licence key or choose evaluation, but all we have is paperwork proving the purchase of the licences, we were told we wouldn't be provided with a key.
The only way I know of to install the software without needing a key is if I download a copy from MSDN.
Am I OK to use an MSDN copy in production if we have the paper licences or should we be using a different software source?
If we can't are there copies of the SQL software available that doesn't need a key and is specifically for the above situation?
Thanks for any help on this,
Regards,
CJHello,
This is a community forum for technical questions & issues.
For question regarding pricing / licensing please contact a Microsoft sales partner or licensing expert.
Call (1-800-426-9400), Monday through Friday, 6:00 AM to 6:00 PM PST to speak directly to Microsoft licensing specialist.
http://www.microsoft.com/en-us/server-cloud/products/sql-server/buy.aspx
But in common you should get the license key from the shop where you have purchased the license.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
JDBC SQL Server Channel Calling Stored Procedure Won't Return Result Set
Good afternoon, Experts
We're calling a stored procedure in a sender communcation channel. I can perform any SQL SELECT statement here, but for some reason when I execute the SP (EXECUTE StoredProcedureName) The Adapter Engine returns the following:
Database-level error reported by JDBC driver while executing statement 'DECLARE @UpdateRecords bit SET @UpdateRecords = 0 EXECUTE ExportToSAP @UpdateRecords'. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.'. For details, contact your database server vendor.
Even stranger yet is is that this works just fine on our PI-DEV system. I created an identical communication channel connecting to the same database with the same UID and PWD and it won't work in PI-QAS.
Any help/ideas you could share would be greatly appreciated!!!
Thanks,
ChadHi Chad.
Normally, itu2019s a problem with your procedure. The Store Procedure is wrong and something is different between your DEV environment and QAS environment.
Try to ask to DB team check it.
Regards,
Bruno -
SQL Server 2012 SSAS and Teradata as data source
Hi,
I have SSAS multidimensional project which is using Teradata as a data source with OLEDB provider for Teradata.
The data source Test connection is successful using the specific username and password, not using the Windows NT integrated security option.
Exploring data is also fine when the specifi
When processing the cube the username/password is not recognized.
In the Impersonation Information i'm using the same username/password with the option use a specific Windows username and password.
Ther Teradata authentication is not connected with Windows domain users.
What is the way to deploy/process the cube in this scenario?
Thanks in advance for your answer.Do you have the same providers installed on both the client and the server?
When you click "Test" or explore the data BIDS will use the provider on your client machine. However when the server processes the data it has to use the provider installed on the server itself.
http://darren.gosbell.com - please mark correct answers -
SQL Server 2012 and guest access to the MSDB database
Hello!
Today we were given a vulnerability scan on one of our SQL Server 2012 systems and it is flagging the following issue:
Guest is not disabled on the msdb database.
I pointed our security team to the following article:
https://support.microsoft.com/en-us/kb/2539091
My question on this:
Other than the three cases outlined, are there other possible implications of disabling guest on the msdb database? Can you point me to a reference that states one way or the other if guest needs to be disabled on msdb?
I do not like the thought of applying this change blindly and I am afraid of a potential issue caused in some other part of our application that we cannot account for down the road.
Any info would be much appreciated.
Thanks!
-Bill S.Hello,
Possible issues when SQL logins try to connect to a database.
https://connect.microsoft.com/SQLServer/feedback/details/559791/if-you-disable-guest-user-in-msdb-it-causes-issues-with-a-sql-login-sql-2008
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Not able to attach Adventure works Database to SQL server 2012 Management studio
Hello
while i try to attach AdventureWorks2012 database to SQL Server 2012 Management Studio i am getting the following error
Msg 1813, Level 16, State 2, Line 1
Could not open new database 'AdventureWorks2012'. CREATE DATABASE is aborted.
Msg 948, Level 20, State 1, Line 1
The database 'AdventureWorks2012' cannot be opened because it is version 705. This server supports version 662 and earlier. A downgrade path is not supported.
Kindly help me in this regard
Thanks
JoeyHi,
You can use the following query to achieve the version of SQL Server.
Select @@version
As the previous comments, you can either upgrade to SQL Server 2012 or attach the AdventureWorks2008 database in the link which KevinNicholas provided.
Additional information:
How to determine the version and edition of SQL Server and its components
http://support.microsoft.com/kb/321185/en-us
Upgrade to SQL Server 2012 Using the Installation Wizard (Setup)
http://technet.microsoft.com/en-us/library/ms144267.aspx
Thanks.
Tracy Cai
TechNet Community Support
Maybe you are looking for
-
MSI not installing via Group Policy - Insists location does not exist
Hi I am creating a group policy object whereby I am pointing my software package installation to \\192.168.1.3\GPO\MSOCached32bit.msi The location has permissions for the machine accounts on both the share and the ntfs permissions with read only acce
-
I utilized the idea from http://www.mssqltips.com/sqlservertip/2778/how-to-add-reporting-services-to-an-existing-sql-server-clustered-instance/ to install 2008 R2 Reporting Services on a new Clustered SQL instance. In short, create the new Clustered
-
No Camera Raw enabled in Bridge
Running CS6 on a Mac Mavericks. When I click the Camera Raw iris in Bridge this error occurs. "Not enabled. Camera raw editing requires that a qualifying product be launched to enable this feature." I have opened Photoshop which does read raw (DN
-
Forms 11.1.2 -- windows or linux 64bit
Has anyone installed the new Forms 11gR2 (11.1.2) with OAM / OID on a 64bit OS? Any tips?
-
Is possible to bring the long text maintained in BOM to the Purchase order
Hi All, Is possible to bring the long text maintained in BOM to the Purchase order ? Thanks