Showing posts with label contain. Show all posts
Showing posts with label contain. Show all posts

Wednesday, March 7, 2012

Looking for sqlrun_tools.msi

Today my computer started doing something strange when trying to compile a setup&deployment project. This project doesn't contain anything related to sql server whatsoever.

When i compile, it pops up a windows installer dialog that starts doing something. Eventually it asks me for my Sql Server 2005 Tools disc, specifically looking for sqlrun_tools.msi.

I tried putting in the disc that i'm pretty sure it was installed from (my MSDN disc) but it told me that the sqlrun_tools.msi on that disc wasn't the right one.

I have no idea why its asking me for this at this time, nor do i know to do to get it to stop.

Thanks in advance for any help.

Are you familiar with using the event viewer (Start->Run->eventvwr.msc). There should be some events around the time that you saw the popup where the source is "MsiInstaller" (I believe). The content of the event should mention that a component was missing and that a feature is being installed to repair it.

If you can locate these events, could you post the details to the forum? I suspect the missing component could be related to mergemod.dll, but that is just a guess.

|||

I am having the same problem.

Whenever I try and build a setup project I see a dialogue saying "Please wait while Windows configures SQL Server 2005 Tools", with a cancel button.

If I do wait then I am eventually told that "An installation package for the product Microsoft SQL Server 2005 Tools cannot be found. Try the installation again using a valid copy of the installation package 'SQLRun_Tools.msi'"

If I just cancel that dialogue my setup project runs just fine.

Any ideas on how to fix this?

Here are the 2 events:

Detection of product '{7085A287-2F7E-420C-B0D9-53AFA8341154}', feature 'SQL_Tools90' failed during request for component '{FD153241-37EC-11D2-8892-00A0C981B015}'

Detection of product '{7085A287-2F7E-420C-B0D9-53AFA8341154}', feature 'SQL_Tools90', component '{7A4BD8A8-24AE-492A-84F5-9A4DEB2DD0AB}' failed. The resource 'C:\Program Files\Microsoft SQL Server\90\DTS\LogProviders\' does not exist.

|||

Do you still have the SQL Server 2005 Tools installed? This error might be related to a missing "LogProviders" folder underneath %PROGRAMFILES%\Microsoft Sql Server\90\DTS. Could you confirm if that folder is there?

We have some options here. The first is to try and repair your tools install. The second is to try and defeat the resiliency checks Windows Installer is invoking when you build a setup project, which can be done via installing an updated version of Orca or by fiddling in the registry. Based on your reply we can proceed with the next steps.

|||

Thanks for your reply.

The folder was not there. I created the following folders and it seems to have solved the problem, at least for the project I am currently building.

C:\Program Files\Microsoft SQL Server\90\DTS\LogProviders

C:\Program Files\Microsoft SQL Server\90\DTS\Packages

C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\SDK\v2.0\Bin

C:\Program Files\Microsoft SQL Server\90\Shared\ErrorDumps

Not sure if this is relevant to anyone else who is having this problem but when I checked to see if SQL Server 2005 Management Studio was still installed I got a message telling me my Evaluation period has expired. I haven't used it since installing it a while back so hadn't noticed.

Thanks again for your help.

|||

I too am having the same issue. I found that the LogProviders directory was missing, so I created that folder but to no avail. however, instead of running three times, I only get the MSI installer once now.

I'm not sure that this has anything to do with anything, but I have the Express ver installed of 2005, not the full ver or even the eval edition.

Any ideas or registry fixes would be much appreceated.

Thanks.

|||

Hi,

TimMulholland wrote:

I tried putting in the disc that i'm pretty sure it was installed from (my MSDN disc) but it told me that the sqlrun_tools.msi on that disc wasn't the right one.

You would find that in your SQL Server Setup CD and not in MSDN CD, try with it. Have you tried creating a package with SQL Server Installer / Setup stripped with the Application ?! if yes it would ask you the same.

