Cannot get Universe column in the sql server ?
Hi,
I able to get some of columns using below query , but I cannot get some of the columns from universe to SQL Server.
If I try through SSIS also the columns are missing which are unable to get using openquery.
If I add "Microsoft ODBC Data Source (ODBC)" for Universe U2 also then some of the columns are missing .
For Example : Unable to get "Description" Column.
How can I check what is the problem ? Please help me on this..
select * FROM OPENQUERY(ulive, 'select Description
FROM TABLENAME WHERE Z_ID=''020324.doc''')
Msg 7321, Level 16, State 2, Line 1
An error occurred while preparing the query for execution against OLE DB provider "MSDASQL" for linked server "ulive".
Thank you..
What is Universe U2 server? Is it SQL Server or Oracle or perhaps MySQL?
select Description FROM ULIVE.DBNAME.DBO.TABLENAME WHERE Z_ID='020324.doc'
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence
Similar Messages
-
Cannot enter correct values in the SQL server express 2012 using labview
Hi everyone,
I am trying to enter the 2D array I get from DAQ into the SQL server express 2012 using Labview. When I am run the software, it connects with the table but doesn't enter the correct values. It only enters the "0" for each column of the table. I have attached the VI as well as the screenshot from the database server.
I am also writing the same 2D array data into the text file and I get the correct readins there.
Is there something I am doing wrong here.
Attachments:
test.png 251 KB
test3.vi 96 KBIf you had read the QL manuals or reference books, you would be aware SQL Server doesn't do multidimensional arrays.
I prefer BLOBs or VARCHAR(MAXCHAR) as an alternative. I enter the values in formatted string values delimiter separated.
But how to deal with multidimensional arrays. Well up to 3-5 you can use simple value for each "dimension". So the lowest dimension
would be comma delimit. The next set of values and each succeeding set for each 2nd dimension values would have the "set" of values separated
by a ":" or semicolon. For the third I use the ":" or colon to separate each 2D block of the 3rd dimension. This can all be easily reparsed
with a multidimensional parser for the application. Should be simple to build. (e.g.. Use string arrays to parse the higher dimensions
and numeric array for the lowest dimension). The VARCHAR(MAXCHAR) has an upper data bound of 2GB! If you have to save more
than 3 dimensions for most all applications, you don't understand how best to analyze the test data and may want to give it more
thought to optimize the operation as well as the design, so it doesn't get too complex. By the way I use Data Clusters built in the
data order and type as for SQL Server Data Table. This makes the design of the SQL Server interface easy as pie . -
How to get hardware related metrics of SQL Server through query ?
Hi Folks,
I am newbie to the SQL Server programming. I also follow this forum only now. I am not sure if these kind of question had been asked in the past. Let me furnish you more detail about my query. I do like
to get few details regarding the SQL server. I do need the following details to get the information about it through query
SQL Server Installation directory
No. Of CPU(as i read SQL Server standard support 4 cpu and Enterprise support 32 CPU)
CPU Speed of the SQL Server installed machine
Disk Storage details
Operating system on which the SQL Server is installed
Location of the swap file of SQL Server
TempDB directory path
System database directory path
User database location
Log files location
I do like to get information like this through query. Can i know if such information can be get through query or it should be get only thro' WMI. Please drop your ideas in getting these details.
Thanks in Advance,
Regards,
JeiSuryaTry this query in the below link
http://gallery.technet.microsoft.com/Query-to-find-all-the-8fa765e6
you will get the SQL Server and H/W Details like
IP Address
FQDN
CurrentSQLNodeName
SQL Instance Name
SQL Server Product
SQL Server Edition
Service Pack
SQL Server Version
Operating System
OS SP Level
OS Build Number
SystemManufacturer
Processor Type
System Model
Total RAM in MB
NumberOfPhysicalCPUs
NumberOfCoresInEachCPU
TotalNumberOfCores
NumberOfLogicalCPUs -
Hi,
While installing the sql server 2008 management studio I am getting the below error.
unhandled exception has occured in your application.if you click continue,the application will ignore this error and attempt to continue.if you click quit,the aplication will close immediatly.
An error occured creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings:Could not load file or
assembly 'system.version=4.0.0.0. culture=neutral, publickey token=b77a5c561934e089' or one of its dependencies.the system cannot find the file supplied.
(C:\users\harsha\appdata\local\microsoft_corporation\landingpage.exe_strongname_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config
and finally it is giving the options like continue and quit the installation.
So what do I do?
regards,
harsha.Hello,
Please try deleting the following sub folder to see if this will work:
C:\users\(my profile)\AppData\Local\Microsoft_Corporation
If you can't see AppData folder, you could use following steps to show hidden files:
1. Open an explorer window, hit "ALT-T" choose Folder Options then go to the view tab.
2. Turn on Show hidden files, folders or drives and
disable Hide protected Operating System files (recommended).
SQL Server 2008 setup fails with a Microsoft .NET Framework exception:
http://blogs.msdn.com/b/vsnetsetup/archive/2009/10/29/sql-server-2008-setup-fails-with-a-microsoft-net-framework-exception.aspx.
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Symptom: Sometimes, when you want to reinstall the Reporting Server Role for Operation Manager 2012,
but you may encounter an issue that the Reporting Server Role cannot be reinstalled after you successfully uninstall it. When you check the System Center Operation Manager installation log, you can find the following error as shown in Figure 1.
Figure 1: Reporting Server Role cannot be reinstalled
It seems that the SQL Server Reporting Service has not been configured properly. When you open Reporting Services Configuration Manager to check the settings, the settings seem fine though.
Even you recreate Reporting Service Database, the error remains.
After reviewing the OpsMgrSetupWizard.log, we get the following errors when wizard try to connect to SQL Server Reporting Instance (Figure 2).
[07:24:05]: Error: :CheckHttpAddressResponse failed: Threw Exception.Type: System.Net.WebException, Exception Error Code: 0x80131509, Exception.Message:
The remote server returned an error: (500) Internal Server Error.
[07:24:05]: Error: :StackTrace: at System.Net.HttpWebRequest.GetResponse() at Microsoft.EnterpriseManagement.OperationsManager.Setup.ReportingComponent.CheckHttpResponseFromSRSUrl(String
httpSite)
Figure 2: Error Log -1
It indicates the Reporting Service encounters an internal error. The Website cannot handle the request. So you may check the Reporting Service log which is located in C:\Users\Administrator.SCOM2012\AppData\Local\SCOM\LOGS
and the following errors may be found (Figure 3).
library!ReportServer_0-18!1448!03/30/2014-02:53:23:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
Unable to load assembly Microsoft.EnterpriseManagement.Reporting.Security, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ---> System.IO.FileNotFoundException:
Could not load file or assembly 'Microsoft.EnterpriseManagement.Reporting.Security' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.EnterpriseManagement.Reporting.Security'
Figure 3: Error Log -2
Reason: After the Reporting Server is installed on a SSRS instance, the Reporting Server of SCOM
needs to modify the web.config and rsreportserver.config file to add its own assembly to make the Reporting Server work. But it does not change it back when Reporting Server is uninstalled. So the assembly cannot be loaded and the SSRS cannot respond
our requests.
Resolution: When the Reporting Server is installed, the old web.config and rsreportsserver.config
files will be backed up to web.config1 and rsreportsserver.config1. So you just need to change the files’ name back, then try to install Reporting Server of SCOM again. Everything would go smoothly.
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.Hi AakashGhare,
According to your error message, SQL Server 2008 databases are version 655. SQL Server 2008 R2 databases are 661. When you are trying to attach an 2008 R2 database (v. 661) to an 2008 instance and this is not supported. As other post, once the database has
been upgraded to an 2008 R2 version, it cannot be downgraded. You'll have to either upgrade your 2008 SP2 instance to R2, or you have to copy out the data in that database into an 2008 database (such as using the data migration wizard).
In addition, if you want to use a Windows Batch file code and command to automatically login to SQL Server, detach database and attach a new one database, there is a similar details about batch code for attaching database to a new database, you can refer
to this article.
http://notesbyparth.wordpress.com/2012/06/29/run-sql-commands-from-windows-batch-file-or-attachdetach-database-automatically-using-batch-script/
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Hi
Windows serv 2012 cluster on sql 2012 cluster with 2 instance. on works fine , Second instanc ewhen i try to creat DB a get this message.
Cannot use file for clustered server. Only formatted files on which the cluster resource of the server has a dependency can be used. Either the disk resource containing the file is not present in the cluster group or the cluster resource of the Sql
Server does not have a dependency on it.
CREATE DATABASE failed. Some file names listed could not be created. Check related errors. (Microsoft SQL Server, Error: 5184)
Any help please
kam
KAMELHi Saurabh
Exactly I have SQL SERVER 2012
Failover Clustering in windows server 2012 with two nodes with
two instances and exactly I run them in the same server and each instance with
three drives Backup, Data and log.
KAMEL -
I cannot start the "SQL Server Reporting Services (SCE)" service
Attempts to run any of the Windows Computer Reports fail with an error:
Date: 10/29/2008 10:19:30 AM
Application: System Center Essentials
Application Version: 6.0.1251.0
Severity: Error
Message: Cannot initialize report.
Microsoft.Reporting.WinForms.ReportServerException: The Report Server Windows service 'ReportServer$SCE' is not running. The service must be running to use Report Server. (rsReportServerServiceUnavailable)
at Microsoft.Reporting.WinForms.ServerReport.GetExecutionInfo()
at Microsoft.Reporting.WinForms.ServerReport.GetParameters()
at Microsoft.EnterpriseManagement.Mom.Internal.UI.Reporting.Parameters.ReportParameterBlock.Initialize(ServerReport serverReport)
at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ReportForm.SetReportJob(Object sender, ConsoleJobEventArgs args)
My attempts to start the "SQL Server Reporting Services (SCE)" service fail with an error:
Could not start the SQL Server Reporting Service (SCE) service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.
The application log in the event viewer has hundreds of instances of Event ID 107:
Event Type: Error
Event Source: Report Server (SCE)
Event Category: Management
Event ID: 107
Date: 10/29/2008
Time: 10:36:25 AM
User: N/A
Computer: DC
Description:
Report Server (SCE) cannot connect to the report server database. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Please help.Thanks for the link to the Reporting Services forum. I found the fix in this thread:
https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3644545&SiteID=1
I had to create a registry key and reboot:
1.
Click Start, click Run, type regedit, and then click OK.
2.
Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
3.
In the right pane, locate the ServicesPipeTimeout entry.
Note If the ServicesPipeTimeout entry does not exist, you must create it. To do this, follow these steps:
a.
On the Edit menu, point to New, and then click DWORD Value.
b.
Type ServicesPipeTimeout, and then press ENTER.
4.
Right-click ServicesPipeTimeout, and then click Modify.
5.
Click Decimal, type 60000, and then click OK.
This value represents the time in milliseconds before a service times out.
6.
Restart the computer.
After the reboot, the service was running. Thanks for your help with this. -
CLR to get the SQL Server Data into .CSV File
Hi,
I transformed 10 columns 1000 rows from the source table to 1 column 1000 rows in the destination table by making the comma separated columns ( Just like ..
Insert into DestinationTable
SELECT col1+','+col2 ....
FROM SourceTable
Then I want to take this column into CSV file.
I dont have the rights to command shell.
I heard that we may use CLR procedure for this. Can someone throw light?using System;
using System.IOM
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;
public class ExportFileClass {
[Microsoft.SqlServer.Server.SqlProcedure]
public static void export_file()
using (SqlConnection connection = new SqlConnection(
"context connection=true"))
connection.Open();
// Operation to open file goes here.
SqlCommand command = new SqlCommand("SELECT col FROM YourTable");
// Consume result set and write rows.
Build this from the command line:
sn -k keypair.snk
csc /target:library /keyfile:keypair.snk exportfile.cs
Then run in SQL Server (assuming that the files are in C:\temp on the SQL
Server machine:
[sql]
USE master
go
-- To be able to create an external-access assembly, we need to load
-- the key, the assembly is signed with. The key needs a password, but we
-- don't need to know the password.
DECLARE @sql nvarchar(MAX),
@password char(40)
SELECT @password = convert(char(36), newid()) + 'Ab4?'
SELECT @sql = 'CREATE ASYMMETRIC KEY slog_loopback FROM FILE = ' +
'''C:\temp\keypair.snk'' ' +
'ENCRYPTION BY PASSWORD = ''' + @password + ''''
PRINT @sql
EXEC(@sql)
-- And then a login to carry the permission.
CREATE LOGIN exportfile$asymkey FROM ASYMMETRIC KEY ExportFile
GRANT EXTERNAL ACCESS ASSEMBLY TO exportfile$asymkey
go
-- Now we can go back to our regular database and create the assembly.
USE youddatabase
go
CREATE ASSEMBLY ExportFile FROM 'C:\temp\exportfile.dll'
WITH PERMISSION_SET = EXTERNAL_ACCESS
go
CREATE PROCEDURE ExportFile AS
EXTERNAL NAME ExportFile.ExportFileClass.export_file
[sql]
It is likely that you will have to do ask your DBA to do things in the
master database.
Erland Sommarskog, SQL Server MVP, [email protected] -
Trying to install a new version of SQL 2014 Std 64 or x86. Installing on Windows 8.1Pro 64bit machine.
I get:
"TITLE: SQL Server Setup failure.
SQL Server Setup has encountered the following error:
The SQL Server product key is not valid. To proceed, re-enter the product key values from the Certificate of Authenticity (COA) or SQL Server packaging.
Error code 0x858C0017."
I looked at the summary log and that is the only error.
I made sure there were no other instances of SQL on this machine. Uninstalled all VS2013 and sql instances just in case. IF there is somewhere to check if a previous version or license is causing the issue, i would be glad to check.
Any help would be appreciated.Hi,
Please read this thread with similar issue
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/bdd94577-515c-49fa-be44-008eacece057/installing-sql-server-2012-on-a-new-vm-error-code-0x858c0017?forum=sqlsetupandupgrade
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 Articles -
Hi All,
I am setting up SCVMM 2012 R2 in a production environment. Whenever I restart the SCVMM virtual machine the VMM service doesn't start automatically, I have to manually start it. I checked the VMM logs and in the event viewer i find the below error,
Service cannot be started. Microsoft.VirtualManager.DB.CarmineSqlException: Unable to connect to the VMM database. Ensure that the SQL Server is running and configured correctly. ---> System.Data.SqlClient.SqlException: Cannot open database "VirtualManagerDB"
requested by the login. The login failed. Login failed for user 'NXTRA\VMMSVC'. at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean&
dataReady) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.Sq...
I added the 'VMMSVC' account as db_owner and sysadmin and also NT_Authority\System with same permissions still the service doesn't start on the start up.
I googled a lot and I find the threads with the error containing "General failure" but not with the above. Can someone please help me to find out why this error is occuring.
Thanks,
RaviIt's often only a problem of the service dependencies. SCVMM starts to fast, SQL server on the same machine in not initialized yet. Here are working service dependencies to ensure SQL server is initializes before SCVMM starts.
You can set the service dependencies directly in regedit (as always: be careful modifying the registry ...)
Here is the content of a reg file setting the dependency.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SCVMMService]
"DependOnService"=hex(7):53,00,51,00,4c,00,53,00,45,00,52,00,56,00,45,00,52,00,\
41,00,47,00,45,00,4e,00,54,00,00,00,53,00,51,00,4c,00,42,00,72,00,6f,00,77,\
00,73,00,65,00,72,00,00,00,53,00,51,00,4c,00,57,00,72,00,69,00,74,00,65,00,\
72,00,00,00,4d,00,53,00,53,00,51,00,4c,00,46,00,44,00,4c,00,61,00,75,00,6e,\
00,63,00,68,00,65,00,72,00,00,00,00,00 -
While i am trying to start the sql server agent job getting the error
Hi,
when ever i am trying to executing the sql server agent job's through manual that time i am getting the below error.Hi,
when ever i am trying to executing the sql server agent job's through manual that time i am getting the below error.
I searched net for this type of error and found that Latest SP can fix this issue.See below link
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/12181324-bc51-41a5-a8a5-608bfe2725e9/could-not-load-type-smoagentjobbasecollection?forum=sqlsmoanddmo
Can you also refer to this link
http://www.sqldbadiaries.com/2010/12/20/could-not-load-file-or-assembly-error-while-using-tdp-makes-a-come-back/
Also please see this connect also
http://connect.microsoft.com/SQLServer/feedback/details/280907/sql-agent-job-actions-fail-from-job-activity-monitor
hope this helps
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
on my iphone I am getting a "Cannot Get Mail" prompt says " the connection to the server failed. My mail last updated 1-31-14(the last time it would retrieve mail) Ive done the turn on and off thing,thanks
i had this problem a couple times. Try:
1) to restart your iPhone (turn off and then on)
2) connect to a different network or use cellular (it may be a network problem)
3) delete your mail account from Mail app, and then add it back in
4) create an icloud backup of all your data, restore through iTunes and then restore from icloud
hope this helps. cheers! -
Error loading data into Essbase from the SQL Server
Hello experts!
I've got another urgent and confusing issue. I am loading data from an SQL Server view into Essbase (which is reversed with multiple data columns) using ODI 11.1.1.5 and I get the following error at +"3-Loading -SrcSet0-Load Data"+ step:
ODI-1227: Task SrcSet0 (Loading) fails on the source MICROSOFT_SQL_SERVER connection.
+Caused By: java.sql.SQLException: [FMWGEN][SQLServer JDBC Driver][SQLServer]Incorrect syntax near the keyword 'View'+
where "View" is the name of the dimension (non-data) column in the SQL view.
Please help me with any hints! Thank you so much!John, thank you so much!
Your answer is exactly correct!
"View" is an object name in SQL Server so this word cannot be used as a column name in SQL Server tables. Once the name of the colunm changed from "View" to another, the interface runs without errors! -
Cannot connect to database master at SQL server at SERVERNAME
I have installed SQL 2008 R2 in a fresh win 2008 R2. I’m running the sharepoint configuration Wizard using the database server name with the correct domain
credentials but I get the following error message. “Cannot connect to database master at SQL server at
SERVERNAME. The database might not exist, or the current user does not have permission to connect”
I‘m able to login to the new SQL server using the “SQL server management studio” with no problems. I used the sa account and a domain account.
The sharepoint server is also a new installation. And both servers have the firewall disabled.
Thanks in advance for your help.
SimonHi,
What is your SharePoint server’s version?
Please make sure you use the farm admin account to launch SharePoint configuration wizard. If not, please log in with this account, then check the effect.
In addition, check if you create a named instance, such as, servername\sharepoint, however, you only specify the servername in the configuration wizard. If this is
the case, change to servername\sharepoint, then check the effect.
Thanks,
Rock Wang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
contact [email protected]
Regards, Rock Wang Microsoft Online Community Support -
I am trying to do the tutorial for SQL Server Business Intelligence Studio, but I can't get the AdventureWorksDW to be recognized by it, when I try to connect to it.
I have tried to shut down, restart, downloaded a couple of different versions of AdventureWorksDW (I believe 2008 is the one I need), and tried to attach this AdventureWorksDW using SQL Server Management Studio 2008R2, but I cannot even do that! The instructions
for attaching a DB tell me to open Management Studio, then open a connection instance. But then I cannot find the database button to right click on, or the attach item in the menu that is supposed to be there with it.
I had installed AdventureWorks2008R2 previously and the SQL Server BIDS sees that, but of course I cannot do the tutorial without some serious mods if I do that. I have rebooted computer, closed and reopened the BIDS app, deleted and re-created the
OLE-DB connection in BIDS, but nothing works. What am I doing wrong? I've worked in mostly the Oracle world for most of my career so I'm not new to either DW or relational DB, but this one is driving me to pull my hair. Any help greatly appreciated!
BadgerThank you! Is this correct?
CREATE DATABASE AdventureWorksDW2008R2_data
ON
(FILENAME
=
'C:\SSIS Downloads\AdventureWorksDW2008R2_Data')
FOR
ATTACH_REBUILD_LOG
I tried this and it gives me a cannot find file specified error, but my file IS located at
C:\SSIS Downloads
error is:
Msg 5120, Level 16, State 101, Line 1
Unable to open the physical file "C:\SSIS Downloads\AdventureWorksDW2008R2_Data". Operating system error 2: "2(The system cannot find the file specified.)".
I will continue to play with it, thanks very much!
Try as below,
sp_attach_single_file_db 'AdventureWorksDW2008R2'
,'C:\SSIS Downloads\AdventureWorksDW2008R2_Data.mdf'
Note: If you get any security issue then refer this link
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/232e4aaf-73cf-4eb8-9f6c-6a4fc91a6036/i-cant-attach-mdf-operating-system-error5
Regards, RSingh
Maybe you are looking for
-
Addenda information for ACH payments
Hi All, We are using PMW with an ACH CCD format to send the ACH files to our Bank. But certain vendors require us to send ADDENDA record as given below for e.g. in the ACH payments 705ISA00NV 00NV ZZNV ZZNV 09100615300010000001 Can we enter this inf
-
Can I Logon to Standby Database Using EM Console Without Broker?
Can I logon to standby database using EM Console without broker?
-
Missing horizontal lines in column header
Post Author: cr101 CA Forum: General I have a 5-page report, sometimes the lines that separates the column header and report content are missing. Does anyone know why? Thanks.
-
File naming by time picture taken - 12h clock?
I love the flexibility that Lightroom gives in naming exported pictures. Is there a way to have it use a 12h clock instead of 24h? In other words, how can I get Lightroom to generate file names like 20071107 IMG_0010 (1055a).jpg 20071107 IMG_0011 (01
-
Hello, This Is Mahesh Kumar Goud.I am using Apple Iphone5 and i have a problem with the phone that is always it shows connect to itunes and showing in a recovery mode. But i am unable it recovery my iphone and it is showing the error as "3194". So ki