Showing posts with label edition. Show all posts
Showing posts with label edition. Show all posts

Wednesday, March 28, 2012

Problems with SQL Server

I have installed SQL Server 2005 and Visual Studio 2005 (release edition)- since I have SQL Server, I didn't install SQL Server Express - didn't figure I'd need it.

I have created a Web Project and added an App_Data directory.

Whenever I try to add a SQL database to the directory, I get the following message:

--------
Microsoft Visual Studio
--------
Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly. Please verify the installation of the component or download from the URL: http://go.microsoft.com/fwlink/?LinkId=49251
--------
OK Help
--------

How can I get VS to work with the SQL Server installation instead of Express?

Use the server explorer pane, or set the database up in Management Studio.

Tuesday, March 20, 2012

Problems with MS OLE DB Provider for IBM DB2

Hi,

I am using MS SQL Server Developer's Edition.
I have downloaded the MS OLE DB Provider for IBM DB2.


However, when I am trying to create a connection to the IBM DB2 source in my SSIS Package, I am getting the following error:

Code Snippet

TITLE: Connection Manager

Test connection failed because of an error in initializing provider. The parameter is incorrect.


Any idea as to what could be the problem with this?

Thanks and Regards,
B@.ns

As I said in the other post 'ibm db2 as datasource': you still need the IBM client-access software to access the IBM DB2 databases. The Microsoft db2 provider is only a layer on top of that.|||

AVNIP,

Are you trying to connect to IBM DB on AS/400?

If yes, I can provide you the detailed steps how to configure the MS OLE DB provider for DB2

Regards,

Yitzhak

|||

Jan DHondt wrote:

As I said in the other post 'ibm db2 as datasource': you still need the IBM client-access software to access the IBM DB2 databases. The Microsoft db2 provider is only a layer on top of that.

I don't believe this is true. It isn't like the Oracle driver.|||

Phil is absolutely right.

Single MS OLE DB provider for DB2 supports multiple platforms:

- DB2/6000

- DB2/AS400

- DB2/MVS

- DB2/NT

The provider doesn't need anything else installed to work properly.

Regards,

Yitzhak

|||

Phil,

I have been using ibm iseries db2 and you need a client licence before the server will give you access. so it is a lot like Oracle. I had installed microsoft provider for db2 and connections did not work. I installed ibm series client and it did work with the microsoft provider after that. I think the server side checks if you have a valid licence to connect.

Maybe IBM licencing system is different on the servers that I have to work with.

|||

Jan DHondt wrote:

Phil,

I have been using ibm iseries db2 and you need a client licence before the server will give you access. so it is a lot like Oracle. I had installed microsoft provider for db2 and connections did not work. I installed ibm series client and it did work with the microsoft provider after that. I think the server side checks if you have a valid licence to connect.

so it is probably like Oracle.

We don't have the DB2 drivers installed on our servers and the Microsoft DB2 for OLE DB drivers work fine.|||

The Microsoft OLE DB Provider for DB2 is based on technology available in Microsoft Host Integration Server 2006.

That's why it is self-sufficient and doesn't need anything else to be installed to work.

It just needs the following (directlt from the readme file):

"...The Microsoft OLE DB Provider for DB2 is for use exclusively with Microsoft SQL Server 2005 Enterprise Edition, Microsoft SQL Server 2005 Developer Edition and Microsoft SQL Server 2005 Evaluation Copy...."

Regards,

Yitzhak

Problems with log file size in SQL Server 2005

