Geography fields in SQL Server 2012

I have SQL Server 2012 running in 2012 mode.
I run IIS 7.5 on Windows Server 2008.
I use ASP.NET and after the login form, I issue a SQL select command which include the selection of a Geography field in the result.
In order to make that work, I have to install:
Microsoft SQL Server 2008 Shared Management Objects
Microsoft SQL Server 2012 Shared Management Objects x86
Microsoft SQL Server 2012 Shared Management Objects x64
Microsoft System CLR Types for Microsoft SQL Server System 2008
Microsoft System CLR Types for Microsoft SQL Server System 2012 x86
Microsoft System CLR Types for Microsoft SQL Server System 2012 x64
If I remove the 2008 installations, it will break. I do not understand why I have to continue to support old 2008 installation files just to benefit of Geography fields in 2012. It seems there is some kind of dependencies in 2012 in regard to Geography fields
that it continues to require the installation of those 2008 components.
I really need to get rid of that and only keep:
Microsoft SQL Server 2012 Shared Management Objects x64
Microsoft System CLR Types for Microsoft SQL Server System 2012 x64
If someone has any idea, you may let me know.

I have found a workaround for this issue.
Type System Version=SQL Server 2012 can be added to the connection string. On all those alternatives I have found, this one is the simpler and does not require any change in the code.
I was able to remove the following:
Microsoft SQL Server 2008 Shared Management Objects
Microsoft System CLR Types for Microsoft SQL Server System 2008
...and the application is now working.
So, for now, I have those installed:
Microsoft SQL Server 2012 Shared Management Objects x86
Microsoft SQL Server 2012 Shared Management Objects x64
Microsoft System CLR Types for Microsoft SQL Server System 2012 x86
Microsoft System CLR Types for Microsoft SQL Server System 2012 x64
I would like to keep only the 64-bit version but I need to keep the 32-bit version because I have some script that requires BatchParser. That one does not exist in the 64-bit version. So, once I installed back the 32-bit version, it went ok.
The fact that I had to modify the connection string to have the Geography field to be workable in the ASP.NET application is an issue. I hope this will be resolved soon. I do not know if this has to be resolved at SQL Server level, .NET or ASP.NET.
But, one thing for sure, I shouldn't have to plug that in the connection string to workaround such issue.