Hemantgiri S. Goswami

|||

I had a similar problem and i solved it by uninstalling de workstation components from SQL Server 2005 (more exactly the management studio) and then installing it again. The problem disappeared.

The problem occured when using Guidance packages and setup projects.

greetz,

beloega

Looking for sqlrun_tools.msi

Today my computer started doing something strange when trying to compile a setup&deployment project. This project doesn't contain anything related to sql server whatsoever.

When i compile, it pops up a windows installer dialog that starts doing something. Eventually it asks me for my Sql Server 2005 Tools disc, specifically looking for sqlrun_tools.msi.

I tried putting in the disc that i'm pretty sure it was installed from (my MSDN disc) but it told me that the sqlrun_tools.msi on that disc wasn't the right one.

I have no idea why its asking me for this at this time, nor do i know to do to get it to stop.

Thanks in advance for any help.

Are you familiar with using the event viewer (Start->Run->eventvwr.msc). There should be some events around the time that you saw the popup where the source is "MsiInstaller" (I believe). The content of the event should mention that a component was missing and that a feature is being installed to repair it.

If you can locate these events, could you post the details to the forum? I suspect the missing component could be related to mergemod.dll, but that is just a guess.

|||

I am having the same problem.

Whenever I try and build a setup project I see a dialogue saying "Please wait while Windows configures SQL Server 2005 Tools", with a cancel button.

If I do wait then I am eventually told that "An installation package for the product Microsoft SQL Server 2005 Tools cannot be found. Try the installation again using a valid copy of the installation package 'SQLRun_Tools.msi'"

If I just cancel that dialogue my setup project runs just fine.

Any ideas on how to fix this?

Here are the 2 events:

Detection of product '{7085A287-2F7E-420C-B0D9-53AFA8341154}', feature 'SQL_Tools90' failed during request for component '{FD153241-37EC-11D2-8892-00A0C981B015}'

Detection of product '{7085A287-2F7E-420C-B0D9-53AFA8341154}', feature 'SQL_Tools90', component '{7A4BD8A8-24AE-492A-84F5-9A4DEB2DD0AB}' failed. The resource 'C:\Program Files\Microsoft SQL Server\90\DTS\LogProviders\' does not exist.

|||

Do you still have the SQL Server 2005 Tools installed? This error might be related to a missing "LogProviders" folder underneath %PROGRAMFILES%\Microsoft Sql Server\90\DTS. Could you confirm if that folder is there?

We have some options here. The first is to try and repair your tools install. The second is to try and defeat the resiliency checks Windows Installer is invoking when you build a setup project, which can be done via installing an updated version of Orca or by fiddling in the registry. Based on your reply we can proceed with the next steps.

|||

Thanks for your reply.

The folder was not there. I created the following folders and it seems to have solved the problem, at least for the project I am currently building.

C:\Program Files\Microsoft SQL Server\90\DTS\LogProviders

C:\Program Files\Microsoft SQL Server\90\DTS\Packages

C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\SDK\v2.0\Bin

C:\Program Files\Microsoft SQL Server\90\Shared\ErrorDumps

Not sure if this is relevant to anyone else who is having this problem but when I checked to see if SQL Server 2005 Management Studio was still installed I got a message telling me my Evaluation period has expired. I haven't used it since installing it a while back so hadn't noticed.

Thanks again for your help.

|||

I too am having the same issue. I found that the LogProviders directory was missing, so I created that folder but to no avail. however, instead of running three times, I only get the MSI installer once now.

I'm not sure that this has anything to do with anything, but I have the Express ver installed of 2005, not the full ver or even the eval edition.

Any ideas or registry fixes would be much appreceated.

Thanks.

|||

Hi,

TimMulholland wrote:

I tried putting in the disc that i'm pretty sure it was installed from (my MSDN disc) but it told me that the sqlrun_tools.msi on that disc wasn't the right one.