I've dealing with a newly created database in SQL Server 2005 Developer
Edition.
I'm having many trouble with the size of the log file. This database is
being used in a Merge Replication scenario and I'm currently creating,
deleting publications quite often. Initially I had autogrowth enabled
for the log file (initial size of 20 Mb), with 100 MBytes of maximum
size.
With this configuration, two hours ago, I deleted a publication and I
received this error:
The transaction log for database 'X is full. To find out why space in
the log cannot be reused, see the log_reuse_wait_desc column in
sys.databases
Changed database context to 'X'. (Microsoft SQL Server, Error: 9002)
I have now disabled autogrowth and have been able to delete the
publication, but I understand Merge Replication needs very much space
in the log file for all operations it performs.
Any advice or correct approach on this?
Thanks in advance.Hi
Do BACKUP LOG file as it described in the BOL
Read 'recovery [SQL Server replication]' topic in the BOL
"Lonifasiko" <mloichate@.gmail.com> wrote in message
news:1141651209.039661.101840@.j33g2000cwa.googlegroups.com...
> I've dealing with a newly created database in SQL Server 2005 Developer
> Edition.
> I'm having many trouble with the size of the log file. This database is
> being used in a Merge Replication scenario and I'm currently creating,
> deleting publications quite often. Initially I had autogrowth enabled
> for the log file (initial size of 20 Mb), with 100 MBytes of maximum
> size.
> With this configuration, two hours ago, I deleted a publication and I
> received this error:
> The transaction log for database 'X is full. To find out why space in
> the log cannot be reused, see the log_reuse_wait_desc column in
> sys.databases
> Changed database context to 'X'. (Microsoft SQL Server, Error: 9002)
> I have now disabled autogrowth and have been able to delete the
> publication, but I understand Merge Replication needs very much space
> in the log file for all operations it performs.
> Any advice or correct approach on this?
> Thanks in advance.
>|||I'll read it, but at a first glance, what is exactly what I should do?
A backup of the log file every 'X' minutes or something like this?
Thanks very much.|||I tried doing a backup of the log before attempting to change the
publication's properties. This is what I read from BOL section you
suggested me. And I still have the log file with autogrowth disabled.
I tried to delete the current publication and.......same error
appears, that log file cannot be reused. So finally, in order to start
the Merge Agent again, I have to enable autogrowth for the log file,
which I don't like at all.
I need a concrete solution for this urgently!|||Lonifasiko wrote:
> I tried doing a backup of the log before attempting to change the
> publication's properties. This is what I read from BOL section you
> suggested me. And I still have the log file with autogrowth disabled.
> I tried to delete the current publication and.......same error
> appears, that log file cannot be reused. So finally, in order to start
> the Merge Agent again, I have to enable autogrowth for the log file,
> which I don't like at all.
> I need a concrete solution for this urgently!
>
What's the problem in having autogrow enabled? If the logfile really
needs the space, it don't help you anywhere to disable the autogrow.
The only thing that can help you, is to backup the logfile (regularly)
like Uri suggested. When you backup the log, it will be truncated which
means you can re-use the space that's occupied by the data that has been
backed up.
If you have some long running transactions though, these can "prevent"
the backup command from freeing up the space and then the space will not
be freed up and the logfile will have to grow.
Regards
Steen|||Hi,
I now see the unique way is backing up the log file and enabling again
autogrowth.
I've done a manteinance plan that backs up my log file once a day. This
way the log file will be reused? In the wizard, there is no any options
that lets me say "truncate transaction log". And I suppose log file
will continue growing........
When I select the database and then "Back up..." in Management Studio,
the unique log backup I can do is manual. I cannot program it as a DTS
or similar.
Therefore, it's correct the idea of executing a manteinance plan
regularly to prevent log files from being full?
Can you point me in the right direction (exactly what I must do) please
when performing log backups?
Thanks in advance.|||Lonifasiko wrote:
> Hi,
> I now see the unique way is backing up the log file and enabling again
> autogrowth.
> I've done a manteinance plan that backs up my log file once a day. This
> way the log file will be reused? In the wizard, there is no any options
> that lets me say "truncate transaction log". And I suppose log file
> will continue growing........
> When I select the database and then "Back up..." in Management Studio,
> the unique log backup I can do is manual. I cannot program it as a DTS
> or similar.
> Therefore, it's correct the idea of executing a manteinance plan
> regularly to prevent log files from being full?
> Can you point me in the right direction (exactly what I must do) please
> when performing log backups?
> Thanks in advance.
>
I'm not using Maintenance Plans to backup my database and log files, so
I might not be the right to guide you on that. Instead of using a
maintenance plan though, you can write your on SQL statement that back
up the log (and database if you like) and then schedule this script to
run at a certain interval.
You can look up the syntax for backing up you database and log with SQL
in Books On Line.
The short version of the syntax is :
BACKUP LOG YourDatabaseName TO DISK ='The path to your backup
directory\YourBackupFileName.bak'
and
BACKUP DATABASE YourDatabaseName TO DISK ='The path to your backup
directory\YourBackupFileName.trn'
If you choose to backup using SQL, it might be a good idea to expand the
script to use a variable for the backupfilename so you can give it new
name every time you back it up -e.g. based on the date.
Regards
Steen|||OK, I think I'll try next days with the manteinance plan I've written.
If it does not work this way, I'll try with doing it by script.
Sorry to be so repetitive, but back to my worrying log file size:
having log file maximum size limited to 200 MBytes and backing up the
log file regularly, can you surely tell me log file size will never go
over 200 MBytes?
That's exactly what I need. Thanks very much.|||> having log file maximum size limited to 200 MBytes and backing up the
> log file regularly, can you surely tell me log file size will never go
> over 200 MBytes?
If you set max size to 200MB, then SQL Server will not autogrow to more than that. But max size
doesn't influence how the file can be recycled. If you have a large transaction or don't do log
backup often enough and have the size limited, then you will end up in error 9002 any time you do a
modification and the log file is full.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Lonifasiko" <mloichate@.gmail.com> wrote in message
news:1141806712.812195.315820@.j52g2000cwj.googlegroups.com...
> OK, I think I'll try next days with the manteinance plan I've written.
> If it does not work this way, I'll try with doing it by script.
> Sorry to be so repetitive, but back to my worrying log file size:
> having log file maximum size limited to 200 MBytes and backing up the
> log file regularly, can you surely tell me log file size will never go
> over 200 MBytes?
> That's exactly what I need. Thanks very much.
>

