Showing posts with label express. Show all posts
Showing posts with label express. Show all posts

Tuesday, March 27, 2012

Database space available error

i am getting incorrect value while trying to retrieve space available ina database using sql dmo..

i am using sql server express 2005

Hard to help you without knowing the code you are using. Please post it here in order to help you. What are you getting back, what are you expecting ? Why are you expecting this value and not the actual presented by DMO ?


Jens K. Suessmeyer.

http://www.sqlserver2005.de

|||

databaseobject->get_spaceavailable(&space);

when i check this value with original value .ie. value known by opening database management is diferent

Sunday, March 25, 2012

Database size limit

SQL Server 2005 Express has a limit of 4 GB for database size, while the
other editions do not have a limit. See the complete feature comparison
chart here:
http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx
HTH,
Plamen Ratchev
http://www.SQLStudio.com
Yes, Express has some artificial limits. If that weren't the case, then no-one would pay for the
product.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Alan T" <alanNOSPAMpltse@.yahoo.com.au> wrote in message
news:OPRViiozHHA.4004@.TK2MSFTNGP05.phx.gbl...
> So the database engine of SQL Server 2005 Express and SQL server 2005 are
> different?
> "Plamen Ratchev" <Plamen@.SQLStudio.com> wrote in message
> news:ezOp1DmzHHA.4652@.TK2MSFTNGP05.phx.gbl...
>

Database size limit

What is the differences between SQL server 2005 Express and SQl Server 2005?
What would be the database size limit of these 2?SQL Server 2005 Express has a limit of 4 GB for database size, while the
other editions do not have a limit. See the complete feature comparison
chart here:
http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx
HTH,
Plamen Ratchev
http://www.SQLStudio.com|||So the database engine of SQL Server 2005 Express and SQL server 2005 are
different?
"Plamen Ratchev" <Plamen@.SQLStudio.com> wrote in message
news:ezOp1DmzHHA.4652@.TK2MSFTNGP05.phx.gbl...
> SQL Server 2005 Express has a limit of 4 GB for database size, while the
> other editions do not have a limit. See the complete feature comparison
> chart here:
> http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx
> HTH,
> Plamen Ratchev
> http://www.SQLStudio.com
>|||Yes, Express has some artificial limits. If that weren't the case, then no-one would pay for the
product.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Alan T" <alanNOSPAMpltse@.yahoo.com.au> wrote in message
news:OPRViiozHHA.4004@.TK2MSFTNGP05.phx.gbl...
> So the database engine of SQL Server 2005 Express and SQL server 2005 are
> different?
> "Plamen Ratchev" <Plamen@.SQLStudio.com> wrote in message
> news:ezOp1DmzHHA.4652@.TK2MSFTNGP05.phx.gbl...
>> SQL Server 2005 Express has a limit of 4 GB for database size, while the
>> other editions do not have a limit. See the complete feature comparison
>> chart here:
>> http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx
>> HTH,
>> Plamen Ratchev
>> http://www.SQLStudio.com
>>
>|||I see.
MS pose that limit on express edition.
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:B35D9F2D-7E3B-4868-A4E5-476FF3523CE2@.microsoft.com...
> Yes, Express has some artificial limits. If that weren't the case, then
no-one would pay for the
> product.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Alan T" <alanNOSPAMpltse@.yahoo.com.au> wrote in message
> news:OPRViiozHHA.4004@.TK2MSFTNGP05.phx.gbl...
> > So the database engine of SQL Server 2005 Express and SQL server 2005
are
> > different?
> >
> > "Plamen Ratchev" <Plamen@.SQLStudio.com> wrote in message
> > news:ezOp1DmzHHA.4652@.TK2MSFTNGP05.phx.gbl...
> >> SQL Server 2005 Express has a limit of 4 GB for database size, while
the
> >> other editions do not have a limit. See the complete feature comparison
> >> chart here:
> >> http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx
> >>
> >> HTH,
> >>
> >> Plamen Ratchev
> >> http://www.SQLStudio.com
> >>
> >>
> >
> >
>sql

Database size limit