You would find that in your SQL Server Setup CD and not in MSDN CD, try with it. Have you tried creating a package with SQL Server Installer / Setup stripped with the Application ?! if yes it would ask you the same.

Hemantgiri S. Goswami

|||

I had a similar problem and i solved it by uninstalling de workstation components from SQL Server 2005 (more exactly the management studio) and then installing it again. The problem disappeared.

The problem occured when using Guidance packages and setup projects.

greetz,

beloega

Looking for SQL Databases for

Hello,

I am currently looking for databases that contain available prescription
medications and diagnosis codes (i.e. ICD9 medical diagnosis codes) that
have been created using SQL.

Anybody know of companies that have these commerically available?

Thanks,
EricHi

The list of drugs available for prescription will be governed by the
authorising body in the country that you are in, therefore I would suggest
you contact them to find out who will supply these codes. The good thing
about SQL Server is that even if the codes are not supplied as a SQL Server
database
it is very easy to import or link to databases of other formats. For
importing check out DTS for linking check out Linked Servers in Books
online.

For the Clinical Terms then check out SNOMED http://www.snomed.org/.

John

"Beringer" <borden_eric@.invalid.com> wrote in message
news:cVr_c.249441$Oi.76727@.fed1read04...
> Hello,
> I am currently looking for databases that contain available prescription
> medications and diagnosis codes (i.e. ICD9 medical diagnosis codes) that
> have been created using SQL.
> Anybody know of companies that have these commerically available?
> Thanks,
> Eric

Saturday, February 25, 2012

Looking for ideas...

I have a text file that I am importing in a data flow task. Not all of the rows are the same, there are "header" rows that contain a company code.

What I want to do is keep that company code and append that to the row of text that I am writing to a CSV file.

Since you cannot change variables until the post execute, what are my options?

Hope that's clear

Thanks!

BobP

Are you writing a custom script component to handle this? You talk of not being able to change variables until post execute, just handle the locking yourself and you can as illustrated here - http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=956181&SiteID=1|||From your description, I assume you're trying to denormalize a multi-formatted text file by moving data from header rows to detail rows.

Since your rows are not all the same, set your text file source component to read each line of the source file as a single column. Then write a custom script transformation component to consume that column, parse the data by row type, and output the individual columns that will be consumed by your destination (including the header columns). When the transformation encounters one of these header rows, put the parsed data (Company Code) into global variable(s) in the transformation component, and discard or redirect the header row. For each detail row, create a new output row and populate the "detail" columns from the parsed input data and the "header" column(s) (i.e. Company Code) from the the local variable(s). This way your header data is remembered for each subsequent detail row until another header is encountered.

Hope that helps.

Monday, February 20, 2012

Looking for guidence on Parameters.