Monday, March 12, 2012

Problems with installing SQL Server 2005 Developer Edition

Hi,

I downloaded SQL Server 2005 Developer Edition (x86) via MSDNAA (the package conatins 2 cd images the download program CRC checked them and all. I'm trying to install it on Windows XP prof. sp2).

When I mount the first CD, the installation menu comes up, if from the Install menu I select

"Server components, tools, Books Online, and samples"

an error message pops up saying:

"The application or DLL D:\Setup\setupex.dll is not a valid Windows image. Please check this against your installation diskette."

When I press OK, it pops up again, then after clicking on OK one more time the Microsoft SQL Server 2005 Setup window comes up. After accepting the installation conditions and clicking next, it takes me to the "Installing Prerequisites" phrase, where when I press the Install button, it writes:

"Errors occured during the installation:

Error 193 installing .NET Framework 2.0"

Then the installation freezes, and I must press cancel (after that, the installation breaks saying: SQL Server Setup unexpectedly failed...)

If in the installation menu I choose

" Install SQL Server Upgrade Advisor"

or

" Run the SQL Native Client Installation Wizard"

a warning pops up saying:

"This installation package could not be opened.

Contact the application vendor to verify that this is a

valid Windows Installer package."

When I press OK, the warning disappeares, nothing happens.

I have .NET Framework 2.0, running VS2005 Prof. with no problem, had MS SQL Server 2005 Express Edition, but uninstalled it (never used), and just installed the latest MSI.

Searched the net for the "error 193" message, but haven't found anything that actually could help my case.

Thank you for your help.

You say you are mounting the installation CD, with what software are you mounting the CD/DVD image. Guess that if the DVD is CRC Check-ok there is a problem with your mounting software, not with the actual image.

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de
|||

Oh yes, I forgot to mention that I tried to burn the iso too. Used Damon Tools 4.0 for mounting and Magic ISO for burning. (burnt version gives the same errors)

|||I have exactly the same problem. Did you overcome this? I can't find any answers on the web.
I've downloaded the image several times, tried mounting using several different tools, and tried burning to disc but always the same error. Also tried repairing .net 2 framework.
|||Well, I also encountered the same problem. I mounted the iso image using Nero ImageDrive and it installed well. I think it has something to do with installation path.

So, try mounting your iso image and run the install again.

Problems with installing SQL Server 2005 Developer Edition

Hi,

I downloaded SQL Server 2005 Developer Edition (x86) via MSDNAA (the package conatins 2 cd images the download program CRC checked them and all. I'm trying to install it on Windows XP prof. sp2).

When I mount the first CD, the installation menu comes up, if from the Install menu I select

"Server components, tools, Books Online, and samples"

an error message pops up saying:

"The application or DLL D:\Setup\setupex.dll is not a valid Windows image. Please check this against your installation diskette."

When I press OK, it pops up again, then after clicking on OK one more time the Microsoft SQL Server 2005 Setup window comes up. After accepting the installation conditions and clicking next, it takes me to the "Installing Prerequisites" phrase, where when I press the Install button, it writes:

"Errors occured during the installation:

Error 193 installing .NET Framework 2.0"

Then the installation freezes, and I must press cancel (after that, the installation breaks saying: SQL Server Setup unexpectedly failed...)

If in the installation menu I choose

" Install SQL Server Upgrade Advisor"

or

" Run the SQL Native Client Installation Wizard"

a warning pops up saying:

"This installation package could not be opened.

Contact the application vendor to verify that this is a

valid Windows Installer package."

When I press OK, the warning disappeares, nothing happens.

I have .NET Framework 2.0, running VS2005 Prof. with no problem, had MS SQL Server 2005 Express Edition, but uninstalled it (never used), and just installed the latest MSI.

Searched the net for the "error 193" message, but haven't found anything that actually could help my case.

Thank you for your help.

You say you are mounting the installation CD, with what software are you mounting the CD/DVD image. Guess that if the DVD is CRC Check-ok there is a problem with your mounting software, not with the actual image.

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de
|||

Oh yes, I forgot to mention that I tried to burn the iso too. Used Damon Tools 4.0 for mounting and Magic ISO for burning. (burnt version gives the same errors)

|||I have exactly the same problem. Did you overcome this? I can't find any answers on the web.
I've downloaded the image several times, tried mounting using several different tools, and tried burning to disc but always the same error. Also tried repairing .net 2 framework.

Problems with installing SQL Server 2000

I am trying to install SQL Server 2000 from the MSDN DVDs on Windows Server 2003 Web Edition.

When I click on Install Database Server, the "Created with Demoshield" box comes up and then disappears. Nothing else happens. I have also tried to install by running from ENT\x86\SETUP\SETUPSQL.EXE. This gives me a message saying "Windows cannot open this program since it has been disabled".

I tried a Google search for that error message, and found two results, this at http://dbforums.com/arch/4/2003/9/925380 :

"hi,

Try installing as an administrator."

I am trying to install as an administrator.

The other was in German, but was only a list of error codes anyway.

Does anyone know how I can get this to work? I am supposed to have IIS6 up and running before my boss gets back on Monday, and I can't even get SQL installed, which is a prerequisite for IIS.

ANY help would be greatly appreciated.You are going to need Standard or Enterprise version of Windows 2003 Server... Web Edition is exactly that, a stripped down version for web server use, not for application server use (such as SQL Server)

http://www.microsoft.com/sql/evaluation/sysreqs/2000/default.asp

only thing you can run on the Web Edition is MSDE

also... SQL Server shouldn't be a prerequisite for IIS... unless you have an application that requires IIS AND SQL Server, it is not a requirement for IIS alone|||Thanks, I will do that.

Friday, March 9, 2012

Problems with ER in msde.

Hi, I have a database that was created on sql 2000 standard edition. The
system requiered to use remote servers so we decided to use msde.
Checking the information that is in the database we discover that there
is some information that is incorrectly.
For example, we have two tables: table1 and table1details, this has ER
defined between them but there is information that is on the
table1details that doesnt exists on table1.
This means that the ER is not working. We try to delete information in
QA but it wasn't posible.
Do somebody know if there is a problem with msde and ER created on the
database.
or do somebody know if ER is not respected when bulk insert data inserts
data into databases'
Thanks a lot for your help.
*** Sent via Developersdex http://www.examnotes.net ***Hi Maria
If the Foreign Key was created with the NOCHECK option existing data would
not be checked to see that it is valid
From BOL:
"WITH CHECK | WITH NOCHECK
Specifies whether the data in the table is or is not validated against a
newly added or re-enabled FOREIGN KEY or CHECK constraint. If not specified,
WITH CHECK is assumed for new constraints, and WITH NOCHECK is assumed for
re-enabled constraints.
If you do not want to verify new CHECK or FOREIGN KEY constraints against
existing data, use WITH NOCHECK. This is not recommended except in rare
cases. The new constraint will be evaluated in all future updates. Any
constraint violations suppressed by WITH NOCHECK when the constraint is adde
d
may cause future updates to fail if they update rows with data that does not
comply with the constraint.
Constraints defined WITH NOCHECK are not considered by the query optimizer.
These constraints are ignored until all such constraints are re-enabled usin
g
ALTER TABLE table CHECK CONSTRAINT ALL."
It is also possible to load data with BULK INSERT/BCP that ignores constrain
ts
From BOL:
"CHECK_CONSTRAINTS
Specifies that any constraints on table_name are checked during the bulk
copy operation. By default, constraints are ignored. Note that the MAX_ERROR
S
option does not apply to constraint checking."
HTH
John
"MariaGuzman" wrote:

> Hi, I have a database that was created on sql 2000 standard edition. The
> system requiered to use remote servers so we decided to use msde.
> Checking the information that is in the database we discover that there
> is some information that is incorrectly.
> For example, we have two tables: table1 and table1details, this has ER
> defined between them but there is information that is on the
> table1details that doesn4t exists on table1.
> This means that the ER is not working. We try to delete information in
> QA but it wasn't posible.
> Do somebody know if there is a problem with msde and ER created on the
> database.
> or do somebody know if ER is not respected when bulk insert data inserts
> data into databases'
> Thanks a lot for your help.
>
> *** Sent via Developersdex http://www.examnotes.net ***
>

Problems with Enterprise manager

Hallo,
I had SQL Server 2000 SP3 personal edition and its Enterprise manager
stopped working. When I'm trying to run Enterprise manager, I get error
"Microsoft Management Console has encountered a problem and needs to close.
We are sorry for the inconvenience." (More information about this error in
the end of this letter)
I tried to reinstall SQL server, but this didn't help.
Do you know what is the problem?
Thank you for your help
Vycka
========================
Information about error:
AppName: mmc.exe AppVer: 5.1.2600.2180 ModName: mmc.exe
ModVer: 5.1.2600.2180 Offset: 0001f07e
I get the same problem. Please let me know if you know a solution.
Thanks.
"Vycka" wrote:

> Hallo,
> I had SQL Server 2000 SP3 personal edition and its Enterprise manager
> stopped working. When I'm trying to run Enterprise manager, I get error
> "Microsoft Management Console has encountered a problem and needs to close.
> We are sorry for the inconvenience." (More information about this error in
> the end of this letter)
> I tried to reinstall SQL server, but this didn't help.
> Do you know what is the problem?
> Thank you for your help
> Vycka
> ========================
> Information about error:
> AppName: mmc.exe AppVer: 5.1.2600.2180 ModName: mmc.exe
> ModVer: 5.1.2600.2180 Offset: 0001f07e
>
>
|||Did anyone find a solution to this problem. I just started getting the
same error today. I'm only running the client tools on my machine.
Other MMC consoles(analysis services, query analyzer) work fine.
Thanks!
|||I have recently encountered this same error and I was able to fix it. It
happens to be an error with the MMC application data file for enterprise
manager in your user profile.
From windows explorer, browse to the "MMC" folder under C:\Documents and
Settings\[user_profile]\Applicaiton Data\Microsoft\ (This is a hidden folder
and to be able to view it you must show hidden files and folders in the
"Tools" --> "Folder Options" --> "View" settings). There should be a file
named "SQL Server Enterprise Manager". You can either delete or rename this
file (I prefer the latter). MMC will re-create this file the next time you
access Enterprise Manager and should then be working properly.

