Showing posts with label install. Show all posts
Showing posts with label install. Show all posts

Wednesday, March 28, 2012

preconfigure port number while command line installing

Hi,

I want set a specific port number of SQL Server(express) during installation not by Configuration Manager after install.
Is it possible?

hi,

probably becouse of the multi instances support of SQL Server up to version 2000, which introduced the SQL Server Resolution Service listening on UDP 1434, now SQLBrowser, this feature has been removed from the configurable settings..

but you can interact via SMO as well, but probably after your installer has finished..

regards

Tuesday, March 20, 2012

POST SP3 Problems

Fresh install of Win2K Server with all the latest Services Packs and Patches.

Fresh Install of SQL Servers 2000

Everything works OK

Install SP3

SQL Services Manager runs for 1 second and closes

Running New SQL Server Registration Wizard in Enterprise Manger, after hitting Next on the first screen Enterprise Manager goes poof and closes

DR. Watson Error:

Event Type: Information
Event Source: DrWatson
Event Category: None
Event ID: 4097
Date: 2/14/2003
Time: 8:38:37 AM
User: N/A
Computer: CRUISE03
Description:
The application, mmc.exe, generated an application error The error occurred on 02/14/2003 @. 08:38:37.458 The exception generated was c0000005 at address 780011CD (wcslen)

Has anyone else experienced this error, or know how I can correct it?I have experienced a different error (possibly related)

Windows 2K box
SQL 2K sp2

Add SQL SP3

SQL Server process crashes on any extended stored procedure execution. Some DBCC commands (checkdb but not showcontig) also crash the server process.

I talked to Microsoft about it, and it seems that there is one MDAC hotfix that will report a successful installation no matter what. Out of 4 machines, I only had one go bad, but I still have 30 to go...

The fix in my case was as follows:
1) run C:\SQL2KSP3\x86\other\sqlredis.exe /t:C:\Extract /c

2) run C:\Extract\mdac_qfe.exe
2a) reboot.
3) Re-run SQL SP3 setup

It fixed my particular problem, but I don't know if it will do anything to yours. Can you run extended stored procs in Query Analyzer?
~Matt|||Unfortunately this fix didn't work for me.

I don't having any stored procedures to test, this is a very simple setup for my new web server.

post SP1 hotfix

Just curious, I'm reading about the SQL Server 2005 post SP1 hotfix and it looks like you need to install the packages in order:

SQL Server

Analysis Services

Integration Services

Notification Services

Reporting Services

Tools

My desktop is configured as an Analysis Services and Integration Services instance, but without the SQL Server proper components installed. What should my install order be? Does important note 3 about SMO and SQL-DMO still apply?

Thanks,

Keehan

What document do you refer to?

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

Sorry 'bout that:

http://support.microsoft.com/kb/918222

Cheers,

Keehan

|||

If you didnt install SQL Server relational engine, you should be fine with installing hotfix packges for installed components only.

Looks SQL-DMO issue only applies if you have SQL Server relational engine installed.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

Post SP Install issue

We have a active/active W2K3 SQL cluster with 3 instances that was upgraded
to SP4 with the 2148 hotfix. All 3 instances upgraded to SP 4 with no
problems.
However, when applying the hotix only the first instance upgraded correctly.
The hotfix install for instances 2 and 3 indicated success but the version
for both still shows build 2139. Can't seem to get the install to work for
these instances. Any help would be appreciated.Hi
You may want to re-contact PSS for this as this is a PSS only hotfix!
John
"GManino" wrote:
> We have a active/active W2K3 SQL cluster with 3 instances that was upgraded
> to SP4 with the 2148 hotfix. All 3 instances upgraded to SP 4 with no
> problems.
> However, when applying the hotix only the first instance upgraded correctly.
> The hotfix install for instances 2 and 3 indicated success but the version
> for both still shows build 2139. Can't seem to get the install to work for
> these instances. Any help would be appreciated.|||Hi
Your answer is Windows Task Scheduler.
See http://msmvps.com/epprecht/archive/2005/08/28/64380.aspx
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"GManino" <GManino@.discussions.microsoft.com> wrote in message
news:9BBD59DE-12E8-4A0C-AA9B-61B25D031BB3@.microsoft.com...
> We have a active/active W2K3 SQL cluster with 3 instances that was
> upgraded
> to SP4 with the 2148 hotfix. All 3 instances upgraded to SP 4 with no
> problems.
> However, when applying the hotix only the first instance upgraded
> correctly.
> The hotfix install for instances 2 and 3 indicated success but the version
> for both still shows build 2139. Can't seem to get the install to work
> for
> these instances. Any help would be appreciated.|||Does anyone know if this will work for all types of corruption?
"John Bell" wrote:
> Hi
> You may want to re-contact PSS for this as this is a PSS only hotfix!
> John
> "GManino" wrote:
> > We have a active/active W2K3 SQL cluster with 3 instances that was upgraded
> > to SP4 with the 2148 hotfix. All 3 instances upgraded to SP 4 with no
> > problems.
> >
> > However, when applying the hotix only the first instance upgraded correctly.
> > The hotfix install for instances 2 and 3 indicated success but the version
> > for both still shows build 2139. Can't seem to get the install to work for
> > these instances. Any help would be appreciated.

Post SP Install issue

We have a active/active W2K3 SQL cluster with 3 instances that was upgraded
to SP4 with the 2148 hotfix. All 3 instances upgraded to SP 4 with no
problems.
However, when applying the hotix only the first instance upgraded correctly.
The hotfix install for instances 2 and 3 indicated success but the version
for both still shows build 2139. Can't seem to get the install to work for
these instances. Any help would be appreciated.
Hi
You may want to re-contact PSS for this as this is a PSS only hotfix!
John
"GManino" wrote:

> We have a active/active W2K3 SQL cluster with 3 instances that was upgraded
> to SP4 with the 2148 hotfix. All 3 instances upgraded to SP 4 with no
> problems.
> However, when applying the hotix only the first instance upgraded correctly.
> The hotfix install for instances 2 and 3 indicated success but the version
> for both still shows build 2139. Can't seem to get the install to work for
> these instances. Any help would be appreciated.
|||Hi
Your answer is Windows Task Scheduler.
See http://msmvps.com/epprecht/archive/2.../28/64380.aspx
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"GManino" <GManino@.discussions.microsoft.com> wrote in message
news:9BBD59DE-12E8-4A0C-AA9B-61B25D031BB3@.microsoft.com...
> We have a active/active W2K3 SQL cluster with 3 instances that was
> upgraded
> to SP4 with the 2148 hotfix. All 3 instances upgraded to SP 4 with no
> problems.
> However, when applying the hotix only the first instance upgraded
> correctly.
> The hotfix install for instances 2 and 3 indicated success but the version
> for both still shows build 2139. Can't seem to get the install to work
> for
> these instances. Any help would be appreciated.
|||Does anyone know if this will work for all types of corruption?
"John Bell" wrote:
[vbcol=seagreen]
> Hi
> You may want to re-contact PSS for this as this is a PSS only hotfix!
> John
> "GManino" wrote:

Post SP Install issue

We have a active/active W2K3 SQL cluster with 3 instances that was upgraded
to SP4 with the 2148 hotfix. All 3 instances upgraded to SP 4 with no
problems.
However, when applying the hotix only the first instance upgraded correctly.
The hotfix install for instances 2 and 3 indicated success but the version
for both still shows build 2139. Can't seem to get the install to work for
these instances. Any help would be appreciated.Hi
You may want to re-contact PSS for this as this is a PSS only hotfix!
John
"GManino" wrote:

> We have a active/active W2K3 SQL cluster with 3 instances that was upgrade
d
> to SP4 with the 2148 hotfix. All 3 instances upgraded to SP 4 with no
> problems.
> However, when applying the hotix only the first instance upgraded correctl
y.
> The hotfix install for instances 2 and 3 indicated success but the versio
n
> for both still shows build 2139. Can't seem to get the install to work fo
r
> these instances. Any help would be appreciated.|||Hi
Your answer is Windows Task Scheduler.
See http://msmvps.com/epprecht/archive/...8/28/64380.aspx
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"GManino" <GManino@.discussions.microsoft.com> wrote in message
news:9BBD59DE-12E8-4A0C-AA9B-61B25D031BB3@.microsoft.com...
> We have a active/active W2K3 SQL cluster with 3 instances that was
> upgraded
> to SP4 with the 2148 hotfix. All 3 instances upgraded to SP 4 with no
> problems.
> However, when applying the hotix only the first instance upgraded
> correctly.
> The hotfix install for instances 2 and 3 indicated success but the version
> for both still shows build 2139. Can't seem to get the install to work
> for
> these instances. Any help would be appreciated.|||Does anyone know if this will work for all types of corruption?
"John Bell" wrote:
[vbcol=seagreen]
> Hi
> You may want to re-contact PSS for this as this is a PSS only hotfix!
> John
> "GManino" wrote:
>

Post install processor addition

I am getting ready to install SQL Server 2000 Enterprise
in a new server but wanted to add an additional processor.
Time crunch is making me want to install the software
prior to getting the processor in. My question is whether
SQL will recognize the additional processor after it is
installed or do I have to wait until I have the part
installed? We were intending to allow SQL to use any
available processor for processing. Thanks in advance for
any help.As long as your host computer already has a multi-processing kernal
installed, you should be fine.
--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Rick" <rvia@.vw.vccs.edu> wrote in message
news:0de801c4ac99$ea52b880$a301280a@.phx.gbl...
> I am getting ready to install SQL Server 2000 Enterprise
> in a new server but wanted to add an additional processor.
> Time crunch is making me want to install the software
> prior to getting the processor in. My question is whether
> SQL will recognize the additional processor after it is
> installed or do I have to wait until I have the part
> installed? We were intending to allow SQL to use any
> available processor for processing. Thanks in advance for
> any help.

Post install processor addition

I am getting ready to install SQL Server 2000 Enterprise
in a new server but wanted to add an additional processor.
Time crunch is making me want to install the software
prior to getting the processor in. My question is whether
SQL will recognize the additional processor after it is
installed or do I have to wait until I have the part
installed? We were intending to allow SQL to use any
available processor for processing. Thanks in advance for
any help.
As long as your host computer already has a multi-processing kernal
installed, you should be fine.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Rick" <rvia@.vw.vccs.edu> wrote in message
news:0de801c4ac99$ea52b880$a301280a@.phx.gbl...
> I am getting ready to install SQL Server 2000 Enterprise
> in a new server but wanted to add an additional processor.
> Time crunch is making me want to install the software
> prior to getting the processor in. My question is whether
> SQL will recognize the additional processor after it is
> installed or do I have to wait until I have the part
> installed? We were intending to allow SQL to use any
> available processor for processing. Thanks in advance for
> any help.

Post 2005 SP2 install, no script component can be edited.

Anyone starting to see "Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)" after installing SQL Server 2005 SP2 on x86 machines? Second, how can it be fixed?

After installing SP2, the script component editor will not edit script components created in pre SP2 releases. (I also have Visual Studio 2005 SP1 installed). The script TASK editor will start, but when attempting to open a script COMPONENT in the VSA editor, a script component created for pre-SP2 packages, the following error dialog occurs.

Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)

This same error dialog has occurred on multiple computers, none of them are running Vista (rather Windows XP SP2). All of the pre-existent pre-SP2 script components have Precompile set to true as well, since they are intended for 64 bit machines.

Now, certain posts say, register DLLs in the following directories via:
for %i in (*.dll) do RegSvr32 -s %i.

C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\common\
C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\vsa

One problem with these instruction is that the second directory doesn't even exist, however, a directory called "C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv" does exist, which is perhaps what was meant. Even after registering the DLLs there, the script component editor will not open (erroring out after clicking the "Design Script..." button).

Yes I have similar issue. I cant edit my script component. I am getting an following error message when I click on "Design Script".

Cannot Show Visual Studio for Applications Editor. Engine Returned Unknown Error

Anyone else?

Thanks

Sutha

|||

I haven’t seen anything like this. From the look of it the VSA is installed properly (you mentioned that you can start designer for the script task but not for the script component). Can you design new script components on that machine?

Thanks

|||New SP2 script components and tasks can be created and edited.