I am trying to procduce a report using an " IN (x,y,z) "clause except that
x,y,z could contain 1 or 10 values, is it possible to change the base query
at run time or use a single parameter array to convert the values?
Any help and guuidence appriciated.Richard,
Maybe a filter might be an option and wite some VB.NET code to use instr
command to handle the variable values ?
- peteZ
"Namshub" <Richard._NoSpam_ForME_Pullen@.Southend.nhs.uk> wrote in message
news:%23bK82kOtEHA.3460@.TK2MSFTNGP15.phx.gbl...
>I am trying to procduce a report using an " IN (x,y,z) "clause except that
>x,y,z could contain 1 or 10 values, is it possible to change the base query
>at run time or use a single parameter array to convert the values?
> Any help and guuidence appriciated.
>
>|||Your report query can be expression-based. You can pass the whole IN clouse
(x, y, x) as a report parameter but be careful about SQL injection attacks.
--
Hope this helps.
---
Teo Lachev, MVP [SQL Server], MCSD, MCT
Author: "Microsoft Reporting Services in Action"
Publisher website: http://www.manning.com/lachev
Buy it from Amazon.com: http://shrinkster.com/eq
Home page and blog: http://www.prologika.com/
---
"Namshub" <Richard._NoSpam_ForME_Pullen@.Southend.nhs.uk> wrote in message
news:%23bK82kOtEHA.3460@.TK2MSFTNGP15.phx.gbl...
> I am trying to procduce a report using an " IN (x,y,z) "clause except that
> x,y,z could contain 1 or 10 values, is it possible to change the base
query
> at run time or use a single parameter array to convert the values?
> Any help and guuidence appriciated.
>
>|||No i've tried to look at what you are saying but cant see how you would
implement it
Do you put a parameter in the SQL code, or is it a filer? a simple example
would be really helpful.
Thanks
"Teo Lachev [MVP]" <teo.lachev@.nospam.prologika.com> wrote in message
news:eOtAzSXtEHA.3564@.tk2msftngp13.phx.gbl...
> Your report query can be expression-based. You can pass the whole IN
> clouse
> (x, y, x) as a report parameter but be careful about SQL injection
> attacks.
> --
> Hope this helps.
> ---
> Teo Lachev, MVP [SQL Server], MCSD, MCT
> Author: "Microsoft Reporting Services in Action"
> Publisher website: http://www.manning.com/lachev
> Buy it from Amazon.com: http://shrinkster.com/eq
> Home page and blog: http://www.prologika.com/
> ---
> "Namshub" <Richard._NoSpam_ForME_Pullen@.Southend.nhs.uk> wrote in message
> news:%23bK82kOtEHA.3460@.TK2MSFTNGP15.phx.gbl...
>> I am trying to procduce a report using an " IN (x,y,z) "clause except
>> that
>> x,y,z could contain 1 or 10 values, is it possible to change the base
> query
>> at run time or use a single parameter array to convert the values?
>> Any help and guuidence appriciated.
>>
>|||Hi,
What attached report definition are you referring to? I am also having to
pass multivalues to a parameter and I would like to use in(x,y).
Thanks
"Teo Lachev [MVP]" wrote:
> Namshub,
> Please look at the attached report definition which demostrates an
> expression-based SQL statement that takes comma-separated list of employee
> identifiers passed as a report parameter. It produces a report that shows
> the purchase orders associated with a single or mutiple employees.
> --
> Hope this helps.
> ---
> Teo Lachev, MVP [SQL Server], MCSD, MCT
> Author: "Microsoft Reporting Services in Action"
> Publisher website: http://www.manning.com/lachev
> Buy it from Amazon.com: http://shrinkster.com/eq
> Home page and blog: http://www.prologika.com/
> ---
> "Namshub" <Richard._NoSpam_ForME_Pullen@.Southend.nhs.uk> wrote in message
> news:uSEkVxdtEHA.1368@.TK2MSFTNGP15.phx.gbl...
> > No i've tried to look at what you are saying but cant see how you would
> > implement it
> >
> > Do you put a parameter in the SQL code, or is it a filer? a simple
> example
> > would be really helpful.
> >
> > Thanks
> >
> > "Teo Lachev [MVP]" <teo.lachev@.nospam.prologika.com> wrote in message
> > news:eOtAzSXtEHA.3564@.tk2msftngp13.phx.gbl...
> > > Your report query can be expression-based. You can pass the whole IN
> > > clouse
> > > (x, y, x) as a report parameter but be careful about SQL injection
> > > attacks.
> > >
> > > --
> > > Hope this helps.
> > >
> > > ---
> > > Teo Lachev, MVP [SQL Server], MCSD, MCT
> > > Author: "Microsoft Reporting Services in Action"
> > > Publisher website: http://www.manning.com/lachev
> > > Buy it from Amazon.com: http://shrinkster.com/eq
> > > Home page and blog: http://www.prologika.com/
> > > ---
> > >
> > > "Namshub" <Richard._NoSpam_ForME_Pullen@.Southend.nhs.uk> wrote in
> message
> > > news:%23bK82kOtEHA.3460@.TK2MSFTNGP15.phx.gbl...
> > >> I am trying to procduce a report using an " IN (x,y,z) "clause except
> > >> that
> > >> x,y,z could contain 1 or 10 values, is it possible to change the base
> > > query
> > >> at run time or use a single parameter array to convert the values?
> > >>
> > >> Any help and guuidence appriciated.
> > >>
> > >>
> > >>
> > >
> > >
> >
> >
>
>|||Hi,
Hi,
What you could do is create a function on the SQL server that will
convert your comma separated list to a table.
Like this:
CREATE FUNCTION dbo.UDF_CharCommaSeparatedListToTable
(
@.CommaSeparatedList VARCHAR(8000)
)
RETURNS @.ParsedTableValue TABLE (TableValue VARCHAR(1000))
AS
BEGIN
DECLARE @.TableValue VARCHAR(1000)
DECLARE @.Pos INT
SET @.CommaSeparatedList = LTRIM(RTRIM(@.CommaSeparatedList))+ ','
SET @.Pos = CHARINDEX(',', @.CommaSeparatedList, 1)
IF REPLACE(@.CommaSeparatedList, ',', '') <> ''
BEGIN
WHILE @.Pos > 0
BEGIN
SET @.TableValue = LTRIM(RTRIM(LEFT(@.CommaSeparatedList, @.Pos - 1)))
IF @.TableValue <> ''
BEGIN
INSERT INTO @.ParsedTableValue (TableValue)
VALUES (RTRIM(@.TableValue))
END
SET @.CommaSeparatedList = RIGHT(@.CommaSeparatedList,
LEN(@.CommaSeparatedList) - @.Pos)
SET @.Pos = CHARINDEX(',', @.CommaSeparatedList, 1)
END
END
RETURN
END
Then use this function in your query or stored procedure like this:
SELECT a.country, ..., ..., ...
FROM table1 a
JOIN dbo.UDF_CharCommaSeparatedListToTable(@.CountryList) b ON
RTRIM(b.TableValue) = a.country
HTH,
Eric|||Hi,
Thanks alot for the help.
Now I need to modify the function. I tried but was unsuccessful.
What I need is to be able to pass null values so if the user doesn't select
a value all the employee names will bel returned.
Also I need multiple where statements. I tried multiple inner joins but
obviously it returns the error:
The correlation name 'b' is specified multiple times in a FROM clause
How can I fix the problems?
Thanks
"Aiwa" wrote:
> Hi,
> Hi,
>
> What you could do is create a function on the SQL server that will
> convert your comma separated list to a table.
>
> Like this:
> CREATE FUNCTION dbo.UDF_CharCommaSeparatedListToTable
> (
> @.CommaSeparatedList VARCHAR(8000)
> )
> RETURNS @.ParsedTableValue TABLE (TableValue VARCHAR(1000))
> AS
> BEGIN
> DECLARE @.TableValue VARCHAR(1000)
> DECLARE @.Pos INT
>
> SET @.CommaSeparatedList = LTRIM(RTRIM(@.CommaSeparatedList))+ ','
> SET @.Pos = CHARINDEX(',', @.CommaSeparatedList, 1)
> IF REPLACE(@.CommaSeparatedList, ',', '') <> ''
> BEGIN
> WHILE @.Pos > 0
> BEGIN
>
> SET @.TableValue = LTRIM(RTRIM(LEFT(@.CommaSeparatedList, @.Pos - 1)))
> IF @.TableValue <> ''
> BEGIN
> INSERT INTO @.ParsedTableValue (TableValue)
> VALUES (RTRIM(@.TableValue))
> END
> SET @.CommaSeparatedList = RIGHT(@.CommaSeparatedList,
> LEN(@.CommaSeparatedList) - @.Pos)
> SET @.Pos = CHARINDEX(',', @.CommaSeparatedList, 1)
> END
> END
> RETURN
> END
>
> Then use this function in your query or stored procedure like this:
>
> SELECT a.country, ..., ..., ...
> FROM table1 a
> JOIN dbo.UDF_CharCommaSeparatedListToTable(@.CountryList) b ON
> RTRIM(b.TableValue) = a.country
>
> HTH,
> Eric
>|||I solved my problem for null values and for multiple statements in the where
clause as follows:
WHERE (@.param is null or userid in (Select tablevalue from
dbo.UDF_CharCommaSeparatedListToTable (@.param)))
"Aiwa" wrote:
> Hi,
> Hi,
>
> What you could do is create a function on the SQL server that will
> convert your comma separated list to a table.
>
> Like this:
> CREATE FUNCTION dbo.UDF_CharCommaSeparatedListToTable
> (
> @.CommaSeparatedList VARCHAR(8000)
> )
> RETURNS @.ParsedTableValue TABLE (TableValue VARCHAR(1000))
> AS
> BEGIN
> DECLARE @.TableValue VARCHAR(1000)
> DECLARE @.Pos INT
>
> SET @.CommaSeparatedList = LTRIM(RTRIM(@.CommaSeparatedList))+ ','
> SET @.Pos = CHARINDEX(',', @.CommaSeparatedList, 1)
> IF REPLACE(@.CommaSeparatedList, ',', '') <> ''
> BEGIN
> WHILE @.Pos > 0
> BEGIN
>
> SET @.TableValue = LTRIM(RTRIM(LEFT(@.CommaSeparatedList, @.Pos - 1)))
> IF @.TableValue <> ''
> BEGIN
> INSERT INTO @.ParsedTableValue (TableValue)
> VALUES (RTRIM(@.TableValue))
> END
> SET @.CommaSeparatedList = RIGHT(@.CommaSeparatedList,
> LEN(@.CommaSeparatedList) - @.Pos)
> SET @.Pos = CHARINDEX(',', @.CommaSeparatedList, 1)
> END
> END
> RETURN
> END
>
> Then use this function in your query or stored procedure like this:
>
> SELECT a.country, ..., ..., ...
> FROM table1 a
> JOIN dbo.UDF_CharCommaSeparatedListToTable(@.CountryList) b ON
> RTRIM(b.TableValue) = a.country
>
> HTH,
> Eric
>|||Hi,
To fix the null values issues maybe you could try someting like this:
*** It is not going to work if the parameter @.EmployeeList is null...
maybe en empty string could represent all possible values...
SELECT a.EmployeeName, a.col2,..., ...
FROM table1 a
LEFT OUTER JOIN dbo.UDF_CharCommaSeparatedListToTable(@.EmployeeList) b
ON 1 =1
WHERE a.EmployeeName = CASE WHEN RTRIM(@.EmployeeList) = '' THEN
a.EmployeeName
ELSE RTRIM(b.TableValue)
END
For the correlation name issue, you can change the alias for every join
you make to the function:
SELECT a.EmployeeName, a.col2,..., ...
FROM table1 a
LEFT OUTER JOIN dbo.UDF_CharCommaSeparatedListToTable(@.ParameterList1)
b ON ...
LEFT OUTER JOIN dbo.UDF_CharCommaSeparatedListToTable(@.ParameterList2)
c ON ...
LEFT OUTER JOIN dbo.UDF_CharCommaSeparatedListToTable(@.ParameterList3)
d ON ...
LEFT OUTER JOIN dbo.UDF_CharCommaSeparatedListToTable(@.ParameterList4)
e ON ...
LEFT OUTER JOIN dbo.UDF_CharCommaSeparatedListToTable(@.ParameterList5)
f ON ...
HTH,
Eric|||Hi,
Your way of managing null values is better than mine, I'll be using
that in the future!!
Eric|||Ouups,
After giving it a little more thought, I will stick to my way of
managing null (empty) values since your way of managing nulls would
require the function to be called for every records of your resultset
and my way will be calling the function only once...
Regards,
Eric