Problems with DTS in SQL 2005

Hi, I'm try to edit/run DTS packages against a SQL 2005 (developer edition)
database. I installed the download to support the DTS designer, but
occasionally the designer still prompts for the download and then (usually)
crashes.
Sometimes, however, it works fine -- sort of. In Bulk Insert task, I can't
get the task to recognize the .fmt file specified. The step fails and then
the format file name is changed in the step to the destination table name in
the step properties. It looks like DTS is ignoring the .fmt file and trying
to do the conversion itself. Weird.
Any help or appropriate KB articles would be appreciated.
Thanks,
Beige Bond
http://www.aspnetworkshop.com/
More detail on this: SQL 2005 seems to have a problem importing 2000 DTS
packages correctly in some situations. I think it depends on how they were
exported. I can get export/import to work but it takes a couple tries
sometimes.
The .fmt problem was just an error in the DTS. (oops)
"Beige Bond" <BeigeBond@.hotmail.com> wrote in message
news:%23j%23MK5UPGHA.3016@.tk2msftngp13.phx.gbl...
> Hi, I'm try to edit/run DTS packages against a SQL 2005 (developer
> edition) database. I installed the download to support the DTS designer,
> but occasionally the designer still prompts for the download and then
> (usually) crashes.
> Sometimes, however, it works fine -- sort of. In Bulk Insert task, I can't
> get the task to recognize the .fmt file specified. The step fails and then
> the format file name is changed in the step to the destination table name
> in the step properties. It looks like DTS is ignoring the .fmt file and
> trying to do the conversion itself. Weird.
> Any help or appropriate KB articles would be appreciated.
> Thanks,
> Beige Bond
> http://www.aspnetworkshop.com/
>