Similar Messages

  • XML Schema Collection (SQL Server 2012): How to create an XML Schema Collection that can be used to Validate a field name (column title) of an existing dbo Table of a Database in SSMS2012?

    Hi all,
    I used the following code to create a new Database (ScottChangDB) and a new Table (marvel) in my SQL Server 2012 Management Studio (SSMS2012) successfully:
    -- ScottChangDB.sql saved in C://Documents/SQL Server XQuery_MacLochlainns Weblog_code
    -- 14 April 2015 09:15 AM
    USE master
    IF EXISTS
    (SELECT 1
    FROM sys.databases
    WHERE name = 'ScottChangDB')
    DROP DATABASE ScottChangDB
    GO
    CREATE DATABASE ScottChangDB
    GO
    USE ScottChangDB
    CREATE TABLE [dbo].[marvel] (
    [avenger_name] [char] (30) NULL, [ID] INT NULL)
    INSERT INTO marvel
    (avenger_name,ID)
    VALUES
    ('Hulk', 1),
    ('Iron Man', 2),
    ('Black Widow', 3),
    ('Thor', 4),
    ('Captain America', 5),
    ('Hawkeye', 6),
    ('Winter Soldier', 7),
    ('Iron Patriot', 8);
    SELECT avenger_name FROM marvel ORDER BY ID For XML PATH('')
    DECLARE @x XML
    SELECT @x=(SELECT avenger_name FROM marvel ORDER BY ID FOR XML PATH('Marvel'))--,ROOT('root'))
    SELECT
    person.value('Marvel[4]', 'varchar(100)') AS NAME
    FROM @x.nodes('.') AS Tbl(person)
    ORDER BY NAME DESC
    --Or if you want the completed element
    SELECT @x.query('/Marvel[4]/avenger_name')
    DROP TABLE [marvel]
    Now I am trying to create my first XML Schema Collection to do the Validation on the Field Name (Column Title) of the "marvel" Table. I have studied Chapter 4 XML SCHEMA COLLECTIONS of the book "Pro SQL Server 2008 XML" written by
    Michael Coles (published by Apress) and some beginning pages of XQuery Language Reference, SQL Server 2012 Books ONline (published by Microsoft). I mimicked  Coles' Listing 04-05 and I wanted to execute the following first-drafted sql in
    my SSMS2012:
    -- Reference [Scott Chang modified Listing04-05.sql of Pro SQL Server 2008 XML by Michael Coles (Apress)]
    -- [shcColes04-05.sql saved in C:\\Documents\XML_SQL_Server2008_code_Coles_Apress]
    -- [executed: 2 April 2015 15:04 PM]
    -- shcXMLschemaTableValidate1.sql in ScottChangDB of SQL Server 2012 Management Studio (SSMS2012)
    -- saved in C:\Documents\XQuery-SQLServer2012
    tried to run: 15 April 2015 ??? AM
    USE ScottChangDB;
    GO
    CREATE XML SCHEMA COLLECTION dbo. ComplexTestSchemaCollection_all
    AS
    N'<?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="marvel">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="avenger_name" />
    <xsd:element name="ID" />
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>';
    GO
    DECLARE @x XML (dbo. ComplexTestSchemaCollection_all);
    SET @x = N'<?xml version="1.0"?>
    <marvel>
    <avenger_name>Thor</name>
    <ID>4</ID>
    </marvel>';
    SELECT @x;
    GO
    DROP XML SCHEMA COLLECTION dbo.ComplexTestSchemaCollection_all;
    GO
    I feel that drafted sql is very shaky and it needs the SQL Server XML experts to modify to make it work for me. Please kindly help, exam the coding of my shcXMLTableValidate1.sql and modify it to work.
    Thanks in advance,
    Scott Chang

    Hi Scott,
    2) Yes, FOR XML PATH clause converts relational data to XML format with a specific structure for the "marvel" Table. Regarding validate all the avenger_names, please see below
    sample.
    DECLARE @x XML
    SELECT @x=(SELECT ID ,avenger_name FROM marvel FOR XML PATH('Marvel'))
    SELECT @x
    SELECT
    n.value('avenger_name[1]','VARCHAR(99)') avenger_name,
    n.value('ID[1]','INT') ID
    FROM @x.nodes('//Marvel') Tab(n)
    WHERE n.value('ID[1]','INT') = 1 -- specify the ID here
    --FOR XML PATH('Marvel')  --uncommented this line if you want the result as element type
    3)i.check the xml schema content
    --find xml schema collection
    SELECT ss.name,xsc.name collection_name FROM sys.xml_schema_collections xsc JOIN sys.schemas ss ON xsc.schema_id= ss.schema_id
    select * from sys.schemas
    --check the schema content,use the name,collection_name from the above query
    SELECT xml_schema_namespace(N'name',N'collection_name')
    3)ii. View can be viewed as virtual table. Use a view to list the XML schema content.
    CREATE VIEW XSDContentView
    AS
    SELECT ss.name,xsc.name collection_name,cat.content
    FROM sys.xml_schema_collections xsc JOIN sys.schemas ss ON xsc.schema_id= ss.schema_id
    CROSS APPLY(
    SELECT xml_schema_namespace(ss.name,xsc.name) AS content
    ) AS cat
    WHERE xsc.name<>'sys'
    GO
    SELECT * FROM XSDContentView
    By the way, it would be appreciated if you can spread your questions into posts. For any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • SQL Server 2005 performance decreases with DB size while SQL Server 2012 is fine

    Hi,
    We have a C# windows service running that polls some files and inserts/updates some fields in database.
    The service was tested on a local dev machine with SQL Server 2012 running and performance was quite decent with any number of records. Later on the service was moved to a test stage environment where SQL Server 2005 is installed. At that point database
    was still empty and service was running just fine but later on, after some 500k records were written, performance problems came to light. After some more tests we've founds out that, basically, database operation performance in SQL Server 2005 decreases with
    a direct correlation with the database size. Here are some testing results:
    Run#
    1
    2
    3
    4
    5
    DB size (records)
    520k
    620k
    720k
    820k
    920k
    SQL Server 2005
    TotalRunTime
    25:25.1
    32:25.4
    38:27.3
    42:50.5
    43:51.8
    Get1
    00:18.3
    00:18.9
    00:20.1
    00:20.1
    00:19.3
    Get2
    01:13.4
    01:17.9
    01:21.0
    01:21.2
    01:17.5
    Get3
    01:19.5
    01:24.6
    01:28.4
    01:29.3
    01:24.8
    Count1
    00:19.9
    00:18.7
    00:17.9
    00:18.7
    00:19.1
    Count2
    00:44.5
    00:45.7
    00:45.9
    00:47.0
    00:46.0
    Count3
    00:21.7
    00:21.7
    00:21.7
    00:22.3
    00:22.3
    Count4
    00:23.6
    00:23.9
    00:23.9
    00:24.9
    00:24.5
    Process1
    03:10.6
    03:15.4
    03:14.7
    03:21.5
    03:19.6
    Process2
    17:08.7
    23:35.7
    28:53.8
    32:58.3
    34:46.9
    Count5
    00:02.3
    00:02.3
    00:02.3
    00:02.3
    00:02.1
    Count6
    00:01.6
    00:01.6
    00:01.6
    00:01.7
    00:01.7
    Count7
    00:01.9
    00:01.9
    00:01.7
    00:02.0
    00:02.0
    Process3
    00:02.0
    00:01.8
    00:01.8
    00:01.8
    00:01.8
    SQL Server 2012
    TotalRunTime
    12:51.6
    13:38.7
    13:20.4
    13:38.0
    12:38.8
    Get1
    00:21.6
    00:21.7
    00:20.7
    00:22.7
    00:21.4
    Get2
    01:38.3
    01:37.2
    01:31.6
    01:39.2
    01:37.3
    Get3
    01:41.7
    01:42.1
    01:35.9
    01:44.5
    01:41.7
    Count1
    00:20.3
    00:19.9
    00:19.9
    00:21.5
    00:17.3
    Count2
    01:04.5
    01:04.8
    01:05.3
    01:10.0
    01:01.0
    Count3
    00:24.5
    00:24.1
    00:23.7
    00:26.0
    00:21.7
    Count4
    00:26.3
    00:24.6
    00:25.1
    00:27.5
    00:23.7
    Process1
    03:52.3
    03:57.7
    03:59.4
    04:21.2
    03:41.4
    Process2
    03:05.4
    03:06.2
    02:53.2
    03:10.3
    03:06.5
    Count5
    00:02.8
    00:02.7
    00:02.6
    00:02.8
    00:02.7
    Count6
    00:02.3
    00:03.0
    00:02.8
    00:03.4
    00:02.4
    Count7
    00:02.5
    00:02.9
    00:02.8
    00:03.4
    00:02.5
    Process3
    00:21.7
    00:21.0
    00:20.4
    00:22.8
    00:21.5
    One more thing is that it's not Process2 table that constantly grows in size but is Process1 table, that gets almost 100k records each run.
    After that SQL Server 2005 has also been installed on a dev machine just to test things and we got exactly the same results. Both SQL Server 2005 and 2012 instances are installed using default settings with no changes at all. The same goes for databases
    created for the service.
    So the question is - why are there such huge differences between performance of SQL Server 2005 and 2012? Maybe there are some settings that are set by default in SQL Server 2012 database that need to be set manually in 2005?
    What else can I try to test? The main problem is that production SQL Server will be updated god-knows-when and we can't just wait for that.
    Any suggestions/advices are more than welcome.

    ...One more thing is that it's not Process2 table that constantly grows in size but is
    Process1 table, that gets almost 100k records each run....
    Hi,
    It is not clear to me what is that you are doing, but now we have a better understanding on ONE of your tables an it is obviously you will get worse result as the data become bigger. Actually your table look like a automatic build table by ORM like Entity
    Framework, and it's DDL probably do not much your needs. For example if your select query is using a filter on the other column that [setID] then you have no index and the server probably have to scan the entire table in order to find the records that you
    need.
    Forum is a suitable place to seek advice about a specific system (as I mentioned before we are not familiar with your system), and it is more suitable for general questions. For example the fact that you have no index except the index on the column [setID]
    can indicate a problem. Ultimately to optimize the system will need to investigate it more thoroughly (as it is no longer appropriate forum ... but we're not there yet). Another point is that now we can see that you are using [timestamp] column, an this
    implies that your are using this column as a filter for selecting the data. If so, then maybe a better DDL will be to use clustered index on this column and if needed a nonclustered index on the [setID] if it is needed at all...
    what is obviously is that next is to check if this DDL fit
    your specific needs (as i mentioned before).
    Next step is to understand what action do you do with this table. (1) what is your query which become slowly in a bigger data set. (2) Are you using ORM (object relational mapping, like Entity Framework
    code first), and if so then which one.
    [Personal Site] [Blog] [Facebook]

  • SQL Server 2012 Express bulk Insert flat file 1million rows with "" as delimeter

    Hi,
    I wanted to see if anyone can help me out. I am on SQL server 2012 express. I cannot use OPENROWSET because my system is x64 and my Microsoft office suit is x32 (Microsoft.Jet.OLEDB.4.0).
    So I used Import wizard and is not working either. 
    The only thing that let me import this large file, is:
    CREATE TABLE #LOADLARGEFLATFILE
    Column1
    varchar(100), Column2 varchar(100), Column3 varchar(100),
    Column4 nvarchar(max)
    BULK INSERT
    #LOADLARGEFLATFILE
    FROM 'C:\FolderBigFile\LARGEFLATFILE.txt'
    WITH 
    FIRSTROW = 2,
    FIELDTERMINATOR ='\t',
    ROWTERMINATOR ='\n'
    The problem with CREATE TABLE and BULK INSERT is that my flat file comes with text qualifiers - "". Is there a way to prevent the quotes "" from loading in the bulk insert? Below is the data. 
    Column1
    Column2
    Column3
    Column4
    "Socket Adapter"
    8456AB
    $4.25
    "Item - Square Drive Socket Adapter | For "
    "Butt Splice" 
    9586CB
    $14.51
    "Item - Butt Splice"
    "Bleach"
    6589TE
    $27.30
    "Item - Bleach | Size - 96 oz. | Container Type"
    Ed,
    Edwin Lopera

    Hi lgnusLumen,
    According to your description, you use BULK INSERT to import data from a data file to the SQL table. However, to be usable as a data file for bulk import, a CSV file must comply with the following restrictions:
    1. Data fields never contain the field terminator.
    2. Either none or all of the values in a data field are enclosed in quotation marks ("").
    In your data file, the quotes aren't consistent, if you want to prevent the quotes "" from loading in the bulk insert, I recommend you use SQL Server Import and Export Wizard tools in SQL Server Express version. area, it will allow to strip the
    double quote from columns, you can review the following screenshot.
    In other SQL Server version, we can use SQL Server Integration Services (SSIS) to import data from a flat file (.csv) with removing the double quotes. For more information, you can review the following article.
    http://www.mssqltips.com/sqlservertip/1316/strip-double-quotes-from-an-import-file-in-integration-services-ssis/
    In addition, you can create a function to convert a CSV to a usable format for Bulk Insert. It will replace all field-delimiting commas with a new delimiter. You can then use the new field delimiter instead of a comma. For more information, see:
    http://stackoverflow.com/questions/782353/sql-server-bulk-insert-of-csv-file-with-inconsistent-quotes
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How do you create a buffer of a geometry in SQL Server 2012?

    Hello,
    I am new to SQL Server 2012 and spatial data. I built a geometry object of coordinates from a polygon that I stored in a database.  The code is below:
    DECLARE @digb GEOMETRY;
    SET @digb = GEOMETRY::STGeomFromText('POLYGON ((-79.927138 40.362654, -79.91883 40.364224, -79.915966 40.361067, -79.917897 40.359266, -79.927398 40.360142, -79.927138 40.362654))', 4269);
    I am using SRID 4269 (Latitude/Longitude NAD83).  I have no issues getting this geometry to load properly when the query is executed. (shown below)
    My problem is that I am unable to create a valid buffer of 150 feet on this geometry.  I have tried using these 3 statements below (I assumed BufferWithCurves() would be the one that would work); however, ALL of them returned to an invalid buffer of
    the polygon (shown below):
    -     DECLARE @digbb GEOMETRY = @digb.STBuffer(2);
    -     DECLARE @digbb GEOMETRY = @digb.BufferWithCurves(2)
    -     DECLARE @digbb GEOMETRY = @digb.BufferWithTolerance(@BufferSize,250.0,1);
    Does anyone have any idea of how creating this buffer of a geometry object (polygon mentioned above) in SQL Server 2012? 
    Thanks in advance for any help.
    Nick

    Hi Nick,
    BTW, please do ask questions on the forum, that's what it's for. I only meant "if my explanation in that specific answer was unclear, let me know and I'll clarify". Feel free to start a new thread for each topic because that way, it's
    might be easier for folks to search on.
    Specific answers:
    I haven't worked directly with the MapInfo loader but if you're working with SQL Server, I assume what they may be doing is looking for "geodesic SRIDs" that SQL Server supports (the ones listed in sys.spatial_reference_systems) and loading those
    as geography, else geometry. That may be a good thing to do.
    If you want to decide yourself, here's some (short) background.
    Only SQL Server (I think PostGIS might have added it) has separate geography and geometry types. Everyone else always uses "geometry" and gives you (maybe) the ability to convert between SRIDs in the database. SQL Server doesn't have
    this built-in; you'd need to use a library like PROJ4.
    You can use geometry type to refer to geodesic SRIDs, but it doesn't have a way to "take the area using spatial instances in decimal degrees and come up with meters". So, if you only use it to display on a map, it will display correctly.
    Or close enough. Same with intersects, intersection and the like. But anything like area, distance, or, in your case buffer using a specific number of meters, you need to use geography.  You could have gotten somewhat similar-looking
    results with geometry by making your input to STBuffer a sufficiently small fraction, but it would be a guess on your part, not a "150 feet" buffer.
    You can't CAST/CONVERT between geometry and geography because they didn't want people to assume that these would do SRID conversion. However, there is a codeplex library "SQL Server Spatial Tools" (http://sqlspatialtools.codeplex.com/) that
    has two methods: VacuousGeometryToGeography and vice-versa, that does the equivalent (but optimized) of taking one type, spitting it out in well-known text format, then using it to initialize the other type. Or you can do this in your own code.
    In general, geography is for anything geodesic; geometry is for planar or projected coordinate systems (e.g state plane coordinate systems in US, that don't use Long/Lat). But geography is slightly slower in calculations (like intersects) because it's more
    complex than simple Euclidian geometry. And folks in other platforms are used to using "geometry" and having the platform do the (sometimes fairly expensive) conversions on-the-fly. Or maybe you don't care about the area, distance, etc.
    Even in the geography type, WKT specifies (Long Lat) not (Lat Long). This is because the OGC standard doesn't distinguish and calls things (X Y), and if you think about it, (X Y) is (Long Lat) not (Lat Long). The SQL Server geography-specific method MakePoint
    has latitude first as a parameter. OGC or SQL/MM standard methods and property names start with "ST" in SQL Server (e.g. STIntersects); SQL Server-specific methods and properties do not (e.g. MakePoint, ReorientObject).
    Finally, attempting to do spatial calculations with unlike SRIDs (e.g. intersects between SRID 4269 and 4326 instance) returns NULL.  
    One more post coming on this thread with some info/links.
    Cheers, Bob

  • Get error when connecting SQL 2012 Management studio to SQL Server 2012 database

    I got this error message when I tried to connect to SQL Server 2012 using Management studio 2012.
    Service 'Microsoft.SqlServer.Management.IRegistrationService' not found (Microsoft.SqlServer.Management.SDK.SqlStudio)

    Did this get this resolved?
    My SSMS 2012 was running without issue for several months until I installed VS2012. After the VS2012 I started getting "Service 'Microsoft.SqlServer.Management.IRegistrationService' not found" when connecting to database in SSMS 2012. I uninstalled VS2012
    and SSMS 2012 started working again. Installed VS2012 and SSMS 2012 is broken again.
    I tried the above suggestions without success. Here are the error details. Any help is greatly appreciated.
    ===================================
    Service 'Microsoft.SqlServer.Management.IRegistrationService' not found (Microsoft.SqlServer.Management.SDK.SqlStudio)
    Program Location:
       at Microsoft.SqlServer.Management.ServiceProvider.GetService[T](IServiceProvider serviceProvider, Boolean throwIfNotFound)
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.NavigationService.Initialize()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.NavigationService.GetView(String urnPath)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.<GetColumnsFromNavigationService>d__11.MoveNext()
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.AddFields(List`1 list, IEnumerable`1 fields, IDictionary`2 allValidFields, AddFieldsFlags flags)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.GetParentFields(INodeInformation source, Dictionary`2& allValidColumns)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItemWithQuery(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, String urnQuery, Boolean registerBuilder, Boolean registerBuiltItems)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItem(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.Build(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItem.RequestChildren(IGetChildrenRequest request)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ExplorerHierarchyNode.BuildChildren(WaitHandle quitEvent)

  • Moving to unicode datatype for an entire database - SQL Server 2012

    Hi,
    I've a SQL Server 2012 database with more tables having more char and varchar columns.
    I'd like to change quickly char columns in nchar columns and varchar columns in nvarchar columns.
    Is it possible to solve this issue, please? Many thanks

    Hello,
    Creating a script could do it quickly as shown in the following article:
    http://blog.sqlauthority.com/2010/10/18/sql-server-change-column-datatypes/
    But creating the scripts may take you some time.
    You will find more options here:
    https://social.technet.microsoft.com/Forums/sqlserver/en-US/e7b70add-f390-45ee-8e3e-8ed6c6fa0f77/changing-data-type-to-the-fields-of-my-tables?forum=transactsql
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Reports & Microsoft SQL Server 2012 Express LocalDB support policy

    Hello,
    Willing to move some databases into Microsoft SQL Server 2012 (2014) Express LocalDB, I have tryed to map some reports on that database.
    Using OLE DB SQL Native Client (v11) and SAP CR RunTime SP10 (>SP9), I still have trouble when using this data source:
    After drawing some simple reports (standard ones with 2-3 fields from the database):
    - VS designer:
    + when "checking database" or "getting a preview" of the report, it always complains about missing tables.
    + when trying to "re-map" tables from one SQL Server 2012 Express LocalDB to another one it fails, complaining about not findind resources.
    - Running application (.NET 4.0, 32 or 64-bits):
    + without any change to the report configuration: CR Viewer complains with multiple error codes (17, ...) that it cannot find the tables
    + trying to change the configured database from the report: CR VIewer complains with some more error codes
    => Is Microsoft SQL Server 2012 Express LocalDB now officially supported by CR ?
    => Is changing datasource/database configuraton during execution now officially supported by CR ?
    Feel free to provide an any links / howto's / white paper about how managing Microsoft SQL Server 2012 Express LocalDB with SAP CR !
    Many thanks in advance.
    Regards.

    Don,
    I did not want you to think that I am not willing to change anything...
    The issue is that LocalDB specs (http://msdn.microsoft.com/en-us/library/ms130822(v=sql.110).aspx) are not (seems not) fulfiled by what SAP APIs provide.
    Following specs, I need to provide ADO DB/SQL Native Client v11 an "AttachDBFileName" property which, for LocalDB instance, is equal to the DatabaseName property (check below screenshot from MS Mgmt Studio connected to a SQL Server 2012 LocalDB instance).
    Moreover, OLEDB discovery provide in CR 2013 UI this same list of "DatabaseName":
    When connected, this same CR 2013 UI got the right "view" of connected "MDF-labelled" names:
    Moreover, CR connected datasource properties also provide an "initial catalog" (databasename) value with that "MDF-labelled" name:
    That is what I saw previously in API dumped objects and what I tryed to reproduce in my code:
    As previously explained, after adding tables, I am also beeing able to add fields from those tables in my fresh-new report document:
    It fikrst shows results in preview but as soon as I try to refresh / add some more fields / ask CR to "check database" / "change database source", the interface always complain about having "lost" objects:
    Site note for Ludek Uher: CR 2013 StandaAlone fresh-new builded reports are not working neither using CR runtime SP10 when opening/updating that report..
    So YES, I am OK to change whatever is required but please explain me what to use/put into the "crConnectioninfo.DatabaseName" property for a SQL Express 2012 LocalDB case.
    Or leave it as is, LocalDB not being supported by CR ...
    (all my reports & c# code are working well while using SQL Express 2012 "classic" (not localdb)).
    Thanks again for your time.
    Regards.

  • Usage Tracking Error on Microsoft SQL Server 2012 RCU

    During an upgrade to 11.1.1.7.131017 recently, I ran into the following error in nqserver.log when trying to implement Usage Tracking on a MS SQL Server 2012 RCU DB:
    [2013-11-18T15:19:38.000-08:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: 00iIX8GTiKpFw00Fzzw0w00001I00008PG,0:1:1:19:1:1] [tid: 1330]  [nQSError: 16015] SQL statement execution failed. [[[nQSError: 16001] ODBC error state: 22008 code: 0 message: [Microsoft][SQL Server Native Client 11.0]Datetime field overflow. Fractional second precision exceeds the scale specified in the parameter binding..]]
    The workaround I outlined below is not an ideal solution, just a workaround to prevent the bug from occurring until there's a fix:
    http://www.emerald-cube.com/2013/12/adventures-in-obiee-upgrade-land-quirks-and-workarounds-episode-i/http://www.emerald-cube.com/2013/12/adventures-in-obiee-upgrade-land-quirks-and-workarounds-episode-i/
    Just providing as an FYI in case anyone else searches for this error and needs a solution.
    Jeremy

    I like this one written by Itzik Ben-Gan
    http://www.amazon.com/Microsoft-High-Performance-Functions-Developer-Reference/dp/0735658366
    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

  • Problems with TIMESTAMP Field from SQL Server

    OBIEE 11g
    Hi All,
    I want to convert data into OBIEE that is coming from a TIMESTAMP field in SQL Server Database. So in SQL Server field has data like '9/20/2012 12:05:08 AM'. I have first changed the datatype in physical layer to DATETIME and then in BMM I do a CAST(<DATE_FIELD> AS DATE). On the frontend when I use this column the error I get back is [nQSError: 59030] Illegal data type conversion from source type: VARBINARY to target type: TIMESTAMP. (HY000). Does anyone know a workaround or solution.
    Thanks in Advance!

    Hi Guys,
    None of the solutions you mentioned have worked unfortunately. I have a date column and another column that holds user id. I basically want to do a count of all the user id's where that particular date column is NULL. I have checked in the physical layer and the date column in question is coming from SQL Server as a TIMESTAMP datatype. So I initially did not change anything and brought the column in as is but that did not work out. I then tried to change the datatype in the physical layer to DATETIME and then also DATE. After changing the datatype in the physical layer in the BMM I would do a CAST(<date column> as DATE) and this still did not work. I then tried to just change the datatype to DATETIME and DATE without doing the CAST in the BMM and this still did not work. Not too sure what to do now.

  • Error while installing SQL Server 2012 X64 SP2,

    Error while installing SQL Server 2012 X64 SP2,
     When I installed the SQL Server 2012 X64 SP1, I got the attached error.
     What might be the issue here?
     Thank you
     Best
    Jamal

    Hello,
    Are you trying to install SQL Server on a compressed or encrypted drive? SQL Server won’t install on a drive/folder with these attributes.
    Are you trying to install SQL Server on a ReFS file system? It is not supported on SQL Server 2012.
    Disable any security/antivirus software and download the media again. Mount the media (.ISO file) and try to install again.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Unable to install sql server 2012 eval edition with the downloaded files

    Error which I get when i try to launch the installer 
    I  have downloaded them in a single folder 
    Note : windows os is win 7 with sp1
    Mudassar

    TITLE: Microsoft SQL Server 2012 Service Pack 1 Setup
    The following error has occurred:
    Unable to open Windows Installer file 'C:\Users\mabdu1\Downloads\SQLServer2012SP1-FullSlipstream-ENU-x64\x64\setup\sql_engine_core_inst_msi\sql_engine_core_inst.msi'.
    Windows Installer error message: The system cannot open the device or file specified.
    Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.
    For help, click: http://go.microsoft.com/fwlink?
    LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3000.0&EvtType=0xDC80C325
    BUTTONS:
    &Retry
    Cancel
    Now I am getting this error after I downloaded 2012 sp1 iso and extracted it to do the installation
    Mudassar

  • Unable to run sql server 2012 setup

    Hi All,
      I installed SharePoint 2013 on Application Server and Database(Sql Server 2012) on another server. But for reporting application I need to install some components of SQL on Application Server as well. When I try to run the installer it crashes and
    shows this below dialog box. 
    When I debug this I get the below error.
    I saw some suggestions saying it won't work with Remote Desktop so directly connected the monitor to the server and tried to install but nothing works again. Let me know if I am doing anything wrong.
    Thanks,

    Hi,
    Did you install the .net framework 4.0?
    Meanwhile, for the SQL issue, i think you may ask in SQL forums:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver
    Regards.
    Vivian Wang

  • Unable to install SQL Server 2012 Developer

    I have a problem with installing SQL Server 2012 (no matter which edition I choose). Installation usually runs well, but near the end shows up an error:
    TITLE: Microsoft SQL Server 2012 Service Pack 1 Setup
    The following error has occurred:
    Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
    For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%25400x4BDAF9BA%25401306%254026
    BUTTONS:
    OK
    The help link points to not-existing article on MSDN page. After I click OK button, the installation reaches it's end and shows up another, which tells, that Database Engine Services, Reporting Services - Native, Data Quality Services, Full-Text and Semantic
    Extractions for Search and SQL Server Replication failed to install.
    After that I am able to start, for example SQL Management Studio, but cannot connect to database. Also services of SQL Server (Server, Server Agent, Full-text Filter, Reporting Services) are stopped and I am not able to start them manually (any try throws an
    error: "The request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details").
    I tried complete reinstalling of SQL Server, cleaning registry entries, different editions of that software - none method helped. Also, I tried the .iso images of installation media on other computers - it worked well and installed without any errors. My OS
    is Windows 8.1 x64.

    Hello,
    Please uninstall SQL server completely from add remove program.Make sure you uninstall it completely
    Now right click on Setup.exe file which is there in SQL Server installable and select run as administrator to start installation.
    On page where you are asked to provide startup account for SQL Server service select NT Authority\System or Local System account.
    This issue is basically after installation SQL Server is not able to bring online database services using account which you selected .Local system account will allow it to come online
    After installation change startup account to domain account with least privilege
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Unable to uninstall sql server 2012 from Windows 7(ultimate) 64-bit SP1 version.

    I am trying to install sql sever 2012 on my m/c but it's giving me error after partial installation.
    Now I have successfully installed Sql Server 2008 R2 on my machine but when I am trying to uninstall 2012 sql server from my machine its giving an error regarding unsupported OS. However as mentioned earlier I have Windows 2007 Ultimate SP1 (64-bit) installed
    on my machine which is included in valid platform for sql server 2012. Also I installed visual studio 2013 on my machine but it existed with error SqlServer\LocalDB not installed.

    Hi pritamk,
    According to your error message, as other post, you can uninstall SQL Server from command line, inaddition, another workaround is that change the compatibility mode of setup.exe to Vista SP2, then run “Remove” option from the control panel. You can refer
    to the following steps.
    Browse to your SQL setup bootstrap folder, For SQL Server 2012, this is the path "C:\Program Files \Microsoft SQL Server\110\Setup Bootstrap\SQLServer2012\".
    Go to Setup.exe file and right click on Setup.exe. Then go to properties and click on "Compatibility" tab. Under "Compatibility mode", click on Run this program in compatibility mode for "Windows Vista (Service Pack 2)". Then Click on "Apply" then "OK".
    After that go to control panel -> Programs and Features -> and remove SQL Server 2012
    There is similar issue about uninstalling SQL Server 2012 RC0 from control panel. You can review the following post.
    https://connect.microsoft.com/SQLServer/feedback/details/707706/unable-to-uninstall-sql-server-2012-rc0-from-control-panel
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

Maybe you are looking for

  • Using an Iphone as a remote desktop

    Does anyone know of an application that will allow you to connect an iphone to a windows machine and use the iphone as a remote desktop unit. If I have to use a wireless router that is fine, I am not able to use internet as an option however. Thank y

  • Book Delivery Times

    How many days longer has anyone seen between express and standard delivery for books?

  • Appletx and hdmi to RCA cable?

    I don't have an HD TV and my input to my TV is an RCA three connector type. Can I connect my Appletv to my tv with a HD to RCA cable?

  • Unable to connect to iTunes Store using a 3G data card, but fine on wifi???

    I am unable to connect to the iTunes Store when making use of my 3G data card - serviced by the South African Service Provider MTN. A message pops up saying "iTunes cannot connect to the iTunes Store. Make sure your connection is active and try again

  • App Controller - SSO - Unknown user displayed on page

    I installed App controller on the VMM server (R2). Everything seems to be ok. Enabled SSO, now app controller does not know who the user is even though login is successful. It reads "Hi, Unknown user", instead of the user name Did I miss something in