Showing posts with label installer. Show all posts
Showing posts with label installer. Show all posts

Friday, March 30, 2012

Installing MSDE using VS.NET

Hi all,
I want to create setup/Installer project in Visual
Studio.NET 2003 that will detect MSDE. If MSDE already
installed then setup will not install MSDE , If not then
setup will install MSDE.
So please tell me have will i installed MSDE
using /Installer project in Visual Studio.NET 2003.
Thx in Advance
Amit
Hi Amit,
You can download MSDE toolkit, that is a plug-in to Microsoft Visual Studio
that automates the process of creating an integrated package with both the
application and the MSDE database, from
http://www.microsoft.com/downloads/d...403-c4ba-4d98-
bb0b-2c9d6414071f&DisplayLang=en
This toolkit will help you in customizing and designing a setup for MSDE
that can be integrated with your application.
HTH
Ashish
This posting is provided "AS IS" with no warranties, and confers no rights.
|||Thank you ashish great link. I installed on my system
working fine .
My next question is how i can add my database file in MSDE
using same VS.Net installer.
Amit

>--Original Message--
>Hi Amit,
>You can download MSDE toolkit, that is a plug-in to
Microsoft Visual Studio
>that automates the process of creating an integrated
package with both the
>application and the MSDE database, from
>http://www.microsoft.com/downloads/details.aspx?
FamilyID=6e9a7403-c4ba-4d98-
>bb0b-2c9d6414071f&DisplayLang=en
>
>This toolkit will help you in customizing and designing a
setup for MSDE
>that can be integrated with your application.
>HTH
>Ashish
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>.
>
|||Hi Amit,
You can go through the following technical article that helps in designing
classes for MSDE installation.
http://msdn.microsoft.com/library/de...us/dnmsde/html
/msdedepl.asp
According to that you can use the "AfterInstall" event to add the database
to the MSDE server.
According to my understanding, you will have to include the database files
in your setup and extract it to the desired location, and then execute the
"attachdb" function or the sp_attach_db stored procedure from the object.
HTH
Ashish
This posting is provided "AS IS" with no warranties, and confers no rights.
|||Hi Ashish,
Thank you my installation nightmare is over.
But i have still one problem.
I am using trusted connection to connect my web site with
MSDE database.
In command line i use
osql -S myserver\Instancename -E connected successfully.
while connecting with my website it will give following
error.
"Login failed for user "servername\ASPNET"
i also use SQL connection in which i provide user id and
password but the result is same an error occurs.
"Login failed for user "sa". Reason: Not associated with
trusted SQL server Connection"
please tell me where i am wrong.
Thanks
Amit

>--Original Message--
>Hi Amit,
>You can go through the following technical article that
helps in designing
>classes for MSDE installation.
>http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnmsde/html
>/msdedepl.asp
>
>According to that you can use the "AfterInstall" event to
add the database
>to the MSDE server.
>According to my understanding, you will have to include
the database files
>in your setup and extract it to the desired location, and
then execute the
>"attachdb" function or the sp_attach_db stored procedure
from the object.
>HTH
>Ashish
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>.
>
|||Hi Amit,
The user servername\ASPNET is the default user name that the ASP.NET process
runs as within the operating system. It is configured in the machine.config
file. By default, it has no access to your databases.
You have three basic options:
1. Grant appropriate database access to the ASPNET user.
2. Use impersonation on the site - configured in your web.config file (ie
impersonate the windows user that the end user is connecting as - not great
for public sites of any type)
3. Have your application log on as a specific user and grant that user
access to the database.
HTH,
Greg Low (MVP)
MSDE Manager SQL Tools
www.whitebearconsulting.com
"Amit" <anonymous@.discussions.microsoft.com> wrote in message
news:213c01c42794$69f54020$a101280a@.phx.gbl...[vbcol=seagreen]
> Hi Ashish,
> Thank you my installation nightmare is over.
> But i have still one problem.
> I am using trusted connection to connect my web site with
> MSDE database.
> In command line i use
> osql -S myserver\Instancename -E connected successfully.
> while connecting with my website it will give following
> error.
> "Login failed for user "servername\ASPNET"
> i also use SQL connection in which i provide user id and
> password but the result is same an error occurs.
> "Login failed for user "sa". Reason: Not associated with
> trusted SQL server Connection"
>
> please tell me where i am wrong.
>
> Thanks
> Amit
>
> helps in designing
> url=/library/en-us/dnmsde/html
> add the database
> the database files
> then execute the
> from the object.
> confers no rights.
sql