Wednesday, March 7, 2012

Problems with creating SQL server accounts with SQL express edition

I installed Visual Web Developer on my laptop running on Windows XP Professional (SP2). With this SQL server express edition too got installed. Then I installed SQL server management studio express to manage the databases

I used "windows authentication" to login the SQL server for the first time. Then I found sa password is already there. I was never given the opportunity to set this sa password during the installation. I tired to change it to my own password but I found that it's not accepting any changes.

Then I tired to create a SQL server account and try to login. I was not allowed. Then through MSDN I got to know that Express Edition does not support mixed mode authentication by default but I have to select that during the installation. But the problem is I was never given the opportunity to select this authentication mode during the install ion.

I tired changing the registry values ( set LoginMode to '2") as instructed in the MSDN to allowe mixed mode. Even after that still I'm not allowed to create sql server accounts with my own passwords. I'm allowed to create accounts but it doesn't allow me to set the password; every time I check it had replace the password I set to some unknown password which I cannot see due to masking.

Can anyone offer me some advice to understand what's happening?

aththidiyavidana:

I'm allowed to create accounts but it doesn't allow me to set the password; every time I check it had replace the password I set to some unknown password which I cannot see due to masking.

Sounds StrangeSurprise Make sure you've restarted the SQL Express instance after you modify the Authentication Mode.

Did you mean the password of new created account will be replaced by an unkown string?

How do you know (Did you get an error when try to login SQL Server with the account and password you just create, or you just find the length of the password seems to be changed)?

If yes, what's error message? Something like "Login failed for user 'test'. The user is not associated with a trusted SQL Server connection" or looks like "Login failed for user 'test'. (Microsoft SQL Server, Error: 18456"?

|||

Thanks for the reply.

I have found out the reason for not getting a chance to set 'sa' password during the installation; By default it avoids the advanced configuration options. We have to uncheck the option to get the extra dialog boxes to select authentication modes. I was able to reinstall SQL Serve express with this option uncheck and managed set my own sa password.

But I still don't know why I was not allowed to change the sa password set by the installation program during my first attempt. Each time I tired to reset this password it gave me the impression that changes are accepted because no error messages were thrown. But when I accessed the properties again after the changes I realized that 'sa' password I submit had not been accepted

I don't think this is an error or a bug. I think this is how it works…it won't let me access the server using SQL server accounts or set/reset my own SQL server account passwords if "mixed mode" is not selected during the installation

Thanks again for the reply

Saturday, February 25, 2012

Problems with adding database samples

I have installed the documentation and samples and the management studio for sql 2005 express edition, but when trying to work through the samples, I get this error message, for some reason I can't include the Adventure works db. Whatn I'm I not doing right? Please can someone help!


1> SELECT name from sys.databases
2> Go
name

--

master

tempdb

model

msdb


1> CREATE DATABASE [AdventureWorks] ON
2> (AdventureWorks = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\
< AdventureWorks>.mdf' ),
3> (AdventureWorks = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\
< AdventureWorks>.ldf' )
4> FOR ATTACH ;
5> GO
Msg 153, Level 15, State 1, Server YOUR-V7OY5L24PG\SQLEXPRESS, Line 2
Invalid usage of the option AdventureWorks in the CREATE/ALTER DATABASE statemen
t.
1> USE [master]
2> GO
Changed database context to 'master'.
1> CREATE DATABASE [AdventureWorks] ON
2> (AdventureWorks = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\
< AdventureWorks>.mdf' ),
3> (AdventureWorks = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\
< AdventureWorks>.ldf' )
4> FOR ATTACH ;
5> GO
Msg 153, Level 15, State 1, Server YOUR-V7OY5L24PG\SQLEXPRESS, Line 2
Invalid usage of the option AdventureWorks in the CREATE/ALTER DATABASE statemen
t.
1> select name from sys.databases
2> go
name

--

master

tempdb

model

msdb


(4 rows affected)
1>

Your create database statement is slightly wrong. If you look at the syntax it is

create database <dbname> ON (Name=<logical name for file>, filename='<filename>')

LOG ON (Name=<logical name for file>, filename='<filename>')

You have combined the logical name for file and filename and ommitted the name and filename keywords.

|||

I am trying to learn SQL 2005 and I am working throught the Microsoft SQL Server 2005 Implementation and Maintenance Training Kit.

I have partitoned out my hard-drive into several partitons.

C,G,H,I,J and K.

Created Sales_Data folders in G,H,I drives

I ran the following code in MSSM Studio:

CREATE DATABASE Sales
ON
PRIMARY
(NAME = 'G:\Sales_Data\SalesPrimary.mdf'
SIZE = 50MB,
MAXSIZE = 200,
FILEGROWTH = 20),
FILEGROUP SalesFG
( NAME = SalesData1,
FILENAME = 'H:\Sales_Data\SalesData1.ndf'
SIZE = 200MB,
MAXSIZE = 800,
FILEGROWTH = 100),
( NAME = SalesData2,
FILENAME = 'H:\Sales_Data\SalesData2.ndf'
SIZE = 400MB,
MAXSIZE = 1200,
FILEGROWTH = 300),
FILEGROUP SalesHistoryFG
( NAME = SalesHistory1,
FILENAME = 'H:\Sales_Data\SalesHistory1.ndf'
SIZE = 100MB
MAXSIZE = 500,
FILEGROWTH = 50)
LOG ON
(NAME = ArchLog1,
FILENAME = 'I:\Sales_Data\SalesLog.ldf',
SIZE = 300MB,
MAXSIZE = 800,
FILEGROWTH = 100)

I am getting the following error message:

Msg 153, Level 15, State 1, Line 5

Invalid usage of the option SIZE in the CREATE/ALTER DATABASE statement.

Any idea as to why it will not except the syntax for the size option? ny help will be greatly appreciated.

|||Just do a basic check. You miss comma before SIZE option.

CREATE DATABASE Sales
ON
PRIMARY
(NAME = 'G:\Sales_Data\SalesPrimary.mdf', <-Here
SIZE = 50MB,
MAXSIZE = 200,
FILEGROWTH = 20),
FILEGROUP SalesFG
( NAME = SalesData1,
FILENAME = 'H:\Sales_Data\SalesData1.ndf', <-Here
SIZE = 200MB,
MAXSIZE = 800,
FILEGROWTH = 100),
( NAME = SalesData2,
FILENAME = 'H:\Sales_Data\SalesData2.ndf', <--Here
SIZE = 400MB,
MAXSIZE = 1200,
FILEGROWTH = 300),
FILEGROUP SalesHistoryFG
( NAME = SalesHistory1,
FILENAME = 'H:\Sales_Data\SalesHistory1.ndf', <--Here
SIZE = 100MB, <--And here
MAXSIZE = 500,
FILEGROWTH = 50)
LOG ON
(NAME = ArchLog1,
FILENAME = 'I:\Sales_Data\SalesLog.ldf',
SIZE = 300MB,
MAXSIZE = 800,
FILEGROWTH = 100)


Thanks,
Zuomin

Problems with adding database samples

I have installed the documentation and samples and the management studio for sql 2005 express edition, but when trying to work through the samples, I get this error message, for some reason I can't include the Adventure works db. Whatn I'm I not doing right? Please can someone help!


1> SELECT name from sys.databases
2> Go
name

--

master

tempdb

model

msdb


1> CREATE DATABASE [AdventureWorks] ON
2> (AdventureWorks = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\
< AdventureWorks>.mdf' ),
3> (AdventureWorks = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\
< AdventureWorks>.ldf' )
4> FOR ATTACH ;
5> GO
Msg 153, Level 15, State 1, Server YOUR-V7OY5L24PG\SQLEXPRESS, Line 2
Invalid usage of the option AdventureWorks in the CREATE/ALTER DATABASE statemen
t.
1> USE [master]
2> GO
Changed database context to 'master'.
1> CREATE DATABASE [AdventureWorks] ON
2> (AdventureWorks = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\
< AdventureWorks>.mdf' ),
3> (AdventureWorks = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\
< AdventureWorks>.ldf' )
4> FOR ATTACH ;
5> GO
Msg 153, Level 15, State 1, Server YOUR-V7OY5L24PG\SQLEXPRESS, Line 2
Invalid usage of the option AdventureWorks in the CREATE/ALTER DATABASE statemen
t.
1> select name from sys.databases
2> go
name

--

master

tempdb

model

msdb


(4 rows affected)
1>

Your create database statement is slightly wrong. If you look at the syntax it is

create database <dbname> ON (Name=<logical name for file>, filename='<filename>')

LOG ON (Name=<logical name for file>, filename='<filename>')

You have combined the logical name for file and filename and ommitted the name and filename keywords.

Monday, February 20, 2012

Problems when installing Microsoft SQL Server 2005 Express Edition x86

Here are the error log:

[03/18/06,12:34:30] Microsoft SQL Server 2005 Express Edition x86: [2] Error code 1067 for this component means "进程意外终止。 " [03/18/06,12:34:30] Microsoft SQL Server 2005 Express Edition x86: [2] Component Microsoft SQL Server 2005 Express Edition x86 returned an unexpected value. [03/18/06,12:34:30] Microsoft SQL Server 2005 Express Edition x86: [2] Return from system messaging: 进程意外终止。 [03/18/06,12:34:41] VS70pgui: [2] DepCheck indicates Microsoft SQL Server 2005 Express Edition x86 is not installed. ***EndOfSession***[03/18/06,15:02:51] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InstallManagerHelper() with HRESULT -2147023293. [03/18/06,15:02:51] setup.exe: [2] Component error string not specified in ISetupManager::AddToActionResultCollection() ***EndOfSession***[03/18/06,16:02:50] Microsoft SQL Server 2005 Express Edition x86: [2] Error code 1067 for this component means "进程意外终止。 " [03/18/06,16:02:50] Microsoft SQL Server 2005 Express Edition x86: [2] Component Microsoft SQL Server 2005 Express Edition x86 returned an unexpected value. [03/18/06,16:02:50] Microsoft SQL Server 2005 Express Edition x86: [2] Return from system messaging: 进程意外终止。 ***EndOfSession***
I've tried the installation 3 times, but all failed.
My OS is Windows XP Home SP2 shipped with HP Pavilion PC. Could anyone give me some advice?
Thanks!
Could you post link which point to the full error log? We need this to further troubleshoot the issue.