Script components created prior to SP2 (at least those created on 2153 and perhaps earlier) cannot be opened, at least on Windows XP. On Windows 2003 Server (32 or 64 bit) I have not observed any issue (the editor open's fine on the same .dtsx that fails to open on an XP machine).|||

I have the exact same issue and here is an interesting addition:

If I add a new script component (without attaching it to anything) and attempt to view the script it actually brings up the script editor with the code of the old script component that I was trying to open in the first place.

I guess I'll have to uninstall SP2 at this point.

Daryl

|||If you're on Vista, try the hotfix:
http://support.microsoft.com/default.aspx/kb/931846|||

This uneditable script component problem is specifically noticed on Windows XP and is unsolved and without reasonable workaround(e.g. total replacement of OS with Win2k3).

The Vista script component create/edit issue is indeed solved with that 931846 hotfix (the receipt of which requires a call to Microsoft PSS as it is not regression tested).

|||I can definitely confirm this exact problem after an install of SS2005 SP2a. Exactly
as described. A little confused, the problem says it is with WinXP Pro - which I have -
but patch is for Vista? Anybody install the patch on XP or found another workaround.|||OK, there are 2 different patches for this. One for WinXP, one for Vista - they have
different patching systems. So if you call MS, make sure they know which one you want.

The patch number and KB article are the same. Welcome to Microsoft....|||Are you saying this is resolved? I don't believe it for one second, and I'll happily admit to being wrong. What is the URL, if you would be so kind?|||I'm having the same problem. Where can I find the XP patch?|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

KB928208|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I am working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

http://support.microsoft.com/default.aspx/kb/928208

You have to call MS to get this.
|||After two disconnects without being able to talk to anybody, a 90 minute wait time on the third try, and two more hours trying get this error solved, we got it to work. At least, some sort of temp solution until a KB / hotfix is available.
Keep in mind this is for a Win Server 2k3 environment and not exactly the most recommended solution.
Anyways, this was my fix.
Go to your pacakge code ( right click the package in the solution explorer and select view code ). Search for every "ReferencePath" and pretty much replace
""C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.DTSRuntimeWrap\" with "C:\WINDOWS\assembly\GAC_32\Microsoft.SqlServer.DTSRuntimeWrap\". (the rightmost reference)
Viola! That's it!

For now, I'll only do this for the packages I need to edit.

I hope this helps.

Thanks,
Alonso|||That's what I sent to Microsoft last night ( swap GAC_MSIL to GAC_32 on the reference path) and the 2153 script component starts working. Didn't post that advice on the forum because I wanted to hear back from Microsoft as to whether that was a legitimate solution, indicative of an underlying issue (perhaps with ngen.exe's queue), or both or neither. I understand that its not the most recommended solution, but its the only solution right now.

Post 2005 SP2 install, no script component can be edited.

Anyone starting to see "Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)" after installing SQL Server 2005 SP2 on x86 machines? Second, how can it be fixed?

After installing SP2, the script component editor will not edit script components created in pre SP2 releases. (I also have Visual Studio 2005 SP1 installed). The script TASK editor will start, but when attempting to open a script COMPONENT in the VSA editor, a script component created for pre-SP2 packages, the following error dialog occurs.

Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)

This same error dialog has occurred on multiple computers, none of them are running Vista (rather Windows XP SP2). All of the pre-existent pre-SP2 script components have Precompile set to true as well, since they are intended for 64 bit machines.

Now, certain posts say, register DLLs in the following directories via:
for %i in (*.dll) do RegSvr32 -s %i.

C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\common\
C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\vsa

One problem with these instruction is that the second directory doesn't even exist, however, a directory called "C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv" does exist, which is perhaps what was meant. Even after registering the DLLs there, the script component editor will not open (erroring out after clicking the "Design Script..." button).

Yes I have similar issue. I cant edit my script component. I am getting an following error message when I click on "Design Script".

Cannot Show Visual Studio for Applications Editor. Engine Returned Unknown Error

Anyone else?

Thanks

Sutha

|||

I haven’t seen anything like this. From the look of it the VSA is installed properly (you mentioned that you can start designer for the script task but not for the script component). Can you design new script components on that machine?

Thanks

|||New SP2 script components and tasks can be created and edited.

Script components created prior to SP2 (at least those created on 2153 and perhaps earlier) cannot be opened, at least on Windows XP. On Windows 2003 Server (32 or 64 bit) I have not observed any issue (the editor open's fine on the same .dtsx that fails to open on an XP machine).
|||

I have the exact same issue and here is an interesting addition:

If I add a new script component (without attaching it to anything) and attempt to view the script it actually brings up the script editor with the code of the old script component that I was trying to open in the first place.

I guess I'll have to uninstall SP2 at this point.

Daryl

|||If you're on Vista, try the hotfix:
http://support.microsoft.com/default.aspx/kb/931846|||

This uneditable script component problem is specifically noticed on Windows XP and is unsolved and without reasonable workaround(e.g. total replacement of OS with Win2k3).

The Vista script component create/edit issue is indeed solved with that 931846 hotfix (the receipt of which requires a call to Microsoft PSS as it is not regression tested).

|||I can definitely confirm this exact problem after an install of SS2005 SP2a. Exactly
as described. A little confused, the problem says it is with WinXP Pro - which I have -
but patch is for Vista? Anybody install the patch on XP or found another workaround.

|||OK, there are 2 different patches for this. One for WinXP, one for Vista - they have
different patching systems. So if you call MS, make sure they know which one you want.

The patch number and KB article are the same. Welcome to Microsoft....

|||Are you saying this is resolved? I don't believe it for one second, and I'll happily admit to being wrong. What is the URL, if you would be so kind?
|||I'm having the same problem. Where can I find the XP patch?|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

KB928208

|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I am working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

http://support.microsoft.com/default.aspx/kb/928208

You have to call MS to get this.
|||After two disconnects without being able to talk to anybody, a 90 minute wait time on the third try, and two more hours trying get this error solved, we got it to work. At least, some sort of temp solution until a KB / hotfix is available.
Keep in mind this is for a Win Server 2k3 environment and not exactly the most recommended solution.
Anyways, this was my fix.
Go to your pacakge code ( right click the package in the solution explorer and select view code ). Search for every "ReferencePath" and pretty much replace
""C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.DTSRuntimeWrap\" with "C:\WINDOWS\assembly\GAC_32\Microsoft.SqlServer.DTSRuntimeWrap\". (the rightmost reference)
Viola! That's it!

For now, I'll only do this for the packages I need to edit.

I hope this helps.

Thanks,
Alonso
|||That's what I sent to Microsoft last night ( swap GAC_MSIL to GAC_32 on the reference path) and the 2153 script component starts working. Didn't post that advice on the forum because I wanted to hear back from Microsoft as to whether that was a legitimate solution, indicative of an underlying issue (perhaps with ngen.exe's queue), or both or neither. I understand that its not the most recommended solution, but its the only solution right now.

Post 2005 SP2 install, no script component can be edited.

Anyone starting to see "Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)" after installing SQL Server 2005 SP2 on x86 machines? Second, how can it be fixed?

After installing SP2, the script component editor will not edit script components created in pre SP2 releases. (I also have Visual Studio 2005 SP1 installed). The script TASK editor will start, but when attempting to open a script COMPONENT in the VSA editor, a script component created for pre-SP2 packages, the following error dialog occurs.

Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)

This same error dialog has occurred on multiple computers, none of them are running Vista (rather Windows XP SP2). All of the pre-existent pre-SP2 script components have Precompile set to true as well, since they are intended for 64 bit machines.

Now, certain posts say, register DLLs in the following directories via:
for %i in (*.dll) do RegSvr32 -s %i.

C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\common\
C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\vsa

One problem with these instruction is that the second directory doesn't even exist, however, a directory called "C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv" does exist, which is perhaps what was meant. Even after registering the DLLs there, the script component editor will not open (erroring out after clicking the "Design Script..." button).

Yes I have similar issue. I cant edit my script component. I am getting an following error message when I click on "Design Script".

Cannot Show Visual Studio for Applications Editor. Engine Returned Unknown Error

Anyone else?

Thanks

Sutha

|||

I haven’t seen anything like this. From the look of it the VSA is installed properly (you mentioned that you can start designer for the script task but not for the script component). Can you design new script components on that machine?

Thanks

|||New SP2 script components and tasks can be created and edited.

Script components created prior to SP2 (at least those created on 2153 and perhaps earlier) cannot be opened, at least on Windows XP. On Windows 2003 Server (32 or 64 bit) I have not observed any issue (the editor open's fine on the same .dtsx that fails to open on an XP machine).
|||

I have the exact same issue and here is an interesting addition:

If I add a new script component (without attaching it to anything) and attempt to view the script it actually brings up the script editor with the code of the old script component that I was trying to open in the first place.

I guess I'll have to uninstall SP2 at this point.

Daryl

|||If you're on Vista, try the hotfix:
http://support.microsoft.com/default.aspx/kb/931846|||

This uneditable script component problem is specifically noticed on Windows XP and is unsolved and without reasonable workaround(e.g. total replacement of OS with Win2k3).

The Vista script component create/edit issue is indeed solved with that 931846 hotfix (the receipt of which requires a call to Microsoft PSS as it is not regression tested).

|||I can definitely confirm this exact problem after an install of SS2005 SP2a. Exactly
as described. A little confused, the problem says it is with WinXP Pro - which I have -
but patch is for Vista? Anybody install the patch on XP or found another workaround.

|||OK, there are 2 different patches for this. One for WinXP, one for Vista - they have
different patching systems. So if you call MS, make sure they know which one you want.

The patch number and KB article are the same. Welcome to Microsoft....

|||Are you saying this is resolved? I don't believe it for one second, and I'll happily admit to being wrong. What is the URL, if you would be so kind?
|||I'm having the same problem. Where can I find the XP patch?|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

KB928208

|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I am working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

http://support.microsoft.com/default.aspx/kb/928208

You have to call MS to get this.
|||After two disconnects without being able to talk to anybody, a 90 minute wait time on the third try, and two more hours trying get this error solved, we got it to work. At least, some sort of temp solution until a KB / hotfix is available.
Keep in mind this is for a Win Server 2k3 environment and not exactly the most recommended solution.
Anyways, this was my fix.
Go to your pacakge code ( right click the package in the solution explorer and select view code ). Search for every "ReferencePath" and pretty much replace
""C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.DTSRuntimeWrap\" with "C:\WINDOWS\assembly\GAC_32\Microsoft.SqlServer.DTSRuntimeWrap\". (the rightmost reference)
Viola! That's it!

For now, I'll only do this for the packages I need to edit.

I hope this helps.

Thanks,
Alonso
|||That's what I sent to Microsoft last night ( swap GAC_MSIL to GAC_32 on the reference path) and the 2153 script component starts working. Didn't post that advice on the forum because I wanted to hear back from Microsoft as to whether that was a legitimate solution, indicative of an underlying issue (perhaps with ngen.exe's queue), or both or neither. I understand that its not the most recommended solution, but its the only solution right now.

Post 2005 SP2 install, no script component can be edited.

Anyone starting to see "Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)" after installing SQL Server 2005 SP2 on x86 machines? Second, how can it be fixed?

After installing SP2, the script component editor will not edit script components created in pre SP2 releases. (I also have Visual Studio 2005 SP1 installed). The script TASK editor will start, but when attempting to open a script COMPONENT in the VSA editor, a script component created for pre-SP2 packages, the following error dialog occurs.

Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)

This same error dialog has occurred on multiple computers, none of them are running Vista (rather Windows XP SP2). All of the pre-existent pre-SP2 script components have Precompile set to true as well, since they are intended for 64 bit machines.

Now, certain posts say, register DLLs in the following directories via:
for %i in (*.dll) do RegSvr32 -s %i.

C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\common\
C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\vsa

One problem with these instruction is that the second directory doesn't even exist, however, a directory called "C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv" does exist, which is perhaps what was meant. Even after registering the DLLs there, the script component editor will not open (erroring out after clicking the "Design Script..." button).

Yes I have similar issue. I cant edit my script component. I am getting an following error message when I click on "Design Script".

Cannot Show Visual Studio for Applications Editor. Engine Returned Unknown Error

Anyone else?

Thanks

Sutha

|||

I haven’t seen anything like this. From the look of it the VSA is installed properly (you mentioned that you can start designer for the script task but not for the script component). Can you design new script components on that machine?

Thanks

|||New SP2 script components and tasks can be created and edited.

Script components created prior to SP2 (at least those created on 2153 and perhaps earlier) cannot be opened, at least on Windows XP. On Windows 2003 Server (32 or 64 bit) I have not observed any issue (the editor open's fine on the same .dtsx that fails to open on an XP machine).|||

I have the exact same issue and here is an interesting addition:

If I add a new script component (without attaching it to anything) and attempt to view the script it actually brings up the script editor with the code of the old script component that I was trying to open in the first place.

I guess I'll have to uninstall SP2 at this point.

Daryl

|||If you're on Vista, try the hotfix:
http://support.microsoft.com/default.aspx/kb/931846|||

This uneditable script component problem is specifically noticed on Windows XP and is unsolved and without reasonable workaround(e.g. total replacement of OS with Win2k3).

The Vista script component create/edit issue is indeed solved with that 931846 hotfix (the receipt of which requires a call to Microsoft PSS as it is not regression tested).

|||I can definitely confirm this exact problem after an install of SS2005 SP2a. Exactly
as described. A little confused, the problem says it is with WinXP Pro - which I have -
but patch is for Vista? Anybody install the patch on XP or found another workaround.|||OK, there are 2 different patches for this. One for WinXP, one for Vista - they have
different patching systems. So if you call MS, make sure they know which one you want.

The patch number and KB article are the same. Welcome to Microsoft....|||Are you saying this is resolved? I don't believe it for one second, and I'll happily admit to being wrong. What is the URL, if you would be so kind?|||I'm having the same problem. Where can I find the XP patch?|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

KB928208|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I am working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

http://support.microsoft.com/default.aspx/kb/928208

You have to call MS to get this.
|||After two disconnects without being able to talk to anybody, a 90 minute wait time on the third try, and two more hours trying get this error solved, we got it to work. At least, some sort of temp solution until a KB / hotfix is available.
Keep in mind this is for a Win Server 2k3 environment and not exactly the most recommended solution.
Anyways, this was my fix.
Go to your pacakge code ( right click the package in the solution explorer and select view code ). Search for every "ReferencePath" and pretty much replace
""C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.DTSRuntimeWrap\" with "C:\WINDOWS\assembly\GAC_32\Microsoft.SqlServer.DTSRuntimeWrap\". (the rightmost reference)
Viola! That's it!

For now, I'll only do this for the packages I need to edit.

I hope this helps.

Thanks,
Alonso|||That's what I sent to Microsoft last night ( swap GAC_MSIL to GAC_32 on the reference path) and the 2153 script component starts working. Didn't post that advice on the forum because I wanted to hear back from Microsoft as to whether that was a legitimate solution, indicative of an underlying issue (perhaps with ngen.exe's queue), or both or neither. I understand that its not the most recommended solution, but its the only solution right now.

Post 2005 SP2 install, no script component can be edited.

Anyone starting to see "Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)" after installing SQL Server 2005 SP2 on x86 machines? Second, how can it be fixed?

After installing SP2, the script component editor will not edit script components created in pre SP2 releases. (I also have Visual Studio 2005 SP1 installed). The script TASK editor will start, but when attempting to open a script COMPONENT in the VSA editor, a script component created for pre-SP2 packages, the following error dialog occurs.

Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)

This same error dialog has occurred on multiple computers, none of them are running Vista (rather Windows XP SP2). All of the pre-existent pre-SP2 script components have Precompile set to true as well, since they are intended for 64 bit machines.

Now, certain posts say, register DLLs in the following directories via:
for %i in (*.dll) do RegSvr32 -s %i.

C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\common\
C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\vsa

One problem with these instruction is that the second directory doesn't even exist, however, a directory called "C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv" does exist, which is perhaps what was meant. Even after registering the DLLs there, the script component editor will not open (erroring out after clicking the "Design Script..." button).

Yes I have similar issue. I cant edit my script component. I am getting an following error message when I click on "Design Script".

Cannot Show Visual Studio for Applications Editor. Engine Returned Unknown Error

Anyone else?

Thanks

Sutha

|||

I haven’t seen anything like this. From the look of it the VSA is installed properly (you mentioned that you can start designer for the script task but not for the script component). Can you design new script components on that machine?

Thanks

|||New SP2 script components and tasks can be created and edited.

Script components created prior to SP2 (at least those created on 2153 and perhaps earlier) cannot be opened, at least on Windows XP. On Windows 2003 Server (32 or 64 bit) I have not observed any issue (the editor open's fine on the same .dtsx that fails to open on an XP machine).
|||

I have the exact same issue and here is an interesting addition:

If I add a new script component (without attaching it to anything) and attempt to view the script it actually brings up the script editor with the code of the old script component that I was trying to open in the first place.

I guess I'll have to uninstall SP2 at this point.

Daryl

|||If you're on Vista, try the hotfix:
http://support.microsoft.com/default.aspx/kb/931846|||

This uneditable script component problem is specifically noticed on Windows XP and is unsolved and without reasonable workaround(e.g. total replacement of OS with Win2k3).

The Vista script component create/edit issue is indeed solved with that 931846 hotfix (the receipt of which requires a call to Microsoft PSS as it is not regression tested).

|||I can definitely confirm this exact problem after an install of SS2005 SP2a. Exactly
as described. A little confused, the problem says it is with WinXP Pro - which I have -
but patch is for Vista? Anybody install the patch on XP or found another workaround.

|||OK, there are 2 different patches for this. One for WinXP, one for Vista - they have
different patching systems. So if you call MS, make sure they know which one you want.

The patch number and KB article are the same. Welcome to Microsoft....

|||Are you saying this is resolved? I don't believe it for one second, and I'll happily admit to being wrong. What is the URL, if you would be so kind?
|||I'm having the same problem. Where can I find the XP patch?|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

KB928208

|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I am working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

http://support.microsoft.com/default.aspx/kb/928208

You have to call MS to get this.
|||After two disconnects without being able to talk to anybody, a 90 minute wait time on the third try, and two more hours trying get this error solved, we got it to work. At least, some sort of temp solution until a KB / hotfix is available.
Keep in mind this is for a Win Server 2k3 environment and not exactly the most recommended solution.
Anyways, this was my fix.
Go to your pacakge code ( right click the package in the solution explorer and select view code ). Search for every "ReferencePath" and pretty much replace
""C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.DTSRuntimeWrap\" with "C:\WINDOWS\assembly\GAC_32\Microsoft.SqlServer.DTSRuntimeWrap\". (the rightmost reference)
Viola! That's it!

For now, I'll only do this for the packages I need to edit.

I hope this helps.

Thanks,
Alonso
|||That's what I sent to Microsoft last night ( swap GAC_MSIL to GAC_32 on the reference path) and the 2153 script component starts working. Didn't post that advice on the forum because I wanted to hear back from Microsoft as to whether that was a legitimate solution, indicative of an underlying issue (perhaps with ngen.exe's queue), or both or neither. I understand that its not the most recommended solution, but its the only solution right now.

Post 2005 SP2 install, no script component can be edited.

Anyone starting to see "Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)" after installing SQL Server 2005 SP2 on x86 machines? Second, how can it be fixed?

After installing SP2, the script component editor will not edit script components created in pre SP2 releases. (I also have Visual Studio 2005 SP1 installed). The script TASK editor will start, but when attempting to open a script COMPONENT in the VSA editor, a script component created for pre-SP2 packages, the following error dialog occurs.

Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio)

This same error dialog has occurred on multiple computers, none of them are running Vista (rather Windows XP SP2). All of the pre-existent pre-SP2 script components have Precompile set to true as well, since they are intended for 64 bit machines.

Now, certain posts say, register DLLs in the following directories via:
for %i in (*.dll) do RegSvr32 -s %i.

C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\common\
C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\vsa

One problem with these instruction is that the second directory doesn't even exist, however, a directory called "C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv" does exist, which is perhaps what was meant. Even after registering the DLLs there, the script component editor will not open (erroring out after clicking the "Design Script..." button).

Yes I have similar issue. I cant edit my script component. I am getting an following error message when I click on "Design Script".

Cannot Show Visual Studio for Applications Editor. Engine Returned Unknown Error

Anyone else?

Thanks

Sutha

|||

I haven’t seen anything like this. From the look of it the VSA is installed properly (you mentioned that you can start designer for the script task but not for the script component). Can you design new script components on that machine?

Thanks

|||New SP2 script components and tasks can be created and edited.

Script components created prior to SP2 (at least those created on 2153 and perhaps earlier) cannot be opened, at least on Windows XP. On Windows 2003 Server (32 or 64 bit) I have not observed any issue (the editor open's fine on the same .dtsx that fails to open on an XP machine).
|||

I have the exact same issue and here is an interesting addition:

If I add a new script component (without attaching it to anything) and attempt to view the script it actually brings up the script editor with the code of the old script component that I was trying to open in the first place.

I guess I'll have to uninstall SP2 at this point.

Daryl

|||If you're on Vista, try the hotfix:
http://support.microsoft.com/default.aspx/kb/931846|||

This uneditable script component problem is specifically noticed on Windows XP and is unsolved and without reasonable workaround(e.g. total replacement of OS with Win2k3).

The Vista script component create/edit issue is indeed solved with that 931846 hotfix (the receipt of which requires a call to Microsoft PSS as it is not regression tested).

|||I can definitely confirm this exact problem after an install of SS2005 SP2a. Exactly
as described. A little confused, the problem says it is with WinXP Pro - which I have -
but patch is for Vista? Anybody install the patch on XP or found another workaround.

|||OK, there are 2 different patches for this. One for WinXP, one for Vista - they have
different patching systems. So if you call MS, make sure they know which one you want.

The patch number and KB article are the same. Welcome to Microsoft....

|||Are you saying this is resolved? I don't believe it for one second, and I'll happily admit to being wrong. What is the URL, if you would be so kind?
|||I'm having the same problem. Where can I find the XP patch?|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

KB928208

|||Yes, resolved to my satisfaction. I got the WinXP patch and it fixed the problem
and I am working fine now. 2 iterations with MS to get the right one. Vista has
a totally new and different patching mechanism, but the patch underneath is the same.

http://support.microsoft.com/default.aspx/kb/928208

You have to call MS to get this.
|||After two disconnects without being able to talk to anybody, a 90 minute wait time on the third try, and two more hours trying get this error solved, we got it to work. At least, some sort of temp solution until a KB / hotfix is available.
Keep in mind this is for a Win Server 2k3 environment and not exactly the most recommended solution.
Anyways, this was my fix.
Go to your pacakge code ( right click the package in the solution explorer and select view code ). Search for every "ReferencePath" and pretty much replace
""C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.DTSRuntimeWrap\" with "C:\WINDOWS\assembly\GAC_32\Microsoft.SqlServer.DTSRuntimeWrap\". (the rightmost reference)
Viola! That's it!

For now, I'll only do this for the packages I need to edit.

I hope this helps.

Thanks,
Alonso
|||That's what I sent to Microsoft last night ( swap GAC_MSIL to GAC_32 on the reference path) and the 2153 script component starts working. Didn't post that advice on the forum because I wanted to hear back from Microsoft as to whether that was a legitimate solution, indicative of an underlying issue (perhaps with ngen.exe's queue), or both or neither. I understand that its not the most recommended solution, but its the only solution right now.

Friday, March 9, 2012

Possible to make RS part of a failover Cluster? SQL 2000

Hi,
I am not able to install Reporting Services (RS) on a Web Farm, but would
like to get it installed and configured on a active/passive Failover Cluster.
What do you think about the following scenario?
1. Install RS on one server and create the databases on the SQL Server
Cluster.
2. Install RS on the second server.
3. Configure the second RS to use the clustered database.
4. Copy the encryption key from the RS installation that created the
databases.
5. Apply the encryption key to the RS installation that did not create the
database.
6. Create RS service as a generic service for the Cluster.
I have not tested this yet, but in theory it should work or?
That may work, but I would not recommend it. I certainly wouldn't try it.
The reason you run SQL Server in a cluster is for high availability. Mixing
your IIS and RS with the SQL Server cluster seems to compromise high
availability, if not defeat the purpose. You may find money well spent on a
separate RS box or two, considering potential support and maintenance
headache you may have otherwise.
Linchi
"Nina" <Nina@.discussions.microsoft.com> wrote in message
news:092B2EBC-3769-4F94-B12F-6CCAEF70B6EC@.microsoft.com...
> Hi,
> I am not able to install Reporting Services (RS) on a Web Farm, but would
> like to get it installed and configured on a active/passive Failover
> Cluster.
> What do you think about the following scenario?
> 1. Install RS on one server and create the databases on the SQL Server
> Cluster.
> 2. Install RS on the second server.
> 3. Configure the second RS to use the clustered database.
> 4. Copy the encryption key from the RS installation that created the
> databases.
> 5. Apply the encryption key to the RS installation that did not create the
> database.
> 6. Create RS service as a generic service for the Cluster.
>
> I have not tested this yet, but in theory it should work or?
|||Thanks Linchi,
I have been doing some more reading. And it seems like some people have made
it “kind of work” , but there is no “One Documentation” on this. And the
information I find is a bit questionable.. and like you say, it can cause
some serious headaches…
I also read that making configuring RS as part of a failover cluster is not
supported by Microsoft. They even do not recommend to make IIS part of a
failover cluster.
I understand that buying one new server or two is ok, but not when you have
four environments, and each would need at least one.
Need to have a think about this one..
Nina
"Linchi Shea" wrote:

> That may work, but I would not recommend it. I certainly wouldn't try it.
> The reason you run SQL Server in a cluster is for high availability. Mixing
> your IIS and RS with the SQL Server cluster seems to compromise high
> availability, if not defeat the purpose. You may find money well spent on a
> separate RS box or two, considering potential support and maintenance
> headache you may have otherwise.
> Linchi
> "Nina" <Nina@.discussions.microsoft.com> wrote in message
> news:092B2EBC-3769-4F94-B12F-6CCAEF70B6EC@.microsoft.com...
>
>
|||If you ever test it or find another solution, could you kindly share it with the world?
************************************************** ********************
Sent via Fuzzy Software @. http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...

Wednesday, March 7, 2012

possible setup.exe exit codes?

As part of our application deployment we have wrapped and automated the SQL Server Express install by launching the setup.exe with our parameters and waiting around for the process to exit.

I had been checking for a Exit Code != 0 to detect errors returned by setup.exe but this does not appear to be foolproof. Several customers' deployments have returned non-zero exit codes, but SQL Express seems to be successfully installed.

I have not found a reference of possible codes returned and their meaning that I could use to fine tune our checking. Does one exist? Or am I going about this the wrong way and should just check for the existence of our instance after setup is complete?

thank you for any input.

I *think* the only other success error code you need to code around is error code 3010, which signifies success, but a reboot is necessary.

Here is a list of other possible Windows Installer error codes:

http://msdn2.microsoft.com/en-us/library/aa368542.aspx

Thanks,
Sam Lester (MSFT)

Saturday, February 25, 2012

Possible Fix SQL Server 2005 Express Install Errors 29503 or 1067

Hello,

I spent days trying repeatedly to install SQL Server 2005 Express edition and always received an error message. I uninstalled SQL Server 2000, cleaned the registry, uninstalled/reinstalled Visual Basic 2005 Express, read all the forums and tried every combination. I always received this failure message:

The SQL Server service failed to start. For more information, see the SQL Server Books Online topics, "How to: View SQL Server 2005 Setup Log Files" and "Starting SQL Server Manually." The error is (1067) The process terminated unexpectedly. Error Number : 29503

If this is the particular error you are receiving, then maybe this post will help.

The solution for me was NOT to uninstall Visual Basic 2005 Express Edition, or install SQL Server 2005 in any particular order vs installing VB 2005 Express.

These are the steps that worked for me. Run setup for SQL Server 2005 Express. On the first setup screen, there is a checkbox that says "Hide advanced setup/installation options" (or somesuch). It is checked by default. UNCHECK IT. (You DO want to select advanced options because the defaults are not working for you.)

Look closely at the screens that follow. Look for the dropdown that says "Install SQL Server as a... Network Service. In the dropdown, change the choice to Local Service.

In another screen, look for the Authentication method. Do NOT use Windows authentication, which is the default. Select Mixed Mode authentication, and provide a strong password.

Now, let it install. For me, it no longer failed. SQL Server installed with no further problems.

Hope this helps somebody (including MS in figuring out how come). It worked for me when nothing else did!

SQL Wizard (who?)

SQl Wizard - I am having this exact same issue on my win xp pro sp2 machine. However, I tried what you suggested and still got the same error. I also had sql 2000 installed prior (uninstalled it prior to installing sql 2005) - did you clean up anything in the registry before you started?

Thanks for your help.....

csqlrun

Monday, February 20, 2012

Posible bugs in MSDE 2000 Service packs

Currently, i am conducting some assessment to upgrade from
MSDE 1.0 to MSDE 2000. I have discover a posible bugs when
i install MSDE 2000 SP 1. When i run the below store
procedure (i execute it from custom application), it has
different result.
In MSDE 2000 without SP, the result is 40 rows, in
MSDE 2000 with SP (I have tried to install SP 1 until SP
3a),
the result is 6 rows. If i check using SQL Profiler,
both (MSDE 2000 original and MSDE 2000 with SP)
executing the following line :
exec sp_executesql N' EXEC "SP1004_GET_USER_DETAIL" @.P1 ,
@.P2 , @.P3 , @.P4 , @.P5 ', N'@.P1 nvarchar(3),@.P2 nvarchar
(3),@.P3 nvarchar(3),@.P4 nvarchar(3),@.P5 nvarchar(3)',
N'ALL', N'ALL', N'ALL', N'ALL', N'ALL'.
I still can not figure it out why the same query give
different result. My assumption is, that there are
something wrong in sp_executesql Store Procedure.
To make it more obvius, here i include the store procedure
that i call.
CREATE Procedure SP1004_GET_USER_DETAIL
(
@.strUserIDVarchar(50),
@.strUserTypeVarchar(50),
@.strUserRoleVarchar(50),
@.strLocationVarchar(50),
@.strBarcodeIDVarchar(50)
)
As
Declare @.strSQL varchar(3000)
Declare @.strCondition varchar(1000)
IF (@.strUserID = 'ALL')
SET @.strCondition = 'A.USER_ID LIKE ''%'''
ELSE
SET @.strCondition = ' A.USER_ID LIKE ''%' +
@.strUserID + '%'''
IF (@.strUserType= 'ALL')
SET @.strCondition = @.strCondition + 'AND
B.USER_TYPE_NAME LIKE ''%'''
ELSE
SET @.strCondition = @.strCondition + ' AND
B.USER_TYPE_NAME LIKE ''%' + @.strUserType + '%'''
IF (@.strUserRole= 'ALL')
SET @.strCondition = @.strCondition + 'AND
C.USER_ROLE_NAME LIKE ''%'''
ELSE
SET @.strCondition = @.strCondition + ' AND
C.USER_ROLE_NAME LIKE ''%' + @.strUserRole + '%'''
IF (@.strLocation= 'ALL')
SET @.strCondition = @.strCondition + 'AND
D.LOCATION_NAME LIKE ''%'''
ELSE
SET @.strCondition = @.strCondition + ' AND
D.LOCATION_NAME LIKE ''%' + @.strLocation + '%'''
IF (@.strBarcodeID= 'ALL')
SET @.strCondition = @.strCondition + 'AND
E.BARCODE_ID LIKE ''%'''
ELSE
SET @.strCondition = @.strCondition + ' AND
D.BARCODE_ID LIKE ''%' + @.strBarcodeID + '%'''
set @.strSQL = '
SELECTA.*
FROMT_USER A
LEFT JOIN T_USER_TYPE B ON A.USER_TYPE_ID =
B.USER_TYPE_ID
LEFT JOIN T_USER_ROLE C ON A.USER_ROLE_ID =
C.USER_ROLE_ID
LEFT JOIN T_LOCATION D ON A.LOCATION_ID =
D.LOCATION_ID
LEFT JOIN T_EMPLOYEE E ON A.BARCODE_ID =
E.BARCODE_ID
WHERE'+@.strCondition
execute(@.strSQL)
return
GO
Thanks In Advance for the help.
Do queries run by an SP show up in Profiler?
| exec sp_executesql N' EXEC "SP1004_GET_USER_DETAIL" @.P1 ,
| @.P2 , @.P3 , @.P4 , @.P5 ', N'@.P1 nvarchar(3),@.P2 nvarchar
| (3),@.P3 nvarchar(3),@.P4 nvarchar(3),@.P5 nvarchar(3)',
| N'ALL', N'ALL', N'ALL', N'ALL', N'ALL'.
So the query should be:
SELECT A.*
FROM T_USER A
LEFT JOIN T_USER_TYPE B ON A.USER_TYPE_ID =
B.USER_TYPE_ID
LEFT JOIN T_USER_ROLE C ON A.USER_ROLE_ID =
C.USER_ROLE_ID
LEFT JOIN T_LOCATION D ON A.LOCATION_ID =
D.LOCATION_ID
LEFT JOIN T_EMPLOYEE E ON A.BARCODE_ID =
E.BARCODE_ID
WHERE
A.USER_ID LIKE ''%''
AND
B.USER_TYPE_NAME LIKE ''%''
AND
C.USER_ROLE_NAME LIKE ''%"
AND
D.LOCATION_NAME LIKE ''%''
AND
E.BARCODE_ID LIKE ''%''
What do you get if you execute that query in QA?
Carl Karsten
|||
>--Original Message--
>Do queries run by an SP show up in Profiler?
>| exec sp_executesql N' EXEC "SP1004_GET_USER_DETAIL"
@.P1 ,
>| @.P2 , @.P3 , @.P4 , @.P5 ', N'@.P1 nvarchar(3),@.P2 nvarchar
>| (3),@.P3 nvarchar(3),@.P4 nvarchar(3),@.P5 nvarchar(3)',
>| N'ALL', N'ALL', N'ALL', N'ALL', N'ALL'.
>So the query should be:
>SELECT A.*
> FROM T_USER A
> LEFT JOIN T_USER_TYPE B ON A.USER_TYPE_ID =
> B.USER_TYPE_ID
> LEFT JOIN T_USER_ROLE C ON A.USER_ROLE_ID =
> C.USER_ROLE_ID
> LEFT JOIN T_LOCATION D ON A.LOCATION_ID =
> D.LOCATION_ID
> LEFT JOIN T_EMPLOYEE E ON A.BARCODE_ID =
> E.BARCODE_ID
> WHERE
>A.USER_ID LIKE ''%''
>AND
>B.USER_TYPE_NAME LIKE ''%''
>AND
>C.USER_ROLE_NAME LIKE ''%"
>AND
>D.LOCATION_NAME LIKE ''%''
>AND
>E.BARCODE_ID LIKE ''%''
>
Nope, in profiler, all i see is this. :
exec sp_executesql N' EXEC "SP1004_GET_USER_DETAIL" @.P1 ,
@.P2 , @.P3 , @.P4 , @.P5 ', N'@.P1 nvarchar(3),@.P2 nvarchar
(3),@.P3 nvarchar(3),@.P4 nvarchar(3),@.P5 nvarchar(3)',
N'ALL', N'ALL', N'ALL', N'ALL', N'ALL'

>What do you get if you execute that query in QA?
>Carl Karsten
>.
I run this :
exec sp_executesql N' EXEC "SP1004_GET_USER_DETAIL" @.P1 ,
@.P2 , @.P3 , @.P4 , @.P5 ', N'@.P1 nvarchar(3),@.P2 nvarchar
(3),@.P3 nvarchar(3),@.P4 nvarchar(3),@.P5 nvarchar(3)',
N'ALL', N'ALL', N'ALL', N'ALL', N'ALL'
in query analyzer and i got 40 rows for MSDE 2000 original
(no Service Pack) and when i execute the query in MSDE
2000 SP 1 until SP3a, i only get 6 rows. That's why i
suspect there are bugs in sp_executesql.
Thank you for your attention.
|||Sorry, i forget to write my name.. below is my answer
[vbcol=seagreen]
>@.P1 ,
nvarchar[vbcol=seagreen]
Nope, in profiler, all i see is this. :
exec sp_executesql N' EXEC "SP1004_GET_USER_DETAIL" @.P1 ,
@.P2 , @.P3 , @.P4 , @.P5 ', N'@.P1 nvarchar(3),@.P2 nvarchar
(3),@.P3 nvarchar(3),@.P4 nvarchar(3),@.P5 nvarchar(3)',
N'ALL', N'ALL', N'ALL', N'ALL', N'ALL'
[vbcol=seagreen]
I run this :
exec sp_executesql N' EXEC "SP1004_GET_USER_DETAIL" @.P1 ,
@.P2 , @.P3 , @.P4 , @.P5 ', N'@.P1 nvarchar(3),@.P2 nvarchar
(3),@.P3 nvarchar(3),@.P4 nvarchar(3),@.P5 nvarchar(3)',
N'ALL', N'ALL', N'ALL', N'ALL', N'ALL'
in query analyzer and i got 40 rows for MSDE 2000 original
(no Service Pack) and when i execute the query in MSDE
2000 SP 1, SP2, even SP3a, i only get 6 rows. That's why i
suspect there are bugs in sp_executesql.
Thank you for your attention.
>.
>
|||"Abraham" <abraham_bukit-NOSPAM-@.hotmail.com> wrote in message
news:287fc01c463f3$0d89bd70$a301280a@.phx.gbl...
| Sorry, i forget to write my name.. below is my answer
|
|
| >>--Original Message (Carl Karsten)--
| >>Do queries run by an SP show up in Profiler?
| >>
| >>| exec sp_executesql N' EXEC "SP1004_GET_USER_DETAIL"
| >@.P1 ,
| >>| @.P2 , @.P3 , @.P4 , @.P5 ', N'@.P1 nvarchar(3),@.P2
| nvarchar
| >>| (3),@.P3 nvarchar(3),@.P4 nvarchar(3),@.P5 nvarchar(3)',
| >>| N'ALL', N'ALL', N'ALL', N'ALL', N'ALL'.
| >>
| >>So the query should be:
| >>
| >>SELECT A.*
| >> FROM T_USER A
| >> LEFT JOIN T_USER_TYPE B ON A.USER_TYPE_ID =
| >> B.USER_TYPE_ID
| >> LEFT JOIN T_USER_ROLE C ON A.USER_ROLE_ID =
| >> C.USER_ROLE_ID
| >> LEFT JOIN T_LOCATION D ON A.LOCATION_ID =
| >> D.LOCATION_ID
| >> LEFT JOIN T_EMPLOYEE E ON A.BARCODE_ID =
| >> E.BARCODE_ID
| >> WHERE
| >>A.USER_ID LIKE ''%''
| >>AND
| >>B.USER_TYPE_NAME LIKE ''%''
| >>AND
| >>C.USER_ROLE_NAME LIKE ''%"
| >>AND
| >>D.LOCATION_NAME LIKE ''%''
| >>AND
| >>E.BARCODE_ID LIKE ''%''
| >>
|
| Nope, in profiler, all i see is this. :
| exec sp_executesql N' EXEC "SP1004_GET_USER_DETAIL" @.P1 ,
| @.P2 , @.P3 , @.P4 , @.P5 ', N'@.P1 nvarchar(3),@.P2 nvarchar
| (3),@.P3 nvarchar(3),@.P4 nvarchar(3),@.P5 nvarchar(3)',
| N'ALL', N'ALL', N'ALL', N'ALL', N'ALL'
|
| >>
| >>What do you get if you execute that query in QA?
| >>
| >>Carl Karsten
| >>.
|
| I run this :
| exec sp_executesql N' EXEC "SP1004_GET_USER_DETAIL" @.P1 ,
| @.P2 , @.P3 , @.P4 , @.P5 ', N'@.P1 nvarchar(3),@.P2 nvarchar
| (3),@.P3 nvarchar(3),@.P4 nvarchar(3),@.P5 nvarchar(3)',
| N'ALL', N'ALL', N'ALL', N'ALL', N'ALL'
| in query analyzer and i got 40 rows for MSDE 2000 original
| (no Service Pack) and when i execute the query in MSDE
| 2000 SP 1, SP2, even SP3a, i only get 6 rows. That's why i
| suspect there are bugs in sp_executesql.
| Thank you for your attention.
| >
| >.
Lets try this again...
What do you get when you run the query I posted?
|||
>--Original Message--
>"Abraham" <abraham_bukit-NOSPAM-@.hotmail.com> wrote in
message
>news:287fc01c463f3$0d89bd70$a301280a@.phx.gbl...
>| Sorry, i forget to write my name.. below is my answer
>|

>| >>So the query should be:
>| >>
>| >>SELECT A.*
>| >> FROM T_USER A
>| >> LEFT JOIN T_USER_TYPE B ON A.USER_TYPE_ID =
>| >> B.USER_TYPE_ID
>| >> LEFT JOIN T_USER_ROLE C ON A.USER_ROLE_ID =
>| >> C.USER_ROLE_ID
>| >> LEFT JOIN T_LOCATION D ON A.LOCATION_ID =
>| >> D.LOCATION_ID
>| >> LEFT JOIN T_EMPLOYEE E ON A.BARCODE_ID =
>| >> E.BARCODE_ID
>| >> WHERE
>| >>A.USER_ID LIKE ''%''
>| >>AND
>| >>B.USER_TYPE_NAME LIKE ''%''
>| >>AND
>| >>C.USER_ROLE_NAME LIKE ''%"
>| >>AND
>| >>D.LOCATION_NAME LIKE ''%''
>| >>AND
>| >>E.BARCODE_ID LIKE ''%''
>| >>
>|

>Lets try this again...
>What do you get when you run the query I posted?
>.
>
I try the query in QA and it has the same result, in MSDE
2000 original has 40 rows, and in MSDE 2000 SP 1 has 6
rows. I guess my first assumpsion is wrong, it is not
sp_executesql that need to be fixed. But does this mean
there are something wrong with left join?
|||| >| >>SELECT A.*
| >| >> FROM T_USER A
| >| >> LEFT JOIN T_USER_TYPE B ON A.USER_TYPE_ID =
| >| >> B.USER_TYPE_ID
| >| >> LEFT JOIN T_USER_ROLE C ON A.USER_ROLE_ID =
| >| >> C.USER_ROLE_ID
| >| >> LEFT JOIN T_LOCATION D ON A.LOCATION_ID =
| >| >> D.LOCATION_ID
| >| >> LEFT JOIN T_EMPLOYEE E ON A.BARCODE_ID =
| >| >> E.BARCODE_ID
| >| >> WHERE
| >| >>A.USER_ID LIKE ''%''
| >| >>AND
| >| >>B.USER_TYPE_NAME LIKE ''%''
| >| >>AND
| >| >>C.USER_ROLE_NAME LIKE ''%"
| >| >>AND
| >| >>D.LOCATION_NAME LIKE ''%''
| >| >>AND
| >| >>E.BARCODE_ID LIKE ''%''
| I try the query in QA and it has the same result, in MSDE
| 2000 original has 40 rows, and in MSDE 2000 SP 1 has 6
| rows. I guess my first assumpsion is wrong, it is not
| sp_executesql that need to be fixed. But does this mean
| there are something wrong with left join?
Wow.
A tough question is: Which server returns the correct results?
But don't try to answer that yet. there is probably a much simpler question.
A few easy questions:
0. apply SP3 and see if that make it the same as RTM. if so, I am guessing it
is a bug in SP1 that was fixed and we should just forget all this.
1. Do any of the fields in the WHERE have a null in the table?
select count(*) from T_USER where USER_ID is null
(repeat for USER_TYPE_NAM, .USER_ROLE_NAME , LOCATION_NAME, BARCODE_ID)
2. Start removing expressions from the WHERE and see if the results change in
either server
( remove the AND E.BARCODE_ID LIKE ''%''... then the next...)3
3. in QA change the result type to text: Menu, Query, Results in Text Ctrl-T.
change SELECT A.* to SELECT USER_ID,USER_TYPE_NAM, .USER_ROLE_NAME ,
LOCATION_NAME, BARCODE_ID run the query on both servers. find a row in the RTM
(that's what a server with no SP is called) that doesn't exist in SP1. paste it
here.
Carl Karsten
|||
>--Original Message--
>Wow.
>A tough question is: Which server returns the correct
results?
>But don't try to answer that yet. there is probably a
much simpler question.
>A few easy questions:
>0. apply SP3 and see if that make it the same as RTM. if
so, I am guessing it
>is a bug in SP1 that was fixed and we should just forget
all this.
>1. Do any of the fields in the WHERE have a null in the
table?
>select count(*) from T_USER where USER_ID is null
>(repeat for USER_TYPE_NAM, .USER_ROLE_NAME ,
LOCATION_NAME, BARCODE_ID)
>2. Start removing expressions from the WHERE and see if
the results change in
>either server
>( remove the AND E.BARCODE_ID LIKE ''%''... then the
next...)3
>3. in QA change the result type to text: Menu, Query,
Results in Text Ctrl-T.
>change SELECT A.* to SELECT
USER_ID,USER_TYPE_NAM, .USER_ROLE_NAME ,
>LOCATION_NAME, BARCODE_ID run the query on both servers.
find a row in the RTM
>(that's what a server with no SP is called) that doesn't
exist in SP1. paste it
>here.
>Carl Karsten
>
I check the table and i found that the query only display
result for user that has barcode_id (barcode_id not null)
in SP1, SP2 and SP3a. If i run it in RTM, it will display
all user regardles they have barcode_id or not. If i
remove the AND E.BARCODE_ID LIKE '%' in MSDE with SP
(SP1,SP2, and SP3a), then the result is correct (40 rows).
I wonder, is it a bugs or fixes? If it is a fixes,
considering that with MSDE RTM i can run my queries
without a problem, maybe i prefer not to install the
Service Pack at all and use MSDE 2000 RTM for my
application. But, if it is a bugs, i hope microsoft can
fix it in the next Service Pack.
Thank you,
Abraham
||||
| I check the table and i found that the query only display
| result for user that has barcode_id (barcode_id not null)
| in SP1, SP2 and SP3a. If i run it in RTM, it will display
| all user regardles they have barcode_id or not. If i
| remove the AND E.BARCODE_ID LIKE '%' in MSDE with SP
| (SP1,SP2, and SP3a), then the result is correct (40 rows).
|
| I wonder, is it a bugs or fixes? If it is a fixes,
| considering that with MSDE RTM i can run my queries
| without a problem, maybe i prefer not to install the
| Service Pack at all and use MSDE 2000 RTM for my
| application. But, if it is a bugs, i hope microsoft can
| fix it in the next Service Pack.
I think you have it backwards: RTM had a bug, it was fixed in SP1.
If part of your query is AND E.BARCODE_ID LIKE '%' then an item where BARCODE_ID
is null should not be included, because null is not like anything. So it should
not be included.
If you need it to be included, then your query needs to specify that:
AND ( E.BARCODE_ID LIKE '%' or E.BARCODE_ID is null )
Carl K