Friday, March 23, 2012

Installing 2005 or not . . .

Hi,

What is the installer checking for when it determines that components have been found on the machine ?

If it is the Registry, what keys does it use ?

Cheers

The easiest would be to do an install and see what happens.

Go to www.sysinternals.com and look around, there's lots of utilities there that could help you figure what's happening on your machine when software is being installed, files read, registry modified etc.

/Kenneth

Wednesday, March 21, 2012

Installin sqlserver 2005 error

I get the following error message when I install sqlserver 2005.

TITLE: Microsoft SQL Server 2005 Setup

The installer has encountered an unexpected error. The error code is 2380. Error opening file for write: 5. GetLastError: SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=2380&EvtType=sqlca%5csqlsecurityca.cpp%40Do_sqlGroup%40Do_sqlGroup%40x5


BUTTONS:

&Retry
Cancel

Anybody got an idea?

Thanks

Hi ttfo,

Are you remotely installing SQLExpress? If so please see this article:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;896613
You cannot connect to Visual Studio SQL Server Express on a remote Windows XP Service Pack 2-based computer

HTH

Jeremy

|||

Jeremy,

Thanks for the reply.

I am not remotely installing.

ttfo

|||does the directory have write permission?|||

ahmedilyas,

Not sure which directory it is trying to update.

Thanks,

Tony

|||

Hi Tony,

Thanks for the update.


TITLE: Microsoft SQL Server 2005 Setup

The installer has encountered an unexpected error. The error code is 2380. Error opening file for write: 5. GetLastError: SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=2380&EvtType=sqlca%5csqlsecurityca.cpp%40Do_sqlGroup%40Do_sqlGroup%40x5


1. Regarding the error message when you install sqlserver 2005. Can you confirm the following points, cheers:
a. Operating System? (XP?)

b. OS Service Pack level? (SP2?)

c. What flavour of SQL? (Express?)

c. Is this a second instance of SQL or the default one thats failing? (first based on the registry key error?)

d. Have you logged on as local administrator, cleared the temp directory, copied the files onto to the C:\ and tried to install from harddisk?


2. Should you continue to experience problems with this machine, is it possible to test with another PC or rebuild the problematic one?


I've encountered this issue on one PC, yet I was able to install SQL Express successfully on another PC via RDP at the same site but not on another PC that was producing the error your seeing. To cut a long story short, we got onsite staff to reboot the (WinXP SP2) Pc and it started showing symptoms seen in this KB article:

http://support.microsoft.com/default.aspx?scid=KB;EN-US;826955
"Virus alert about the Blaster worm and its variants"

3. If you can NOT get another PC to rule-out virus, hardware, media &/or etc related issues as the root cause and would like to pursue troubleshooting.. Can you please run FileMon & RegMon traces (and provide the SQL SETUP LOGS) on the PC while your installing SQL?

Based on the error message, the problem stems from "Error opening file for write: 5." and the API for GetLastError reports a Registry key is to blame: "GetLastError: SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup." - hence the FileMon and Regmon traces are needed to aid troubleshooting,


To get a FileMon & RegMon traces

goto www.SysInternals.com (I believe the company and its tools were recently purchased by Microsoft - Mark Russinovich and Bruce Cogwell)

Search for FileMon/Regmon
Scroll to bottom of pages
Download the Programs

