OLEDB Interface To Multiple SQL Server Versions?

Mar 4, 2008

Howdy Folks!

I just finished an OLEDB interface written in VS2005 C++ that works with Sql Server Compact Edition 3.1. My team now wants me to make my interface compatible with Sql Server 2000, 2005, and 2005 Express. My question is...what header/lib files do I need installed and in my stdafx.h to pull this off? Is there a particular order I need to include these files in?

Right now I'm just including the following for SSCE:


#include <ssceerr30.h>

#include <ssceoledb30.h>


Once I get the right includes figured out, the next step is figuring out what CLSID's I should use in the CoCreateInstance call. I *think* I'm supposed to use CLSID_SQLOLEDB for 2000, CLSID_SQLNCLI for 2005, and I haven't a clue for 2005 Express. I could use some clarification on this as well.

Thanks a ton in advance...I've always been impressed by the MSDN boards...

View 6 Replies


ADVERTISEMENT

Supporting Different Versions Of MS Access Using OLEDB

Aug 30, 2006

I have a WinForms C#.net application in which I export data to MDB files. To create the initial database I use this code:

public static bool CreateDatabase(string fullFilename) { bool succeeded = false; try { string newDB = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + fullFilename; Type objClassType = Type.GetTypeFromProgID("ADOX.Catalog"); if (objClassType != null) { object obj = Activator.CreateInstance(objClassType); // Create MDB file obj.GetType().InvokeMember("Create", System.Reflection.BindingFlags.InvokeMethod, null, obj, new object[]{"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + newDB + ";" }); succeeded = true; // Clean up System.Runtime.InteropServices.Marshal.ReleaseComObject(obj); obj = null; } } catch (Exception ex) { Tools.ShowMessage("Could not create database file: " + fullFilename + "" + ex.Message, "Database Creation Error"); } return succeeded; }


This works perfectly fine on my system. But I've learned from one client that such MDB files cannot be opened using MS Access '97. Why they're still using this old version is a great question but the customer is always right, right?!

Anyhow, I thought that I could just alter the number "4.0" to "3.5" or "3.0" but it doesn't work on my machine. I got to wondering though if it might work on a client's machine if they had that version of OLEDB data access components installed.

So I'm wondering how I can programmatically test for which version(s) of OLEDB are available to use?

Robert Werner
http://PocketPollster.com
Vancouver, BC, Canada

View 5 Replies View Related

Using Multiple Versions Of SQL Server In A Replication Topology

Nov 24, 2006

Hi there,

I have one publicacion on ms sql 2005 Enterprise w.sp1/MS Windows 2003 Enterprise w.sp2 and one subscriber on MS sql 2005 Enterprise w.sp1/MS Windows 2003 w.sp2, but I have also 3 subscriber on MS SQL 2000 w.sp3/MS Windows 2000 advanced server w.sp4. They replicate the same database with a publication compatible with 80RTM, All works fine with data replication, but I can't replicate DDL to MS sql 2005 suscriber, I don't care that don't replicate DDL, but I want manually alter triggers at MS sql 2005 suscriber, but I get this error at the subscriber on when I run the ALTER TRIGGER statement :

Msg 21531, Level 16, State 1, Procedure sp_MSmerge_altertrigger, Line 67

The DDL statement cannot be performed at the Subscriber or Republisher.

Msg 21530, Level 16, State 1, Procedure sp_MSmerge_ddldispatcher, Line 181

The DDL operation failed inside merge DDL replication manipulation.

Msg 3609, Level 16, State 2, Procedure TU_Centros_Distribucion_Articulos, Line 58

The transaction ended in the trigger. The batch has been aborted.



Any help will be appreciated,



PD. I miss sql2000 replication, where I have full control over the database logic

View 14 Replies View Related

Multiple SQL Server Native Client Versions

Nov 24, 2006

One of the big problems with the old MDAC was different versions on different client machines. You would test your app with the latest version say, but when you deployed it, it might fail as the client has a different version.

My company develops software for Municipal Government clients. These clients use other SQL Server applications as well as ours, but they can only use one version of the client software (MDAC) on a given desktop. That means if we require a particular MDAC version, but the clients other applications from other vendors don't officially support that MDAC version, the client is in a real jam.

Our software also supports Oracle, which allows our software to specify a particular Oracle Home which points to a directory with a particular version of the Oracle client dlls (along with corresponding registry entries for that Oracle Home), such that we control the exact client version of the Oracle software that the client uses with our applications. This will not interfere with, and is completely seperate, from the default Oracle home installed when you install the Oracle client software.

What I would like to see for the Native Client is the ability to have our applications use the version of the Native Client that we wish to support and deploy without interfering with the Native Client version used by other applications. Have a default Native Client, but allow applications to somehow specify a different Native Client version/set of DLLs.

Is there any such functionality with the Native Client? (I didn't see any mention of such in the documentation, but I thought I'd ask)

If not, are there any future plans to support multiple Native Client versions on the same desktop?

View 1 Replies View Related

Multiple Versions Of SQL Server 2005 - What Order To Install?

Jun 15, 2007

I currently have three SQL Server instances installed on my notebook. One is v8, which I believe is used by an accounting application. The other two are as follows:-

SQL Server MSSMLBIZ

SQL Server SQLEXPRESS



The second one (SQLEXPRESS) fails to start generating the following error:-

The SQL Server (SQLEXPRESS) service terminated with service-specific error 17058 (0x42A2).



Other services listed in SQL Server Configuration Manager are:-

SQL Server Integration Services - which runs apparently normally.

SQL Server Analysis Services (MSSQLSERVER)

SQL Server Reporting Services (MSSQLSERVER)

SQL Server Browser



The last thre of these are run under LocalSystem.



I have been trying to install the SQLServer SP2 to the SQLEXPRESS instance for some number of days now, but each time it runs, it fails to install.



I am beginning to wonder if there is a sequence of installation for each of the above instances that should be followed. Can anyone give me any suggestions, or answers to the above problems?



Thanks,

View 3 Replies View Related

Multiple Versions

May 12, 2000

Has anyone ever attempted to run 6.5 & 7.0 from the same server?

View 1 Replies View Related

Do I Need Multiple Versions Of Northwind?

Dec 13, 2006

I am learning SQL Server 2005 Express, and want to use the Northwind data base as used in many code examples. I wanted to attach the Northwind data base via SQL Management Studio, but cannot find a Northwind.mdf file.

When I do a search using 'Northwind', I see there are already a couple of different versions of Northwind already loaded. One appears to be associated with SQL Server Mobile Edition (Samples folder) and another seems to be associated with Visual Studio 8SDKv2.0Quickstart.

Can I use one of these existing Northwind databases (none have .mdf extention) for SQL Server 2005 or do I need to download yet another version?

View 3 Replies View Related

Multiple Sql Versions On The Same Machine?

Feb 25, 2008

I have sql server 2000 developer, sql server 2005 (workgroup, standard and enterprise), express and compact 3.5
and i need to test 2000, 2005 express and a full version of 2005 and compact all on the same machine.

Has anyone done something like this and are there any issues with this?
i have seen some threads about 2000 and 2005 being fine as long as one is a default instance and one is a named instance. Would i be able to do the same with say express being the default instance and then 2000 and 2005 both having named instances? And is there a particular order i should install? I already have 2005 express as the default instance and compact installed already.

Thank you
Jeff

View 5 Replies View Related

Multiple DB Versions / Intermittent Connection

Apr 11, 2012

I'm working on a DB that will be used in separate physical locations. These DBs will be identical in structure and completely independent of each other. Whilst some tables will retain similar or identical information, there is a large amount of content that will diverge.However, there is a central location that will need to manage these DBs. There will be a requirement from this central location to run reports, often comparing data between them, and to push data into each child location. There is no requirement for the child locations to 'share' information and indeed the volume concerned and the intermittent/low-bandwidth nature of their connections would make this undesirable. If an individual selection of data does need to be shared between I'm happy for it to be uploaded centrally, a decision made, and manually pushed to each child-location.

Which brings me to my real question. Should I try and include composite Primary Keys in many of the tables (to include probably an incrementing number and another field of site ID) so that when I absorb them all back centrally I can put them into one large DB. Or should I keep them as separate DBs in the central location and use some fairly 'normal' mechanisms for mirroring to sites; accepting that this will make running comparisons between them more difficult and potentially more difficult to write interactivity for centrally?

The best 'real world' comparison I can think of is transactions in retail shops. How do these transaction logs get stored centrally when they're all generating individual transaction numbers that are only unique in that location?

View 1 Replies View Related

Multiple Step OLEDB Error

Apr 2, 2007

The error message is

-2147217887 - Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.



View 1 Replies View Related

Different Versions Of MS SQL Server

Sep 23, 2005

Hi all...
I'm a MySQL user and I want to switch to MS SQL Server, I heared that there is more than one type of MS SQL Server and one or two can be downloaded for free. Can someone tell me the different types of MS SQL Server and where can I download those free versions?

View 5 Replies View Related

Different Versions Of SQL On One Server

Sep 25, 2007

Hi,

Our server has SQL Server 2003 installed, I'd like to use SQL Server Express 2005 as I'm about to try and learn ASP.NET and most tutorials use that.

Will installing Express 2005 conflict with the Server 2003? Can both version be run on one server?

Thanks.

View 3 Replies View Related

Two Versions Of Sql On One Server?

Oct 25, 2006

Is it possible to run both SQL200 standard and SQL2005 Express on thesame server? I need to test a database created in 2005 on ourproduction server but don't want to upgrade our "live" databases yet.

View 2 Replies View Related

Reading Multiple Worksheets From A Spreadsheet With A Single OLEDB Connection Manager(Excel).

Oct 4, 2007



Hi all,

Any idea about how to configure/read multiple worksheets from a spreadsheet using single connection manager?
I think using SQL Command we could able to do - not sure how to achieve that. Let me know the other alternatives too.

Thank you for any help

- Chennoju


View 13 Replies View Related

Integration Services :: Audit Logging In Table With Multiple OLEDB Destination And Command

Jun 5, 2015

In my package there are 10 DFT.

Each DFT have source > Tranformation > Conditionsplit > Rowcount_Transformation  >   Oledb Command
                                                                                
> Rowcount_Transformation1 >  Oledb Command1
                                                                                
> Rowcount_Transformation2 >  Oledb Command2
                                                                                
> Rowcount_Transformation3 >  Oledb Command3

All update hapend on diffrent Table.I want to log in Audit table .

My audit table like

Table_Name   Insert_count  Update_count

How can I log the package having multiple OLEDB Destination.

View 7 Replies View Related

SQL Server - Differente Versions

Jan 28, 2008

Hi
If i develop a web application with sql server developement edition, it works fine in my webserver, or my webserver has to have the sql server development too?
I'm interested in sql server report services. if i develop a web application with this tool what kind of version of sql server has to be installed in my webserver?
Thank you

View 2 Replies View Related

MS SQL Server Vs. Run Time Versions Of Other DBs

May 13, 2002

I know this is a very basic question for all of you but I need help.

I am a CPA working with a client to select an accounting & project management software for a construction client. In the top 5 choices, there are 2 that require MS SQL Server as the DB. This client will have about 10-20 users, including project managers & accounting personnel but by DB standards transaction volumes will be low. The company has a few large projects. There is no inhouse IT staff; network administration is outsourced.

The question on the table is this? How much more difficult is it to use MS SQL server in this environment? If all of the client's requirements can be met using a run-time version of Sybase, Pervasive, or FoxPro, isn't this the simplest solution. I don't want to recommend an elephant if it is not needed. I would appreciate your opinion....Thanks

View 2 Replies View Related

Replication Between Different Versions Of SQL Server

Jul 20, 2005

Hello,We are trying to set up replication between different versions of SQLServer (7 & 2000).This is how the 2 servers are now setup:DB1 - External web-server w/SQL Server 7DB2 - Internal server w/SQL Server 2000REPLICATION SETUPThis is how we need the replication to be set up. They are allTransactional Replications.DISTRIBUTION:This is set up on DB2, which is running on 2000WITH PUBLISHERS ON DB1, AND PULL SUBSCRIPTIONS ON DB2:dbo.Employment_App & dbo.Employ_Jobs (together in one replication)dbo.FeedbackNOTE: This set of replications work some of the time, but make DB1 &DB2 very slow when running. A lot of times, the jobs say "RetryingJob", but they usually will eventually work.WITH PUBLISHERS AND PUSH SUBSCRIPTIONS ON DB2:dbo.Jobsdbo.Releasesdbo.SearchNOTE: This set of replications used to work when DB1 & DB2 both ran onSQL Server 7 with 2000 Enterprise Manager's. But since we moved thedata to an internal server (DB2) that runs on 2000, it doesn't work atall.We've researched the problem, and found an article by MS called"Replication Between Different Versions of SQL Server" athttp://msdn.microsoft.com/library/d...plimpl_4joy.aspthat states that this setup should be possible (on Combination 3 forTransactional Replications).But it's not working at all. Are there some steps that we need tocheck to have replication setup between 2 servers running on differentversions of SQL Server (7 & 2000)? Any & all help & advice isappreciated. Thanks.KWilliams

View 1 Replies View Related

Differences Between SQL Server Versions

Jul 20, 2005

Hello,I've got installed Win 2003 SBS Premium with the SQL Server 2000 on a servermachine. It works almost fine, except the application which uses the SQLServer. The main part of the application runs (since the last update) fine,but other tools of that application (database import and the databasemanager for check and rebuild) doesn't. They hang up or kill the database.Our software developer says that these problems are in correlation with theserver os. But there won't be any problem if we install Win 2000 Server andadd an additional SQL Server 2000.Finally my question is: Are there any differences between the SQL Server2000 Versions, which are sold (a) as a single product, (b) as part of theWin 2003 SBS Premium package and (c) as part of other Server versions?Thanks in Advance,Martin

View 6 Replies View Related

Difference Between The Versions Of SQL Server

Jun 22, 2006

Do you find that there is a big difference between the different
versions of SQL server (6.5, 7, 2000, 2005) as is between Microsoft
programming languages (VB.4, VB5, VB6, .Net and now .Net 2)
Or is the difference in SQL server minimal and very small compared to the programming languages I mentioned.
Thanks a lot

View 3 Replies View Related

SQL Server 200 Developer Vs Enterprise Versions

Aug 11, 2006

I am having some problems in the process of moving an Access back-endto an SQL Server back-end. Everything works but there are severeproblems of response times when the number of users builds up.At present we are using the Developer version before committing to theEnterprise version. BOL (quoted below) seems to suggest that, apartfrom licensing, they are the same.Can anyone please confirm that this is so. If not, what is thedifference?I may explain in another topic the problems I am facing but I firstwish to be clear on this particular question.---------------------------------------------------------------------------------------------------------------Quote from BOLMicrosoft® SQL Server™ 2000 is available in these editions:SQL Server 2000 Enterprise EditionUsed as a production database server. Supports all features availablein SQL Server 2000, and scales to the performance levels required tosupport the largest Web sites and enterprise online transactionprocessing (OLTP) and data warehousing systems.SQL Server 2000 Developer EditionUsed by programmers developing applications that use SQL Server 2000 astheir data store. Although the Developer Edition supports all thefeatures of the Enterprise Edition that allow developers to write andtest applications that can use the features, the Developer Edition islicensed for use only as a development and test system, not aproduction server.

View 5 Replies View Related

Sql Server 2005 Enterprise Versions

Apr 26, 2006

Hi,

I would like to know what are the differences between these versions:







SQL Svr Enterprise Edtn 2005 Win32 English MVL

SQL Svr Enterprise Edtn 2005 Win32 English MVL 1 Processor License

SQL Svr Enterprise Edtn Win32 English Lic/SA Pack MVL

SQL Svr Enterprise Edtn Win32 English Lic/SA Pack MVL 1 Processor License

SQL Svr Enterprise Edtn Win32 English Lic/SA Pack MVL Comp Promo

SQL Svr Enterprise Edtn Win32 English SA MVL

SQL Svr Enterprise Edtn Win32 English SA MVL 1 Processor License

SQL Svr Enterprise Edtn Win32 English SA Step Up MVL

SQL Svr Enterprise Edtn Win32 English SA Step Up MVL 1 Processor License



Regards



Ayzan

View 1 Replies View Related

Both Versions Of SQL Server In A Clustered Environment

Oct 4, 2007



I am looking at combining / consolidating some of our servers and was wondering if I can install SQL 2000 and SQL 2005 in a clustered Environment on a san.
Cheers
Angie

View 6 Replies View Related

Features Not Supported In Future SQL Server Versions

Nov 29, 2007

Books online "Deprecated Database Engine Features in SQL Server 2005" makes references to "Features not supported in Future SQL Server versions".

http://msdn2.microsoft.com/en-us/library/ms143729.aspx

Will there be an Upgrade Advisor available to help us identify issues with our code any time soon or should we start building our own?

View 3 Replies View Related

SQL Server Compact/Mobile Edition Versions

Mar 12, 2007

I am confused about the version numbers for SQL Server Compact/Mobile. It _looks_ like the versions went from CE 2.0 to Mobile 2005 to CE 3.0 (or 3.1). Is this correct? In fact, I found one location the specifically said Compact Edition is the next version of Mobile. In another location I saw Compact Edition referred to as 2005 CE.

This has got me going because I am creating a Mobile/CE app and I keep getting a "Initialize SQL Server Reconciler" and the best information I can find indicates a mismatch between the server component and the client component.

So, what are the current versions of Mobile/CE? Is there a location that lists all of the components and what version they should be?

Thanks.

Chris Mecum

View 5 Replies View Related

SQL Server Admin 2014 :: Transactional Replication With Different Versions

May 17, 2015

We have installed 2014 sql server. We have currently 2008r2. We have to run the real time report. So we need to set up transactional replication b/n those two servers. We need to use 2008r2 as publisher and 2014 as subscriber.

Is it ok to have subscriber higher version than the publisher?

View 6 Replies View Related

Installing SQL Server Express And Full Versions On The Same Machine

Jun 14, 2007

Simple question, is it doable?

I tried once before and my machine was messed up.

Thanks

View 3 Replies View Related

Direct Interface To SQL Server

Dec 4, 2007

I did a little bit of looking in the forums for something like this, but I wasn't able to find anything.  In essence, I am looking to create a web form in ASP.NET which will emulate the SQL Server Query Analyzer Tool... eventually what I'd like to see:
- A dropdown of different connection strings, to connect to different databases
-A multi-line textbox where a user could type in a query (be it a SELECT, CREATE, UPDATE, or multiple queries at once)
-A gridview object for results
-A multiline textbox to contain server output ("the command completed successfully", "xxx rows returned", "syntax at line 3 not recognized", etc)
 I can do the first 3 without any difficulty, but I have absolutely no idea where to start with the server output.  Anyone have any ideas?  It does not need to be secure, as the only databases they'll have access to will be "test" databases and the pages will not be publicly hosted (LAN only)

View 2 Replies View Related

Web Interface For Managing SQL Server

Jun 11, 2001

Hi all

Does any one know abt the web interface for managing SQL SERVER
I would like to create database,create tables create users, modify, insert data etc.. over the web

i belive there are interfaces are available on the net

can any body tell me from where i can download it

Thanks in advance

Prasad

View 2 Replies View Related

What Is The Best Visual Interface To SQL Server?

Feb 15, 2001

HELP!!! I've looked at a few, but none of them support insert and update. I hate to say it, but the Access inteface is better, but uses a different SQL than SQL Server. :(

Help,
mike

View 3 Replies View Related

MS Access Interface With MS SQL Server

Dec 17, 2004

I am getting "writing conflict" or "Update or Cancel Update Without AddNew or Edit" errors even though there is nobody else updating the same record. I use Access Form as interface, the DBMS is MS SQL Server 2000 Standart Edition. I did not write any code for the form and its AllowEdits property is set to Yes.

Can anybody tell me what is the problem and how I can fix it?

Thanks... :

View 10 Replies View Related

Interface For SQL Server Database

Jun 2, 2006

Comments and ideas for software tools (ActiveX components)to make a user interface for database.

View 3 Replies View Related

Sql Server Wait Interface?

Jul 20, 2005

Oracle has a 'wait interface' for monitoring bottlenecks, etc... does SQLServer have utilities like this?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved