Showing posts with label process. Show all posts
Showing posts with label process. Show all posts

Friday, March 30, 2012

Install programming is terrible

I use SQL server 2005 for a year now at work and home.
The intsall process and logic is TERRIBLE compared to previuos versions.

The most common problem I get on developers machines is when they are using EXpress and then upgrade to the Developer or Enterprise edition.

Sql Server 2005 Express database instances get left in the registry or somewhere, and the next install sees it and refuses to install its instance.

The ARPWrapper.exe. tool in the boot strap can be run and you can see the instance there, but they is NO POSSIBLE WAY to remove it..

I have been woring on this for 2 days and really hoping someone has a fix for this.
I have tried the variosu registry HACS out there on the net, but no luck still.

I noticed that a huge proportion of the bogs in this formum relate to problmes around this issue and setup in general.

gedw99Here is the ouput form the ARWrapper.exe tool:

Its shows the express version, I cant get rid of the bugger, and its stopping me installing a default instance for the enterprise edition.
I am using the Developer server of SQL server in a x86 machine.
Any ideas? HELP !

The following components are installed on this server

MSSQLSERVER
Database Engine
[Version: 9.1.2047.00 Edition: Express Edition Patch level: 9.1.2047 Language: English (United States)]

Common components
Workstation Components
[Version: 9.1.2047.00 Edition: Enterprise Edition Patch level: 9.1.2047 Language: English (United States)]|||

Starting out a thread by using a title like this is probably not going to attract very many people to even answer the thread.

I have Express Edition along with Developer Edition on dozens of machines. Sometimes Express was installed first and sometimes Developer Edition was installed first. Not once have I ever had a problem with a blocked installation.

As for this one, stating the obvious, why don't you just install a named instance? Does it really matter whether it is a default instance or a named instance? You have to connect to the SQL Server anyway and that means specifying the SQL Server name, so whether you type in the machine name or machine\instance seems pretty irrelevant to me.

Wednesday, March 21, 2012

Install Error - please see log.

Thank you very much any advice about.

Rick X.

Microsoft SQL Server 2005 Setup beginning at Wed Jun 21 15:09:29 2006

Process ID : 1760

h:\fc886af35059928dd687f3a141\setup.exe Version: 2005.90.2047.0

Running: LoadResourcesAction at: 2006/5/21 15:7:27

Complete: LoadResourcesAction at: 2006/5/21 15:7:27, returned true

Running: ParseBootstrapOptionsAction at: 2006/5/21 15:7:27

Loaded DLL:h:\fc886af35059928dd687f3a141\xmlrw.dll Version:2.0.3609.0

Complete: ParseBootstrapOptionsAction at: 2006/5/21 15:9:28, returned false

Error: Action "ParseBootstrapOptionsAction" failed during execution. Error information reported during run:

Could not parse command line due to datastore exception.

Source File Name: utillib\persisthelpers.cpp

Compiler Timestamp: Wed Oct 26 16:38:20 2005

Function Name: writeEncryptedString

Source Line Number: 124

-

writeEncryptedString() failed

Source File Name: utillib\persisthelpers.cpp

Compiler Timestamp: Wed Oct 26 16:38:20 2005

Function Name: writeEncryptedString

Source Line Number: 123

-

Error Code: 0x800706b5 (1717)

Windows Error Text: Interface desconhecida. Source File Name: cryptohelper\cryptsameusersamemachine.cpp

Compiler Timestamp: Wed Oct 26 16:37:25 2005

Function Name: sqls::CryptSameUserSameMachine::ProtectData

Source Line Number: 50

1717

Could not skip Component update due to datastore exception.

Source File Name: datastore\cachedpropertycollection.cpp

Compiler Timestamp: Wed Oct 26 16:37:20 2005

Function Name: CachedPropertyCollection::findProperty

Source Line Number: 130

-

Failed to find property "InstallMediaPath" {"SetupBootstrapOptionsScope", "", "1760"} in cache

Source File Name: datastore\propertycollection.cpp

Compiler Timestamp: Wed Oct 26 16:37:21 2005

Function Name: SetupBootstrapOptionsScope.InstallMediaPath

Source Line Number: 44

-

No collector registered for scope: "SetupBootstrapOptionsScope"

Running: ValidateWinNTAction at: 2006/5/21 15:9:28

Complete: ValidateWinNTAction at: 2006/5/21 15:9:28, returned true

Running: ValidateMinOSAction at: 2006/5/21 15:9:28

Complete: ValidateMinOSAction at: 2006/5/21 15:9:28, returned true

Running: PerformSCCAction at: 2006/5/21 15:9:28

Complete: PerformSCCAction at: 2006/5/21 15:9:28, returned true

Running: ActivateLoggingAction at: 2006/5/21 15:9:28

Error: Action "ActivateLoggingAction" threw an exception during execution. Error information reported during run:

Datastore exception while trying to write logging properties.

Source File Name: datastore\cachedpropertycollection.cpp

Compiler Timestamp: Wed Oct 26 16:37:20 2005

Function Name: CachedPropertyCollection::findProperty

Source Line Number: 130

-

Failed to find property "primaryLogFiles" {"SetupStateScope", "", ""} in cache

Source File Name: datastore\propertycollection.cpp

Compiler Timestamp: Wed Oct 26 16:37:21 2005

Function Name: SetupStateScope.primaryLogFiles

Source Line Number: 44

-

No collector registered for scope: "SetupStateScope"

02B6CFC0Unable to proceed with setup, there was a command line parsing error. : 2

Error Code: 0x80070002 (2)

Windows Error Text: O sistema n?o pode encontrar o arquivo especificado. Source File Name: datastore\propertycollection.cpp

Compiler Timestamp: Wed Oct 26 16:37:21 2005

Function Name: SetupBootstrapOptionsScope.InstallMediaPath

Source Line Number: 44

Class not registered.

Failed to create CAB file due to datastore exception

Source File Name: datastore\cachedpropertycollection.cpp

Compiler Timestamp: Wed Oct 26 16:37:20 2005

Function Name: CachedPropertyCollection::findProperty

Source Line Number: 130

-

Failed to find property "HostSetup" {"SetupBootstrapOptionsScope", "", "1760"} in cache

Source File Name: datastore\propertycollection.cpp

Compiler Timestamp: Wed Oct 26 16:37:21 2005

Function Name: SetupBootstrapOptionsScope.HostSetup

Source Line Number: 44

-

No collector registered for scope: "SetupBootstrapOptionsScope"

Message pump returning: 2

I'm going to let the setup experts handle this one - moving to the setup forum.

Mike

Monday, March 19, 2012

Install database on existing MSDE server with unknown SA password?

Question regarding the MSDE SP3a install process...
What happens if I attempt to install MSDE on a server that already has MSDE
installed and the SA password has been changed to an unknown password? Can
I still install an instance for my database without knowing the SA password?
If not, how can I get around this issue?
I can see my app/database being installed at a customers site that already
has a version of MSDE for a different application they have already
installed and are using.
Thanks,
Jim K.
You should be able to install using Windows authentication, assuming you
know the password for an administrator on the box.
With that, you can also reset the sa password for an existing instance using
sp_password.
http://www.aspfaq.com/
(Reverse address to reply.)
"Jim K" <krusej@.megsinet.net> wrote in message
news:u$W9756gEHA.2952@.TK2MSFTNGP09.phx.gbl...
> Question regarding the MSDE SP3a install process...
> What happens if I attempt to install MSDE on a server that already has
MSDE
> installed and the SA password has been changed to an unknown password?
Can
> I still install an instance for my database without knowing the SA
password?
> If not, how can I get around this issue?
> I can see my app/database being installed at a customers site that already
> has a version of MSDE for a different application they have already
> installed and are using.
> Thanks,
> Jim K.
>

Monday, March 12, 2012

Instal Reporting Services on server with SharePoint Portal

Is this configuration supported and if it is, are there directions on the process to install these on the same server? The only instructions I can find are for sharepoint, not portal on the same server as Reporting Services.

SPS is the exact same instructions as WSS. In SQL 2005, this will be supported without any work post-setup.

Friday, March 9, 2012

Inserts performance

Hello.
I'm trying to optimize a process that synchronizes some proprietary objects to a database. Currently, this synchronization is made via ADO by using SQL statements. There are two differents actions that are made: the first initialization is made by a lot of INSERTs into different tables and the second operation is inserting/updating/removing objects one by one when it has changed.
Our objects are stored across multiple tables because they have a hierarchical structure.
My question is about performance for the first operation : what is the best way to achieve multiple inserts across multiple tables in the shortest time. We actually use ADO and an INSERT statement for each row which is obviously not the preferred method.
Thanks.One method you can try is:: Define cluster indexes on each table such that new inserts are distributed on multiple pages. Not only on last page.
Multiple inserts on last page will slow down ur speed.|||Thanks, but i was thinking about client methods to improve the performance of inserts such as batches. But i've got no knowledge of advanced methods. The actual problem is that one request is sent by INSERT of a row and we have roughly 1 million inserts to do.

Originally posted by avneesh
One method you can try is:: Define cluster indexes on each table such that new inserts are distributed on multiple pages. Not only on last page.
Multiple inserts on last page will slow down ur speed.|||1. SET NOCOUNT ON
removes useless "(1 row(s) affected)" messages (server feedback)

2. Create SPs for the insert
SPs are precompiled and therefore faster.

Friday, February 24, 2012

Inserting Regional setting specific data into sql server

Hi,
We are in the process of making product in windows forms that is localized
presently for all european countries.We are supposed to support all eastern
and western european date , time and number formats.However we are currently
facing a problem that say a user in Italy uses our product and user's
settings have a "." as a time seperator sql server is unable to insert such
time values into the database.We get an error for date-time format is not
recognizable by sql server.This also gives us a problem if the date and time
seperator are both "." .Since several countries in europe do support such
settings we are in a fix.The minute any C# code at the GUI level encounters
a
"." date/time seperator the Convert.ToDateTime functions fail and we are
unable to go ahead.
While doing some research for this problem we came up with a solution that
using CultureInfo.InvariantCulture to change all our date-time values before
we pass them onto Convert.ToDateTime functions . We have found this works
however what we dont understand is that we use the 120 datetime format while
inserting data into sql server, this format expects yyyy-mm-dd hh:mm:ss,
which is not what CultureInfo.InvariantCulture expects.But the queries work
perfectly inspite of that.What we are looking for is an explanation for this
since we cannot afford to release yet more patches and releases for our
product once we fix this problem we want the solution to be permanent.
Please guide us as to if the above is a solution to our problem and what is
the explanation for it, or what can be a solution to our problem.
With deepest thanks,
Niketa Mahana
Associate Consultant
Siemens Information Systems Ltd.Niketa
SQL Server 'loves' YYYYMMDD format . However , to display date on the
client site it's a matter of his/her regional settings and it has nothing to
do with SQL Server.
Use any FORMAT functions to dispaly dates on the client
"Niketa Mahana" <NiketaMahana@.discussions.microsoft.com> wrote in message
news:839F5930-1361-49BC-9E46-87B1AF63EEDD@.microsoft.com...
> Hi,
> We are in the process of making product in windows forms that is localized
> presently for all european countries.We are supposed to support all
> eastern
> and western european date , time and number formats.However we are
> currently
> facing a problem that say a user in Italy uses our product and user's
> settings have a "." as a time seperator sql server is unable to insert
> such
> time values into the database.We get an error for date-time format is not
> recognizable by sql server.This also gives us a problem if the date and
> time
> seperator are both "." .Since several countries in europe do support such
> settings we are in a fix.The minute any C# code at the GUI level
> encounters a
> "." date/time seperator the Convert.ToDateTime functions fail and we are
> unable to go ahead.
> While doing some research for this problem we came up with a solution that
> using CultureInfo.InvariantCulture to change all our date-time values
> before
> we pass them onto Convert.ToDateTime functions . We have found this works
> however what we dont understand is that we use the 120 datetime format
> while
> inserting data into sql server, this format expects yyyy-mm-dd hh:mm:ss,
> which is not what CultureInfo.InvariantCulture expects.But the queries
> work
> perfectly inspite of that.What we are looking for is an explanation for
> this
> since we cannot afford to release yet more patches and releases for our
> product once we fix this problem we want the solution to be permanent.
> Please guide us as to if the above is a solution to our problem and what
> is
> the explanation for it, or what can be a solution to our problem.
> With deepest thanks,
> Niketa Mahana
> Associate Consultant
> Siemens Information Systems Ltd.|||Hi Uri
Thanks for that, we are aware sql prefers this YYYYMMDD format however if u
take a datetime that is like 12/22/2005 06.10.12 , and try to insert this as
is using 120 sql format sql server does not accept it, however if u make thi
s
into a string and then format it using cultureInfo.InvariantCulture then it
makes the string 22/12/2005 06:10:12 -> note the time seperator has become a
: now instead of dot and now this date can be inserted into sql server using
120 format.However what we dont understand is why does 120 format accept
22/12/2005 06:10:12 when actually it is supposed to expect YYYYMMDD?Any clue
s
on that will be MOSSTT helpful
"Uri Dimant" wrote:

> Niketa
> SQL Server 'loves' YYYYMMDD format . However , to display date on the
> client site it's a matter of his/her regional settings and it has nothing
to
> do with SQL Server.
> Use any FORMAT functions to dispaly dates on the client
>
> "Niketa Mahana" <NiketaMahana@.discussions.microsoft.com> wrote in message
> news:839F5930-1361-49BC-9E46-87B1AF63EEDD@.microsoft.com...
>
>|||Nikete

> take a datetime that is like 12/22/2005 06.10.12 , and try to insert this
> as
> is using 120 sql format sql server does not accept it
Run it on QA
select convert(varchar(20),getdate(),120)
declare @.dt varchar(20)
set @.dt='12/22/2005 06.10.12'
select convert(datetime,
substring(@.dt,1,10)+substring(replace(@.d
t,'.',':'),11,len(@.dt)),120)
What did it return?
In case of datetime why not just using
YYYYMMDDTHH:MM:SS
"Niketa Mahana" <NiketaMahana@.discussions.microsoft.com> wrote in message
news:9DBC8BB7-0F9E-4E9E-8CEE-2D3A38311499@.microsoft.com...
> Hi Uri
> Thanks for that, we are aware sql prefers this YYYYMMDD format however if
> u
> take a datetime that is like 12/22/2005 06.10.12 , and try to insert this
> as
> is using 120 sql format sql server does not accept it, however if u make
> this
> into a string and then format it using cultureInfo.InvariantCulture then
> it
> makes the string 22/12/2005 06:10:12 -> note the time seperator has become
> a
> : now instead of dot and now this date can be inserted into sql server
> using
> 120 format.However what we dont understand is why does 120 format accept
> 22/12/2005 06:10:12 when actually it is supposed to expect YYYYMMDD?Any
> clues
> on that will be MOSSTT helpful
> "Uri Dimant" wrote:
>|||Hi Uri,
Now your getting to our problem, see if i know the seperator is going to be
a "." then i can put in a replace function however time seperators are user
editable, if u open control panel and in the regional settings for a country
custimse a time seperator and put in say # then the replace functions dont
worl becuase the replace is looking for a . not #, and in that case naturall
y
sql crashes. So to support all seperators before we dynamically concat a
string and make it into a sql query we thought we would take all date times
in that query make it into a string and then format it using
CultureInfo.Invariant culture, i wanted to confirm if microsoft thinks this
is a good approach to insert datetimes that are regional setting
specific.Please see my eg below-
User enters -> 12;12;2005 06;06;09 (; is the time/date seperator)
in the DB layer of the application we should
string w = "12/12/2005 06;06;09 ";
w= w.ToString(CultureInfo.InvariantCulture); // this makes w look like
12/12/2005 06:06:09 -> note it has made the time seperator : and the date
seperator /
now we would do insert into myTable(dtcol1) values(convert(datetime,w,120))
, but is this safe and will this always work ?
"Uri Dimant" wrote:

> Nikete
>
> Run it on QA
> select convert(varchar(20),getdate(),120)
> declare @.dt varchar(20)
> set @.dt='12/22/2005 06.10.12'
> select convert(datetime,
> substring(@.dt,1,10)+substring(replace(@.d
t,'.',':'),11,len(@.dt)),120)
> What did it return?
> In case of datetime why not just using
> YYYYMMDDTHH:MM:SS
>
> "Niketa Mahana" <NiketaMahana@.discussions.microsoft.com> wrote in message
> news:9DBC8BB7-0F9E-4E9E-8CEE-2D3A38311499@.microsoft.com...
>
>|||Niketa
Well, in that case why you allow to user inserting a date and time
As I know there is a calendar control to do that.
Always that will work
YYYYDDMMTHH:MM:SS
"Niketa Mahana" <NiketaMahana@.discussions.microsoft.com> wrote in message
news:B7DDBD90-D733-43B3-B557-4D971C4F7CE7@.microsoft.com...
> Hi Uri,
> Now your getting to our problem, see if i know the seperator is going to
> be
> a "." then i can put in a replace function however time seperators are
> user
> editable, if u open control panel and in the regional settings for a
> country
> custimse a time seperator and put in say # then the replace functions dont
> worl becuase the replace is looking for a . not #, and in that case
> naturally
> sql crashes. So to support all seperators before we dynamically concat a
> string and make it into a sql query we thought we would take all date
> times
> in that query make it into a string and then format it using
> CultureInfo.Invariant culture, i wanted to confirm if microsoft thinks
> this
> is a good approach to insert datetimes that are regional setting
> specific.Please see my eg below-
> User enters -> 12;12;2005 06;06;09 (; is the time/date seperator)
> in the DB layer of the application we should
> string w = "12/12/2005 06;06;09 ";
> w= w.ToString(CultureInfo.InvariantCulture); // this makes w look like
> 12/12/2005 06:06:09 -> note it has made the time seperator : and the date
> seperator /
> now we would do insert into myTable(dtcol1)
> values(convert(datetime,w,120))
> , but is this safe and will this always work ?
> "Uri Dimant" wrote:
>|||Why would you let the user enter datetime values at all? Wouldn't it be
easier (for you and your users) to use a date picker component?
ML
http://milambda.blogspot.com/|||Hi Uri,
Its this way, we create a file on our file system and we need to insert the
file modification date into the database.The file modification date comes as
per current regional settings , because we create an instance of this file
and then pick up its modification date..now if the current regional settings
are having some funny seperators then while inserting sql fails..so no use o
f
calendar control..hence i asked about cultureInfo.InvariantCulture.Any input
s?
"Uri Dimant" wrote:

> Niketa
> Well, in that case why you allow to user inserting a date and time
> As I know there is a calendar control to do that.
> Always that will work
> YYYYDDMMTHH:MM:SS
>
> "Niketa Mahana" <NiketaMahana@.discussions.microsoft.com> wrote in message
> news:B7DDBD90-D733-43B3-B557-4D971C4F7CE7@.microsoft.com...
>
>|||Niketa
> calendar control..hence i asked about cultureInfo.InvariantCulture.Any
> inputs?
How does it relate to SQL Server?
I'm not an expert of C#/VB.NET , sorry.
"Niketa Mahana" <NiketaMahana@.discussions.microsoft.com> wrote in message
news:732D6AD5-AB34-4486-99B1-3862D962176F@.microsoft.com...
> Hi Uri,
> Its this way, we create a file on our file system and we need to insert
> the
> file modification date into the database.The file modification date comes
> as
> per current regional settings , because we create an instance of this file
> and then pick up its modification date..now if the current regional
> settings
> are having some funny seperators then while inserting sql fails..so no use
> of
> calendar control..hence i asked about cultureInfo.InvariantCulture.Any
> inputs?
> "Uri Dimant" wrote:
>