0. Remote in as Admin and clear the Temp directory.

1. Save Filemon and Regmon to the PC
2. Get ready to start the SQL Express install
3. Launch open Filemon and Regmon. - To start with I recommend stopping the traces and clearing the logs (with tool bar buttons) because when you launch open the programs they quickly start tracing out Disk and Registry Activity
4. When you get very close to the problem occurring start FileMon/RegMon together - tracing out all the activity in real-time.
5. After you encounter the problem, stop the FileMon/Regmon traces
6. Zip up ALL the traces INCLUDING ALL THE SQL SETUP LOGS YOU CAN FIND - hehe and also RUN THE "mps reports" -sql flavour, on the pc - and post them online!!

Regarding the error messages link: setup.rll 2380 error, try looking in your application event log for the events leading up to the problem and cross reference them with www.EventID.net

HTH

PS the tip to analysing these Regmon/FileMon files is (off the top of my head) > Excel > Data menu > Filter item > Auto Filter item. Then select the combobox with Success, Path not found > and set it to DEVICE DATA ERROR or ACCESS DENIED & hunt down those leads!!

|||

Thanks for the reply, although I am a little late in responding. I ended up formating the disk and starting over. It worked ok then.

Thansk for the help.

|||

Thanks for the update Tony,

Good move reformatting the HDD... as your dont want a production system thats potentially been corrupted.

Cheers,

Jeremy

Installer for an SQL database?

Hi I have a .NET web application that embedd crystal reports and some third
party dlls and this interfaces with a Microsoft SQL 2000 dbase. The dbase
contains several tables with constraints and key relationships as well as
many stored procedures. Just wondering if there is a way to use Installsheild
to automatically install the database on a new server for deployment. I have
used the built in .NET web deploy wizard that creates an MSI file (windows
starter file) that can be run from the server.
Thanks.
Paul G
Software engineer.
Paul wrote:
> Hi I have a .NET web application that embedd crystal reports and some
> third party dlls and this interfaces with a Microsoft SQL 2000 dbase.
> The dbase contains several tables with constraints and key
> relationships as well as many stored procedures. Just wondering if
> there is a way to use Installsheild to automatically install the
> database on a new server for deployment. I have used the built in
> .NET web deploy wizard that creates an MSI file (windows starter
> file) that can be run from the server.
> Thanks.
Do you need to create the database as well? If so, I would build this
into an application and make sure to provide all the details for
database creation that are available for SQL Server. Or you can give
users the standard specs for the database and have them create it
manually. In either case, if the database is available from your
installer, you can launch your utility to allow connection to the
database and then send all the DDL scripts to the database to create the
objects and possibly data. You could also use OSQL from the command-line
to send SQL statements. They key here is whether you need to create the
database.
David Gugick
Imceda Software
www.imceda.com
sql

Installer for an SQL database?

Hi I have a .NET web application that embedd crystal reports and some third
party dlls and this interfaces with a Microsoft SQL 2000 dbase. The dbase
contains several tables with constraints and key relationships as well as
many stored procedures. Just wondering if there is a way to use Installsheil
d
to automatically install the database on a new server for deployment. I have
used the built in .NET web deploy wizard that creates an MSI file (windows
starter file) that can be run from the server.
Thanks.
Paul G
Software engineer.Paul wrote:
> Hi I have a .NET web application that embedd crystal reports and some
> third party dlls and this interfaces with a Microsoft SQL 2000 dbase.
> The dbase contains several tables with constraints and key
> relationships as well as many stored procedures. Just wondering if
> there is a way to use Installsheild to automatically install the
> database on a new server for deployment. I have used the built in
> .NET web deploy wizard that creates an MSI file (windows starter
> file) that can be run from the server.
> Thanks.
Do you need to create the database as well? If so, I would build this
into an application and make sure to provide all the details for
database creation that are available for SQL Server. Or you can give
users the standard specs for the database and have them create it
manually. In either case, if the database is available from your
installer, you can launch your utility to allow connection to the
database and then send all the DDL scripts to the database to create the
objects and possibly data. You could also use OSQL from the command-line
to send SQL statements. They key here is whether you need to create the
database.
David Gugick
Imceda Software
www.imceda.com