What is the differences between SQL server 2005 Express and SQl Server 2005?
What would be the database size limit of these 2?SQL Server 2005 Express has a limit of 4 GB for database size, while the
other editions do not have a limit. See the complete feature comparison
chart here:
http://www.microsoft.com/sql/prodin...e-features.mspx
HTH,
Plamen Ratchev
http://www.SQLStudio.com|||So the database engine of SQL Server 2005 Express and SQL server 2005 are
different?
"Plamen Ratchev" <Plamen@.SQLStudio.com> wrote in message
news:ezOp1DmzHHA.4652@.TK2MSFTNGP05.phx.gbl...
> SQL Server 2005 Express has a limit of 4 GB for database size, while the
> other editions do not have a limit. See the complete feature comparison
> chart here:
> http://www.microsoft.com/sql/prodin...e-features.mspx
> HTH,
> Plamen Ratchev
> http://www.SQLStudio.com
>|||Yes, Express has some artificial limits. If that weren't the case, then no-o
ne would pay for the
product.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Alan T" <alanNOSPAMpltse@.yahoo.com.au> wrote in message
news:OPRViiozHHA.4004@.TK2MSFTNGP05.phx.gbl...
> So the database engine of SQL Server 2005 Express and SQL server 2005 are
> different?
> "Plamen Ratchev" <Plamen@.SQLStudio.com> wrote in message
> news:ezOp1DmzHHA.4652@.TK2MSFTNGP05.phx.gbl...
>|||I see.
MS pose that limit on express edition.
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:B35D9F2D-7E3B-4868-A4E5-476FF3523CE2@.microsoft.com...
> Yes, Express has some artificial limits. If that weren't the case, then
no-one would pay for the
> product.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Alan T" <alanNOSPAMpltse@.yahoo.com.au> wrote in message
> news:OPRViiozHHA.4004@.TK2MSFTNGP05.phx.gbl...
are[vbcol=seagreen]
the[vbcol=seagreen]
>

Database size for SQL Server 2000 Personal Edition ?

Is there any database size limit for SQL Server 2000 Personal Edition ? Is
it 2GB ?
Also, is there any database size limit for SQL Server 2005 Express ?
From end user point of view, is there any difference between SQL Server 2000
and SQL Server 2005 Express ? Is it possible to get SQL Server 2005 Express
on CD ROM instead of downloading from the Web ?
Your advice is sought.
ThanksPeter
> Is there any database size limit for SQL Server 2000 Personal Edition ?
> Is it 2GB ?
No, it is limited by the disk's capacity

> Also, is there any database size limit for SQL Server 2005 Express ?
Yes, 4GB

> From end user point of view, is there any difference between SQL Server
> 2000 and SQL Server 2005 Express ? Is it possible to get SQL Server 2005
> Express on CD ROM instead of downloading from the Web ?
SQL Server 2005 Express is coming along with VS2005 installation.
You can download SQL Server 2005 Express and burn out to DVD /CD... .
"Peter" <Peter@.discussions.microsoft.com> wrote in message
news:esv3UGi4GHA.3396@.TK2MSFTNGP04.phx.gbl...
> Is there any database size limit for SQL Server 2000 Personal Edition ?
> Is it 2GB ?
> Also, is there any database size limit for SQL Server 2005 Express ?
> From end user point of view, is there any difference between SQL Server
> 2000 and SQL Server 2005 Express ? Is it possible to get SQL Server 2005
> Express on CD ROM instead of downloading from the Web ?
> Your advice is sought.
> Thanks
>|||Dear Uri,
Thank you for your advice.
Peter
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:%234uAmOj4GHA.4196@.TK2MSFTNGP05.phx.gbl...
> Peter
> No, it is limited by the disk's capacity
>
> Yes, 4GB
>
> SQL Server 2005 Express is coming along with VS2005 installation.
> You can download SQL Server 2005 Express and burn out to DVD /CD... .
>
> "Peter" <Peter@.discussions.microsoft.com> wrote in message
> news:esv3UGi4GHA.3396@.TK2MSFTNGP04.phx.gbl...
>sql

Database size for SQL Server 2000 Personal Edition ?

Is there any database size limit for SQL Server 2000 Personal Edition ? Is
it 2GB ?
Also, is there any database size limit for SQL Server 2005 Express ?
From end user point of view, is there any difference between SQL Server 2000
and SQL Server 2005 Express ? Is it possible to get SQL Server 2005 Express
on CD ROM instead of downloading from the Web ?
Your advice is sought.
Thanks
Peter
> Is there any database size limit for SQL Server 2000 Personal Edition ?
> Is it 2GB ?
No, it is limited by the disk's capacity

> Also, is there any database size limit for SQL Server 2005 Express ?
Yes, 4GB

> From end user point of view, is there any difference between SQL Server
> 2000 and SQL Server 2005 Express ? Is it possible to get SQL Server 2005
> Express on CD ROM instead of downloading from the Web ?
SQL Server 2005 Express is coming along with VS2005 installation.
You can download SQL Server 2005 Express and burn out to DVD /CD... .
"Peter" <Peter@.discussions.microsoft.com> wrote in message
news:esv3UGi4GHA.3396@.TK2MSFTNGP04.phx.gbl...
> Is there any database size limit for SQL Server 2000 Personal Edition ?
> Is it 2GB ?
> Also, is there any database size limit for SQL Server 2005 Express ?
> From end user point of view, is there any difference between SQL Server
> 2000 and SQL Server 2005 Express ? Is it possible to get SQL Server 2005
> Express on CD ROM instead of downloading from the Web ?
> Your advice is sought.
> Thanks
>
|||Dear Uri,
Thank you for your advice.
Peter
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:%234uAmOj4GHA.4196@.TK2MSFTNGP05.phx.gbl...
> Peter
> No, it is limited by the disk's capacity
>
> Yes, 4GB
>
> SQL Server 2005 Express is coming along with VS2005 installation.
> You can download SQL Server 2005 Express and burn out to DVD /CD... .
>
> "Peter" <Peter@.discussions.microsoft.com> wrote in message
> news:esv3UGi4GHA.3396@.TK2MSFTNGP04.phx.gbl...
>

