472,810 Members | 4,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,810 software developers and data experts.

Simple way of telling if I'm using MSDE or full SQL Server?


I'm looking for a simple way of telling (inside a stored procedure) if I'm
currently using MSDE or a full SQL server. Ideally, there is some
pre-defined environment variable that won't cause me too much overhead. The
reason I'm doing this is because my system "rolls over" databases when it
reaches the 2Gb limit with MSDE, but obviously I want to avoid this overhead
if the user installs onto a full SQL server instance.

Thanks

Robin
Jul 23 '05 #1
5 3428
Hi Robin,

Use the SQL statement:

select @@version

if it is MSDE it should have "...Desktop Engine..." in the returned
string, as opposed to eg "...Standard Edition..." on a "Standard"
install. (check to see what yours returns)

Hope this helps!

Paul.

Jul 23 '05 #2
Robin,

There is no 2GB database size limit in MSDE. That's just a rumor. It
simply has less features and a query governor.

Danny
<p_**********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi Robin,

Use the SQL statement:

select @@version

if it is MSDE it should have "...Desktop Engine..." in the returned
string, as opposed to eg "...Standard Edition..." on a "Standard"
install. (check to see what yours returns)

Hope this helps!

Paul.

Jul 23 '05 #3
In article <Go*****************@newssvr17.news.prodigy.com> ,
is****@flash.net says...
Robin,

There is no 2GB database size limit in MSDE. That's just a rumor. It
simply has less features and a query governor.


Try again, directly from MS:
http://msdn.microsoft.com/library/de...l=/library/en-
us/replsql/replimpl_89cy.asp

The following limitations are MSDE 2000 limitations that can impact
replication:

* MSDE 2000 limits the size of the database to 2 gigabytes (GB). If MSDE
2000 is part of the replication topology, the size of the replicated
database is limited to 2 GB. If MSDE 2000 is the Subscriber, replication
agents fail after the database exceeds 2 GB. At that point, consider
upgrading the Subscriber to SQL Server Standard Edition.

* MSDE 2000 includes a workload governor, which starts slowing down the
database engine when more than eight operations are actively running at
the same time. The workload governor can affect replication performance.
In an active replication environment where there are a large number of
Subscribers, Microsoft recommends that you use either SQL Server
Standard Edition or Enterprise Edition as the Publisher or Distributor
instead of MSDE 2000.

http://msdn.microsoft.com/vstudio/do...examining.aspx

Q. How much data can MSDE 1.0 store?

A. MSDE 1.0 databases are limited to 2 gigabytes (GB) of data. This
limit is per database, and not per server, so a single MSDE server can
support multiple MSDE databases, each containing up to the 2 GB limit.
If you anticipate that your database is currently or will grow beyond 2
GB, consider upgrading to Microsoft SQL Server=3F 2000 Standard Edition
for a more scalable database platform on which to build.

--
--
sp*********@rrohio.com
(Remove 999 to reply to me)
Jul 23 '05 #4
Thanks for the tip :-p

"Leythos" <vo**@nowhere.org> wrote in message
news:MP************************@news-server.columbus.rr.com...
In article <Go*****************@newssvr17.news.prodigy.com> ,
is****@flash.net says...
Robin,

There is no 2GB database size limit in MSDE. That's just a rumor. It
simply has less features and a query governor.


Try again, directly from MS:
http://msdn.microsoft.com/library/de...l=/library/en-
us/replsql/replimpl_89cy.asp

The following limitations are MSDE 2000 limitations that can impact
replication:

* MSDE 2000 limits the size of the database to 2 gigabytes (GB). If MSDE
2000 is part of the replication topology, the size of the replicated
database is limited to 2 GB. If MSDE 2000 is the Subscriber, replication
agents fail after the database exceeds 2 GB. At that point, consider
upgrading the Subscriber to SQL Server Standard Edition.

* MSDE 2000 includes a workload governor, which starts slowing down the
database engine when more than eight operations are actively running at
the same time. The workload governor can affect replication performance.
In an active replication environment where there are a large number of
Subscribers, Microsoft recommends that you use either SQL Server
Standard Edition or Enterprise Edition as the Publisher or Distributor
instead of MSDE 2000.

http://msdn.microsoft.com/vstudio/do...examining.aspx

Q. How much data can MSDE 1.0 store?

A. MSDE 1.0 databases are limited to 2 gigabytes (GB) of data. This
limit is per database, and not per server, so a single MSDE server can
support multiple MSDE databases, each containing up to the 2 GB limit.
If you anticipate that your database is currently or will grow beyond 2
GB, consider upgrading to Microsoft SQL Server=3F 2000 Standard Edition
for a more scalable database platform on which to build.

--
--
sp*********@rrohio.com
(Remove 999 to reply to me)

Jul 23 '05 #5
Robin Tucker (id*************************@reallyidont.com) writes:
I'm looking for a simple way of telling (inside a stored procedure) if
I'm currently using MSDE or a full SQL server. Ideally, there is some
pre-defined environment variable that won't cause me too much overhead.
The reason I'm doing this is because my system "rolls over" databases
when it reaches the 2Gb limit with MSDE, but obviously I want to avoid
this overhead if the user installs onto a full SQL server instance.


This should cut it:

select serverproperty('Edition')
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Craig HB | last post by:
I have a distributed inventory control database that I am going to migrate from Access to SQL Server. I am going to use SQL Server Replication to keep the data current. There will one SQL Server...
5
by: Igor Solodovnikov | last post by:
Hi. I am trying to automatically backup transaction log when error 9002 happened. So i have created appropriate job and alert to catch this error. I have two instances of sql server under Windows...
3
by: bryja_klaudiusz[at]poczta[dot]fm | last post by:
Hi, How to automate database backup (MSDE server v8.0)? Is some free tool which can help on this or can I use some stored procedure? Plan: Complete - 1 per week Differential - 1 per day --...
1
by: JIMMIE WHITAKER | last post by:
Can MSDE be used on computer in different cities? Say the server in Dallas and the client computer in Houston. Or is the full SQL Server required?
0
by: reinier | last post by:
Hello MSDE'ers, First a happy newyear without to much problems, whatsoever! Sofar I am not able to create a SQLdatabase, on an other computer, using a simple network. I am using VB.NET v2003...
2
by: jinksk | last post by:
I am brand new to .NET. For that matter, so is my whole corporation, hence this dumb question. How can I set-up MSDE or SQL Server Desktop to work with VS.NET and the various development languages....
3
by: Paul Aspinall | last post by:
Hi I want to package my C# winforms app, to be deployed with MSDE, as easily as possible for the end user. I want to create an MSI or Installshield (prefer MSI), to setup my C# app, together...
8
by: 1qa2ws | last post by:
Hi, who can use MSDE 2000? If I develope an application with C# having MS Visual C# .NET 2003 Standard which uses SQL Server, can I distribute my application with MSDE? 1qa2sw
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.