Installer for an SQL database?

Hi I have a .NET web application that embedd crystal reports and some third
party dlls and this interfaces with a Microsoft SQL 2000 dbase. The dbase
contains several tables with constraints and key relationships as well as
many stored procedures. Just wondering if there is a way to use Installsheild
to automatically install the database on a new server for deployment. I have
used the built in .NET web deploy wizard that creates an MSI file (windows
starter file) that can be run from the server.
Thanks.
--
Paul G
Software engineer.Paul wrote:
> Hi I have a .NET web application that embedd crystal reports and some
> third party dlls and this interfaces with a Microsoft SQL 2000 dbase.
> The dbase contains several tables with constraints and key
> relationships as well as many stored procedures. Just wondering if
> there is a way to use Installsheild to automatically install the
> database on a new server for deployment. I have used the built in
> .NET web deploy wizard that creates an MSI file (windows starter
> file) that can be run from the server.
> Thanks.
Do you need to create the database as well? If so, I would build this
into an application and make sure to provide all the details for
database creation that are available for SQL Server. Or you can give
users the standard specs for the database and have them create it
manually. In either case, if the database is available from your
installer, you can launch your utility to allow connection to the
database and then send all the DDL scripts to the database to create the
objects and possibly data. You could also use OSQL from the command-line
to send SQL statements. They key here is whether you need to create the
database.
--
David Gugick
Imceda Software
www.imceda.com

Installer confused about Sql Version