Thursday, March 22, 2012

Database size

I would like to ask if 4 GB (maximum for SQL Server 2005 Express edition ) of database size means size of data file + log file size

Thanks

It is datafile size only.

http://technet.microsoft.com/en-us/library/ms345154.aspx - check Engine Specifications


HTH!

Database size

Hi, i'm using SQL Server 2005 Express Edition with advance services. Created a small database with 21 tables and 66 simple stored procedures. The database should not take up huge data in a short period of time. However, when i right click and check out the Database Properties, i noticed that the database size has grown to 1700 MB and available space is only about 0.9 MB. But when i locate the respective .mdf and .ldf file file, the file size of mdf is only about 4000KB and ldf file is about 1,650,000 KB.

I understand that SQL Server Express Edition allows up to 4GB of data file for each database created. But i'm puzzled and would like to know what is actually meant by the databse size and available space that i see via Database Properties. It seems worrying. Can anyone guide me? Thx in advance.

It sounds like your database is running in Full Recovery Model, and your transaction log (the ldf file) is growing. If so, you need to periodically back up your transaction log, which will allow it to release space internally. Then you will need to shrink the transaction log file to get the space back externally.

If you are running in Simple Recovery Model, then you may have a problem with an open transaction.

Wednesday, March 7, 2012

database replication

Hi, newbie here.
I have an sql express database on my local machine (xp sp2) with many tables populated with plenty of data.
How can i duplicate/replicate this database?
Seems like it should be a straight forward thing, but i guess not.

Thanks!
-GarySQL Express can only subscribe to a replication, it can't publish I'm afraid.

Sunday, February 19, 2012

Database question

Hello

I am using visual Basic 2005 express.

The program I am working on uses a database called DMGCollectionDatabase.mdf which will be held locally on the computer the program is installed on

When I publish my program as a cddvd install I get a setup file some other files and in the datasets folder I get a DMGCollectionDatabase.mdf.deploy file

if i install this program on a different computer than the one I used to build it it saves all the database information somewhere no clue where. what I need to be able to do is get the program to write to the DMGCollectionDatabase.mdf database so users can save this file with there information the dmg database will become portable my whole issue is how do I make this happen (I read one post that mentioned just using the .exe file and the database file in a folder this currently gives me an error)

If anyone could please assist me in this problem I would be greatly appriciative I am sorry if I seem a bit slow I am a self learner with visual Basic 2005 express I am about 3 months into things using vb2005 step by step and online help as references.

Hi Warren,

The issue is that SQL Server doesn't care what the *.mdf/*.ldf files are called, and by themselves, these files are worthless (unlike MSAccess)

What your setup will need to do is:

1. Verify that the target has a version of SQL Server installed

2. Create the DMGCollectionDatabase if it doens't already exist on the target sql instance, using the *.mdf & *.ldf file you mentioned. You do this via the sp_attach_db procedure. So, if your setup deploys the DMGCollectionDatabase.mdf and DMGCollectionDatabase.ldf file to C:\SomeApp\DMGCollectionDatabase.mdf, you would issue the following command on the target sql server instance:

exec sp_attach_db @.dbname = 'DMGCollectionDatabase', @.filename1 = 'C:\SomeApp\DMGCollectionDatabase.mdf', @.filename2 = 'C:\SomeApp\DMGCollectionDatabase.ldf'

And away you go...

Cheers,

Rob

|||

When I put this code into my formmain load "exec" gives me a declaration expected.

I placed the code above the first public class

|||

Hi Warren,

The code exec sp_attach_db @.dbname = 'DMGCollectionDatabase', @.filename1 = 'C:\SomeApp\DMGCollectionDatabase.mdf', @.filename2 = 'C:\SomeApp\DMGCollectionDatabase.ldf' is executing an SQL Server stored procedure - it needs to be executed against an sql server instance. Most setup/deployment tools allow you to shell a command, but if you're trying to do this from within VB, then you can execute the command in the context of a valid ado connection obejct, use dmo/smo or shell the command via osql.exe:

osql -E -i "exec sp_attach... etc"

For all available switches, have a look at osql in BOL. If you're using SQL2005, you should use the sqlcmd utility instead.

Cheers,

Rob

Tuesday, February 14, 2012

Database owner change

Hello,

I'm using tableadapters in VWD 2005 Express to link our ASP.NET application to a SQL Server 2000 database. Initially, I used Database Explorer to drop tables into the DataSet object, which picks up the owner of the tables from the database.

Recently, we had to change the owner of all objects in the database, including tables and stored procedures. When we run our application it chokes on stored procedures because the owner of the SP's has changed.

My question is: how can I update tables and tableadapters in the DataSet to reflect the change in owner, without having to recreate everything in DataSet?

Confused

We resolved this.