I'm installing RS on a server that currently has MSDE for several
applications. I've installed Sql Server 2000 on the box for the purpose of RS
but the installer keeps telling me I'm using the wrong version. Not sure what
to do?Are you trying to install RS to use MSDE? If so RS is not supported on
MSDE. If not, please explain your issue more clearly.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"Joshua Belden" <JoshuaBelden@.discussions.microsoft.com> wrote in message
news:E8F23E0A-75A9-44A0-BFB2-1336239E3D64@.microsoft.com...
> I'm installing RS on a server that currently has MSDE for several
> applications. I've installed Sql Server 2000 on the box for the purpose of
> RS
> but the installer keeps telling me I'm using the wrong version. Not sure
> what
> to do?|||The installer asks for the instance of the SQL Server that the report
database will be installed to, I select the instance that is SQL 2000 and
receive the message:
aww...
Okay, after reading the message, it says I have the wrong version of SQL
2000. I thought the Developer edition was legit?
"Daniel Reib [MSFT]" wrote:
> Are you trying to install RS to use MSDE? If so RS is not supported on
> MSDE. If not, please explain your issue more clearly.
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Joshua Belden" <JoshuaBelden@.discussions.microsoft.com> wrote in message
> news:E8F23E0A-75A9-44A0-BFB2-1336239E3D64@.microsoft.com...
> > I'm installing RS on a server that currently has MSDE for several
> > applications. I've installed Sql Server 2000 on the box for the purpose of
> > RS
> > but the installer keeps telling me I'm using the wrong version. Not sure
> > what
> > to do?
>
>|||Okay, Sql 2000 Developer edition is valid, and in fact is the same version as
another server that's running RS, Version 8.00.760 (SP3)
"Daniel Reib [MSFT]" wrote:
> Are you trying to install RS to use MSDE? If so RS is not supported on
> MSDE. If not, please explain your issue more clearly.
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Joshua Belden" <JoshuaBelden@.discussions.microsoft.com> wrote in message
> news:E8F23E0A-75A9-44A0-BFB2-1336239E3D64@.microsoft.com...
> > I'm installing RS on a server that currently has MSDE for several
> > applications. I've installed Sql Server 2000 on the box for the purpose of
> > RS
> > but the installer keeps telling me I'm using the wrong version. Not sure
> > what
> > to do?
>
>|||grrr, this is frustrating.
I've uninstalled all MSDE databases. I have only SQL 2000 Developer and it
still says: "This edition of the Report Server Database is not supported on
the edition of SQL Server 2000 you have chosen. Please choose another SQL
Server that matches the requirements.
So where does the installer go to check what the current version is. Perhaps
my database instance is screwed. Is there a way to change the Sql 2000
instance name?
"Daniel Reib [MSFT]" wrote:
> Are you trying to install RS to use MSDE? If so RS is not supported on
> MSDE. If not, please explain your issue more clearly.
> --
> -Daniel
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Joshua Belden" <JoshuaBelden@.discussions.microsoft.com> wrote in message
> news:E8F23E0A-75A9-44A0-BFB2-1336239E3D64@.microsoft.com...
> > I'm installing RS on a server that currently has MSDE for several
> > applications. I've installed Sql Server 2000 on the box for the purpose of
> > RS
> > but the installer keeps telling me I'm using the wrong version. Not sure
> > what
> > to do?
>
>|||What version of SQL RS do you have? You can only install dev or eval
version of RS on the Dev edition of SQL 2000. Please refer to the following
article on editions supported by RS:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsinstall/htm/gs_installingrs_v1_8jom.asp
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"Joshua Belden" <JoshuaBelden@.discussions.microsoft.com> wrote in message
news:27865F62-6827-4D65-BAAD-05CC53975AA5@.microsoft.com...
> grrr, this is frustrating.
> I've uninstalled all MSDE databases. I have only SQL 2000 Developer and it
> still says: "This edition of the Report Server Database is not supported
> on
> the edition of SQL Server 2000 you have chosen. Please choose another SQL
> Server that matches the requirements.
> So where does the installer go to check what the current version is.
> Perhaps
> my database instance is screwed. Is there a way to change the Sql 2000
> instance name?
> "Daniel Reib [MSFT]" wrote:
>> Are you trying to install RS to use MSDE? If so RS is not supported on
>> MSDE. If not, please explain your issue more clearly.
>> --
>> -Daniel
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Joshua Belden" <JoshuaBelden@.discussions.microsoft.com> wrote in message
>> news:E8F23E0A-75A9-44A0-BFB2-1336239E3D64@.microsoft.com...
>> > I'm installing RS on a server that currently has MSDE for several
>> > applications. I've installed Sql Server 2000 on the box for the purpose
>> > of
>> > RS
>> > but the installer keeps telling me I'm using the wrong version. Not
>> > sure
>> > what
>> > to do?
>>

Monday, March 19, 2012

Installation support for XP SP2

When I try to install SQL Server 2005 on my computer (Windows XP with SP2) I get a warning from the installer telling me that my operating system is not supported, this is the warning I get.

- SQL Server Edition Operating System Compatibility (Warning)
Messages
SQL Server Edition Operating System Compatibility

Some components of this edition of SQL Server are not supported on this operating system. For details, see 'Hardware and Software Requirements for Installing SQL Server 2005' in Microsoft SQL Server Books Online.

now I'm not able to install SQL Server itself, just the client components, does any one know a solution to this? thanks.
SQL Server Enterprise edition is not supported on Windows XP. You either need to change to a different edition (all other editions are supported on XP) or move to a different OS (like Windows 2003).|||

i installed sql 2005 enterprise edition on windows xp pro ,sp2 .

but it doesn't find any servers on my system,what should i do so?

|||

The servers from SQL Server 2005 Enterprise Edition can only be installed onto a Server OS (Windows 2000 SP4 Server, or W2k3 SP1 Enterprise) and cannot be installed onto Windows XP.

You may be able to install the Tools from Enterprise Edition onto XP, but that is it. You can install Developer Edition to XP if so desired...

-Jeffrey