Showing posts with label computer. Show all posts
Showing posts with label computer. Show all posts

Friday, March 30, 2012

Having trouble installing SQL Server 2005 SP2

The computer is a Windows 2003 R2 Enterprise 32-bit installed in a Windows
2003 R2 native AD domain/forest, and has WSUS/IIS6 running as well as SQL
Server 2005 standard. When trying to install it fails with the following
event log entry:
Event Type: Error
Event Source: Windows Update Agent
Event Category: Installation
Event ID: 20
Date: 3/8/2007
Time: 10:44:39 AM
User: N/A
Computer: BLACKDOG
Description:
Installation Failure: Windows failed to install the following update with
error 0x80070643: Microsoft SQL Server 2005 Service Pack 2 (KB 921896).
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 57 69 6e 33 32 48 52 65 Win32HRe
0008: 73 75 6c 74 3d 30 78 38 sult=0x8
0010: 30 30 37 30 36 34 33 20 0070643
0018: 55 70 64 61 74 65 49 44 UpdateID
0020: 3d 7b 41 37 46 46 45 42 ={A7FFEB
0028: 45 33 2d 41 46 34 43 2d E3-AF4C-
0030: 34 32 38 46 2d 41 34 44 428F-A4D
0038: 38 2d 33 38 41 41 36 46 8-38AA6F
0040: 39 38 35 37 36 32 7d 20 985762}
0048: 52 65 76 69 73 69 6f 6e Revision
0050: 4e 75 6d 62 65 72 3d 31 Number=1
0058: 30 31 20 00 01 .
Any help debugging this would be appreciated.
--
Edward Ray
CCIE Security, CISSP, GCIA Gold, GCIH Gold, MCSE+Security, PEHi, Edward,
I understand that the SQL Server 2005 SP2 failed to be installed on your
Windows 2003 R2 Enterprise Edition running SQL Server 2005 STD. The error
code is 0x80070643.
If I have misunderstood, please let me know.
The error code indicates that fatal error during the installation.
Unfortunately we could not get more information from this message.
Could you please mail me the installation logs ( C:\WINDOWS\Hotfix ) for
further research? My email address is changliw_at_microsoft_dot_com.
If the hotfix logs were not generated, I recommend that you use FileMon amd
RegMon to monitor the SP2 setup progress and mail me the logs for further
research.
Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
======================================================When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================|||i got this same error. would be very interested to hear any
explanation and/or workaround. i can provide whatever info is needed,
but i already submitted it via the windows crash feedback thing.
many thanks
tim|||As per your request I have sent you the error and filemon logs.
Edward Ray
CCIE Security, CISSP, GCIA Gold, GCIH Gold, MCSE+Security, PE
"Charles Wang[MSFT]" <changliw@.online.microsoft.com> wrote in message
news:MXO8hufYHHA.2372@.TK2MSFTNGHUB02.phx.gbl...
> Hi, Edward,
> I understand that the SQL Server 2005 SP2 failed to be installed on your
> Windows 2003 R2 Enterprise Edition running SQL Server 2005 STD. The error
> code is 0x80070643.
> If I have misunderstood, please let me know.
> The error code indicates that fatal error during the installation.
> Unfortunately we could not get more information from this message.
> Could you please mail me the installation logs ( C:\WINDOWS\Hotfix ) for
> further research? My email address is changliw_at_microsoft_dot_com.
> If the hotfix logs were not generated, I recommend that you use FileMon
> amd
> RegMon to monitor the SP2 setup progress and mail me the logs for further
> research.
> Best regards,
> Charles Wang
> Microsoft Online Community Support
> =====================================================> Get notification to my posts through email? Please refer to:
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications
> If you are using Outlook Express, please make sure you clear the check box
> "Tools/Options/Read: Get 300 headers at a time" to see your reply
> promptly.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscriptions/support/default.aspx.
> ======================================================> When responding to posts, please "Reply to Group" via
> your newsreader so that others may learn and benefit
> from this issue.
> ======================================================> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> ======================================================>
>
>|||Hi, Edward,
Thanks for your email response.
I checked your FileMon log, and found many errors like the following:
5473 11:14:52.094 PM svchost.exe:1680 FASTIO_QUERY_OPEN C:\Program
Files\Microsoft SQL Server\90\DTS\Binn\SRCLIENT.DLL NOT FOUND Attributes:
Error
5474 11:14:52.094 PM svchost.exe:1680 FASTIO_QUERY_OPEN C:\Program
Files\Microsoft SQL Server\90\Tools\binn\SRCLIENT.DLL NOT FOUND Attributes:
Error
5475 11:14:52.094 PM svchost.exe:1680 FASTIO_QUERY_OPEN C:\Program
Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SRCLIENT.DLL
NOT FOUND Attributes: Error
Also, from the log:
102 11:14:44.058 PM svchost.exe:1680 FASTIO_DEVICE_CONTROL
C:\WINDOWS\SoftwareDistribution\DataStore\Logs FAILURE IOCTL: 0x4D0008
It indicates that not enough storage is available to process this command.
Could you please check if the files paths are existed and if there is
enough disk space during the setup process?
Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
======================================================When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================|||Charles, please help!
My problem is almost the same as Edward's. I have tried more than 5 times
to install the Microsoft SQL Server 2005 Express Edition Service pack and
every time I get the message: Updates were unable to be successfully
installed.
I have no error code: none comes up. I also have no hotfix file in the
Windows directory. What is filemon? How do I access it to give you more
info?
My computer has also been running slower since I installed Office 2007, but
I know that's another issue. It freezes if it has been on for awhile, and
programs are slow to open and close. I maintain my computer, I have all the
necessary virus, firewall, spyware, whatever -- so what could be the problem?
My computer is a Dell, about 8 months old, running with XP Media edition.
Thanks for your help. I am getting desperate.
Thanks,
Marla
"Charles Wang[MSFT]" wrote:
> Hi, Edward,
> Thanks for your email response.
> I checked your FileMon log, and found many errors like the following:
> 5473 11:14:52.094 PM svchost.exe:1680 FASTIO_QUERY_OPEN C:\Program
> Files\Microsoft SQL Server\90\DTS\Binn\SRCLIENT.DLL NOT FOUND Attributes:
> Error
> 5474 11:14:52.094 PM svchost.exe:1680 FASTIO_QUERY_OPEN C:\Program
> Files\Microsoft SQL Server\90\Tools\binn\SRCLIENT.DLL NOT FOUND Attributes:
> Error
> 5475 11:14:52.094 PM svchost.exe:1680 FASTIO_QUERY_OPEN C:\Program
> Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SRCLIENT.DLL
> NOT FOUND Attributes: Error
> Also, from the log:
> 102 11:14:44.058 PM svchost.exe:1680 FASTIO_DEVICE_CONTROL
> C:\WINDOWS\SoftwareDistribution\DataStore\Logs FAILURE IOCTL: 0x4D0008
> It indicates that not enough storage is available to process this command.
> Could you please check if the files paths are existed and if there is
> enough disk space during the setup process?
> Best regards,
> Charles Wang
> Microsoft Online Community Support
> =====================================================> Get notification to my posts through email? Please refer to:
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications
> If you are using Outlook Express, please make sure you clear the check box
> "Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscriptions/support/default.aspx.
> ======================================================> When responding to posts, please "Reply to Group" via
> your newsreader so that others may learn and benefit
> from this issue.
> ======================================================> This posting is provided "AS IS" with no warranties, and confers no rights.
> ======================================================>
>

Wednesday, March 28, 2012

Having Problems Installing SQL Server 2005 Express

I am running WinXP Home edition, and I was trying to install SQL Server Express, but the error message is too vague for me fix. It says my computer lacks the "Service Pack Requirements" to run the software, but I'm afraid I don't know which service pack requirements the error is talking about. What Service Pack do I need to download?

Here is the report from the install:

System Configuration Check

- WMI Service Requirement (Success)

Messages

WMI Service Requirement

Check Passed

- MSXML Requirement (Success)

Messages

MSXML Requirement

Check Passed

- Operating System Minimum Level Requirement (Success)

Messages

Operating System Minimum Level Requirement

Check Passed

- Operating System Service Pack Level Requirement. (Error)

MessagesOperating System Service Pack Level Requirement.

The current operating system does not meet Service Pack level requirements for this SQL Server release. Install the most recent Service Pack from the Microsoft download center at http://go.microsoft.com/fwlink/?LinkId=50380, and then run SQL Server Setup again. For hardware and software requirements, see the readme file or SQL Server Books Online.

- SQL Server Edition Operating System Compatibility (Success)

Messages

SQL Server Edition Operating System Compatibility

Check Passed

- Minimum Hardware Requirement (Warning)

Messages

Minimum Hardware Requirement

The current system does not meet the recommended hardware requirements for this SQL Server release. For detailed hardware and software requirements, see the readme file or SQL Server Books Online.

- Pending Reboot Requirement (Success)

Messages

Pending Reboot Requirement

Check Passed

- Default Installation Path Permission Requirement (Success)

Messages

Default Installation Path Permission Requirement

Check Passed

- Internet Explorer Requirement (Success)

Messages

Internet Explorer Requirement

Check Passed

- COM Plus Catalog Requirement (Success)

Messages

COM Plus Catalog Requirement

Check Passed

- ASP.Net Version Registration Requirement (Success)

Messages

ASP.Net Version Registration Requirement

Check Passed

- Minimum MDAC Version Requirement (Success)

Messages

Minimum MDAC Version Requirement

Check Passed

- Edition Change Check (Success)

Messages

Edition Change Check

Check Passed

THe same requirements for Windows XP Professional applies to XP Home:

http://www.microsoft.com/sql/editions/express/sysreqs.mspx

YOu nedd SP2 in order to have the setup working.

HTH, Jens Suessmeyer.


http://www.sqlserver2005.de

|||I am having the same problem. But I have XP Professional SP2 installed. What more could I need?|||I don′t know if that also applies to the .NET Framework existance, because I already has it on my computers. But do you have .NET Framework installed (2.0) ?

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de

|||

I installed the Sp2 and problem resolved

Having Problems Installing SQL Server 2005 Express

I am running WinXP Home edition, and I was trying to install SQL Server Express, but the error message is too vague for me fix. It says my computer lacks the "Service Pack Requirements" to run the software, but I'm afraid I don't know which service pack requirements the error is talking about. What Service Pack do I need to download?

Here is the report from the install:

System Configuration Check

- WMI Service Requirement (Success)

Messages

WMI Service Requirement

Check Passed

- MSXML Requirement (Success)

Messages

MSXML Requirement

Check Passed

- Operating System Minimum Level Requirement (Success)

Messages

Operating System Minimum Level Requirement

Check Passed

- Operating System Service Pack Level Requirement. (Error)

MessagesOperating System Service Pack Level Requirement.

The current operating system does not meet Service Pack level requirements for this SQL Server release. Install the most recent Service Pack from the Microsoft download center at http://go.microsoft.com/fwlink/?LinkId=50380, and then run SQL Server Setup again. For hardware and software requirements, see the readme file or SQL Server Books Online.

- SQL Server Edition Operating System Compatibility (Success)

Messages

SQL Server Edition Operating System Compatibility

Check Passed

- Minimum Hardware Requirement (Warning)

Messages

Minimum Hardware Requirement

The current system does not meet the recommended hardware requirements for this SQL Server release. For detailed hardware and software requirements, see the readme file or SQL Server Books Online.

- Pending Reboot Requirement (Success)

Messages

Pending Reboot Requirement

Check Passed

- Default Installation Path Permission Requirement (Success)

Messages

Default Installation Path Permission Requirement

Check Passed

- Internet Explorer Requirement (Success)

Messages

Internet Explorer Requirement

Check Passed

- COM Plus Catalog Requirement (Success)

Messages

COM Plus Catalog Requirement

Check Passed

- ASP.Net Version Registration Requirement (Success)

Messages

ASP.Net Version Registration Requirement

Check Passed

- Minimum MDAC Version Requirement (Success)

Messages

Minimum MDAC Version Requirement

Check Passed

- Edition Change Check (Success)

Messages

Edition Change Check

Check Passed

THe same requirements for Windows XP Professional applies to XP Home:

http://www.microsoft.com/sql/editions/express/sysreqs.mspx

YOu nedd SP2 in order to have the setup working.

HTH, Jens Suessmeyer.


http://www.sqlserver2005.de

|||I am having the same problem. But I have XP Professional SP2 installed. What more could I need?|||I don′t know if that also applies to the .NET Framework existance, because I already has it on my computers. But do you have .NET Framework installed (2.0) ?

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de

|||

I installed the Sp2 and problem resolved

Having Problems Installing SQL Server 2005 Express

I am running WinXP Home edition, and I was trying to install SQL Server Express, but the error message is too vague for me fix. It says my computer lacks the "Service Pack Requirements" to run the software, but I'm afraid I don't know which service pack requirements the error is talking about. What Service Pack do I need to download?

Here is the report from the install:

System Configuration Check

- WMI Service Requirement (Success)

Messages

WMI Service Requirement

Check Passed

- MSXML Requirement (Success)

Messages

MSXML Requirement

Check Passed

- Operating System Minimum Level Requirement (Success)

Messages

Operating System Minimum Level Requirement

Check Passed

- Operating System Service Pack Level Requirement. (Error)

MessagesOperating System Service Pack Level Requirement.

The current operating system does not meet Service Pack level requirements for this SQL Server release. Install the most recent Service Pack from the Microsoft download center at http://go.microsoft.com/fwlink/?LinkId=50380, and then run SQL Server Setup again. For hardware and software requirements, see the readme file or SQL Server Books Online.

- SQL Server Edition Operating System Compatibility (Success)

Messages

SQL Server Edition Operating System Compatibility

Check Passed

- Minimum Hardware Requirement (Warning)

Messages

Minimum Hardware Requirement

The current system does not meet the recommended hardware requirements for this SQL Server release. For detailed hardware and software requirements, see the readme file or SQL Server Books Online.

- Pending Reboot Requirement (Success)

Messages

Pending Reboot Requirement

Check Passed

- Default Installation Path Permission Requirement (Success)

Messages

Default Installation Path Permission Requirement

Check Passed

- Internet Explorer Requirement (Success)

Messages

Internet Explorer Requirement

Check Passed

- COM Plus Catalog Requirement (Success)

Messages

COM Plus Catalog Requirement

Check Passed

- ASP.Net Version Registration Requirement (Success)

Messages

ASP.Net Version Registration Requirement

Check Passed

- Minimum MDAC Version Requirement (Success)

Messages

Minimum MDAC Version Requirement

Check Passed

- Edition Change Check (Success)

Messages

Edition Change Check

Check Passed

THe same requirements for Windows XP Professional applies to XP Home:

http://www.microsoft.com/sql/editions/express/sysreqs.mspx

YOu nedd SP2 in order to have the setup working.

HTH, Jens Suessmeyer.


http://www.sqlserver2005.de

|||I am having the same problem. But I have XP Professional SP2 installed. What more could I need?|||I don′t know if that also applies to the .NET Framework existance, because I already has it on my computers. But do you have .NET Framework installed (2.0) ?

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de

|||

I installed the Sp2 and problem resolved

Friday, March 23, 2012

Have SQL report IP of query-er

I am trying to come up with a way to save the IP of the last computer that ran an update in our servers. I don't want to have to re-write the .net code, so I am wondering if there is a way, using functions available in SQL 2000 that I can get the IP of the machine running the update.

I know that SQL server 'knows' this information because it can log it in it's log files, but I don't know how to get at it from a stored procedure.

Thanks.

DECLARE @.Hostname VARCHAR(255)
SET @.Hostname=host_name()
CREATETABLE #Results
(
Results VARCHAR(4000)
)

DECLARE @.Commandstring VARCHAR(300)
SET @.Commandstring='ping '+ @.Hostname
INSERTINTO #Results
EXEC master..xp_cmdshell @.Commandstring

SelectDISTINCTSUBSTRING(Results,12,CHARINDEX(':',Results)-12)AS HostIpAdressfrom #Results
Where ResultsLIKE'Reply from%'

DROPTABLE #Results

Have Insert statement, need equivalent Update.

Using ms sql 2000
I have 2 tables.
I have a table which has information regarding a computer scan. Each
record in this table has a column called MAC which is the unique ID for
each Scan. The table in question holds the various scan results of
every scan from different computers. I have an insert statement that
works however I am having troulbe getting and update statement out of
it, not sure if I'm using the correct method to insert and thats why or
if I'm just missing something. Anyway the scan results is stored as an
XML document(@.iTree) so I have a temp table that holds the relevent
info from that. Here is my Insert statement for the temporary table.
INSERT INTO #temp
SELECT * FROM openxml(@.iTree,
'ComputerScan/scans/scan/scanattributes/scanattribute', 1)
WITH(
ID nvarchar(50) './@.ID',
ParentID nvarchar(50) './@.ParentID',
Name nvarchar(50) './@.Name',
scanattribute nvarchar(50) '.'
)
Now here is the insert statement for the table I am having trouble
with.
INSERT INTO tblScanDetail (MAC, GUIID, GUIParentID, ScanAttributeID,
ScanID, AttributeValue, DateCreated, LastModified)
SELECT @.MAC, #temp.ID, #temp.ParentID,
tblScanAttribute.ScanAttributeID, tblScan.ScanID,
#temp.scanattribute, DateCreated = getdate(), LastModified =
getdate()
FROM tblScan, tblScanAttribute JOIN #temp ON tblScanAttribute.Name =
#temp.Name
If there is a way to do this without the temporary table that would be
great, but I haven't figured a way around it yet, if anyone has any
ideas that would be great, thanks.Because your procedure don't use sp_executeSql you can use a table variable,
not a temp table.
Declare @.Tab table
(
Field1 nvarchar(10),
Field2 int,
...(exactly the fields in the xml file)
)
INSERT INTO tblScanDetail (MAC, GUIID, GUIParentID, ScanAttributeID,
ScanID, AttributeValue, DateCreated, LastModified)
SELECT @.MAC, @.Tab.ID, @.TabParentID,
tblScanAttribute.ScanAttributeID, tblScan.ScanID,
@.Tab.scanattribute, getdate(), getdate()
FROM tblScan
INNER JOIN tblScanAttribute
JOIN@.Tab ON tblScanAttribute.Name =
@.Tab.Name
Of course fields must match...
Hope it helps
Benga.
"rhaazy" <rhaazy@.gmail.com> wrote in message
news:1151351218.116752.197980@.m73g2000cwd.googlegroups.com...
> Using ms sql 2000
> I have 2 tables.
> I have a table which has information regarding a computer scan. Each
> record in this table has a column called MAC which is the unique ID for
> each Scan. The table in question holds the various scan results of
> every scan from different computers. I have an insert statement that
> works however I am having troulbe getting and update statement out of
> it, not sure if I'm using the correct method to insert and thats why or
> if I'm just missing something. Anyway the scan results is stored as an
> XML document(@.iTree) so I have a temp table that holds the relevent
> info from that. Here is my Insert statement for the temporary table.
> INSERT INTO #temp
> SELECT * FROM openxml(@.iTree,
> 'ComputerScan/scans/scan/scanattributes/scanattribute', 1)
> WITH(
> ID nvarchar(50) './@.ID',
> ParentID nvarchar(50) './@.ParentID',
> Name nvarchar(50) './@.Name',
> scanattribute nvarchar(50) '.'
> )
>
> Now here is the insert statement for the table I am having trouble
> with.
> INSERT INTO tblScanDetail (MAC, GUIID, GUIParentID, ScanAttributeID,
> ScanID, AttributeValue, DateCreated, LastModified)
> SELECT @.MAC, #temp.ID, #temp.ParentID,
> tblScanAttribute.ScanAttributeID, tblScan.ScanID,
> #temp.scanattribute, DateCreated = getdate(), LastModified =
> getdate()
> FROM tblScan, tblScanAttribute JOIN #temp ON tblScanAttribute.Name =
> #temp.Name
> If there is a way to do this without the temporary table that would be
> great, but I haven't figured a way around it yet, if anyone has any
> ideas that would be great, thanks.
>|||While this is good to know my real problem is that I need the statement
that will do what my insert does accept I need it to be an update
statement. I need the update because an insert is only going to happen
once for each client.
Benga wrote:
> Because your procedure don't use sp_executeSql you can use a table variabl
e,
> not a temp table.
> Declare @.Tab table
> (
> Field1 nvarchar(10),
> Field2 int,
> ...(exactly the fields in the xml file)
> )
> INSERT INTO tblScanDetail (MAC, GUIID, GUIParentID, ScanAttributeID,
> ScanID, AttributeValue, DateCreated, LastModified)
> SELECT @.MAC, @.Tab.ID, @.TabParentID,
> tblScanAttribute.ScanAttributeID, tblScan.ScanID,
> @.Tab.scanattribute, getdate(), getdate()
> FROM tblScan
> INNER JOIN tblScanAttribute
> JOIN@.Tab ON tblScanAttribute.Name =
> @.Tab.Name
> Of course fields must match...
> Hope it helps
> Benga.
> "rhaazy" <rhaazy@.gmail.com> wrote in message
> news:1151351218.116752.197980@.m73g2000cwd.googlegroups.com...|||Fixed it, no problems.
rhaazy wrote:
> While this is good to know my real problem is that I need the statement
> that will do what my insert does accept I need it to be an update
> statement. I need the update because an insert is only going to happen
> once for each client.
> Benga wrote:

Have Insert statement, need equivalent Update.

Using ms sql 2000
I have 2 tables.
I have a table which has information regarding a computer scan. Each
record in this table has a column called MAC which is the unique ID for

each Scan. The table in question holds the various scan results of
every scan from different computers. I have an insert statement that
works however I am having troulbe getting and update statement out of
it, not sure if I'm using the correct method to insert and thats why or

if I'm just missing something. Anyway the scan results is stored as an

XML document(@.iTree) so I have a temp table that holds the relevent
info from that. Here is my Insert statement for the temporary table.

INSERT INTO #temp
SELECT * FROM openxml(@.iTree,
'ComputerScan/scans/scan/scanattributes/scanattribute', 1)
WITH(
ID nvarchar(50) './@.ID',
ParentID nvarchar(50) './@.ParentID',
Name nvarchar(50) './@.Name',
scanattribute nvarchar(50) '.'
)

Now here is the insert statement for the table I am having trouble
with.

INSERT INTO tblScanDetail (MAC, GUIID, GUIParentID, ScanAttributeID,
ScanID, AttributeValue, DateCreated, LastModified)
SELECT @.MAC, #temp.ID, #temp.ParentID,
tblScanAttribute.ScanAttributeID, tblScan.ScanID,
#temp.scanattribute, DateCreated = getdate(),
LastModified =
getdate()
FROM tblScan, tblScanAttribute JOIN #temp ON
tblScanAttribute.Name =
#temp.Name

If there is a way to do this without the temporary table that would be
great, but I haven't figured a way around it yet, if anyone has any
ideas that would be great, thanks.rhaazy (rhaazy@.gmail.com) writes:
> INSERT INTO #temp
> SELECT * FROM openxml(@.iTree,
> 'ComputerScan/scans/scan/scanattributes/scanattribute', 1)
> WITH(
> ID nvarchar(50) './@.ID',
> ParentID nvarchar(50) './@.ParentID',
> Name nvarchar(50) './@.Name',
> scanattribute nvarchar(50) '.'
> )
> Now here is the insert statement for the table I am having trouble
> with.
> INSERT INTO tblScanDetail (MAC, GUIID, GUIParentID, ScanAttributeID,
> ScanID, AttributeValue, DateCreated, LastModified)
> SELECT @.MAC, #temp.ID, #temp.ParentID,
> tblScanAttribute.ScanAttributeID, tblScan.ScanID,
> #temp.scanattribute, DateCreated = getdate(),
> LastModified =
> getdate()
> FROM tblScan, tblScanAttribute JOIN #temp ON
> tblScanAttribute.Name =
> #temp.Name
> If there is a way to do this without the temporary table that would be
> great, but I haven't figured a way around it yet, if anyone has any
> ideas that would be great, thanks.

I have some difficulties to understand what your problem is. If all
you want to do is to insert from the XML document, then you don't
need the temp table, but you could use OPENXML directly in the
query.

But then you talk about an UPDATE as well, and if your aim is to insert
new rows, and update existing, it's probably better to use a temp
table (or a table variable), so that you don't have to run OPENXML twice.
Some DB engines support a MERGE command which performs the task of
UPDATE and INSERT in one statement, but this is not available in
SQL Server, not even in SQL 2005.

If this did not answer your question, could you please clarify?

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx|||My app runs on all my companies PCs every month a scan is performed and
the resulst are stored in a database. So the first time a scan is
performed for any PC it will be an insert, but after that it will
always be an update. I tried using openxml in my insert statement but
kept getting an error stating my sub query is returning more than one
result... So since I couldn't do it that way I'm trying this method.
All the relevent openxml is there I just couldn't figure out how to
insert each column using it. If you have any suggestions I'm open to
give it a try.

Erland Sommarskog wrote:
> rhaazy (rhaazy@.gmail.com) writes:
> > INSERT INTO #temp
> > SELECT * FROM openxml(@.iTree,
> > 'ComputerScan/scans/scan/scanattributes/scanattribute', 1)
> > WITH(
> > ID nvarchar(50) './@.ID',
> > ParentID nvarchar(50) './@.ParentID',
> > Name nvarchar(50) './@.Name',
> > scanattribute nvarchar(50) '.'
> > )
> > Now here is the insert statement for the table I am having trouble
> > with.
> > INSERT INTO tblScanDetail (MAC, GUIID, GUIParentID, ScanAttributeID,
> > ScanID, AttributeValue, DateCreated, LastModified)
> > SELECT @.MAC, #temp.ID, #temp.ParentID,
> > tblScanAttribute.ScanAttributeID, tblScan.ScanID,
> > #temp.scanattribute, DateCreated = getdate(),
> > LastModified =
> > getdate()
> > FROM tblScan, tblScanAttribute JOIN #temp ON
> > tblScanAttribute.Name =
> > #temp.Name
> > If there is a way to do this without the temporary table that would be
> > great, but I haven't figured a way around it yet, if anyone has any
> > ideas that would be great, thanks.
> I have some difficulties to understand what your problem is. If all
> you want to do is to insert from the XML document, then you don't
> need the temp table, but you could use OPENXML directly in the
> query.
> But then you talk about an UPDATE as well, and if your aim is to insert
> new rows, and update existing, it's probably better to use a temp
> table (or a table variable), so that you don't have to run OPENXML twice.
> Some DB engines support a MERGE command which performs the task of
> UPDATE and INSERT in one statement, but this is not available in
> SQL Server, not even in SQL 2005.
> If this did not answer your question, could you please clarify?
> --
> Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/pr...oads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodin...ions/books.mspx|||Fixed it no problems.
rhaazy wrote:
> My app runs on all my companies PCs every month a scan is performed and
> the resulst are stored in a database. So the first time a scan is
> performed for any PC it will be an insert, but after that it will
> always be an update. I tried using openxml in my insert statement but
> kept getting an error stating my sub query is returning more than one
> result... So since I couldn't do it that way I'm trying this method.
> All the relevent openxml is there I just couldn't figure out how to
> insert each column using it. If you have any suggestions I'm open to
> give it a try.
> Erland Sommarskog wrote:
> > rhaazy (rhaazy@.gmail.com) writes:
> > > INSERT INTO #temp
> > > SELECT * FROM openxml(@.iTree,
> > > 'ComputerScan/scans/scan/scanattributes/scanattribute', 1)
> > > WITH(
> > > ID nvarchar(50) './@.ID',
> > > ParentID nvarchar(50) './@.ParentID',
> > > Name nvarchar(50) './@.Name',
> > > scanattribute nvarchar(50) '.'
> > > )
> > > > Now here is the insert statement for the table I am having trouble
> > > with.
> > > > INSERT INTO tblScanDetail (MAC, GUIID, GUIParentID, ScanAttributeID,
> > > ScanID, AttributeValue, DateCreated, LastModified)
> > > SELECT @.MAC, #temp.ID, #temp.ParentID,
> > > tblScanAttribute.ScanAttributeID, tblScan.ScanID,
> > > #temp.scanattribute, DateCreated = getdate(),
> > > LastModified =
> > > getdate()
> > > FROM tblScan, tblScanAttribute JOIN #temp ON
> > > tblScanAttribute.Name =
> > > #temp.Name
> > > > If there is a way to do this without the temporary table that would be
> > > great, but I haven't figured a way around it yet, if anyone has any
> > > ideas that would be great, thanks.
> > I have some difficulties to understand what your problem is. If all
> > you want to do is to insert from the XML document, then you don't
> > need the temp table, but you could use OPENXML directly in the
> > query.
> > But then you talk about an UPDATE as well, and if your aim is to insert
> > new rows, and update existing, it's probably better to use a temp
> > table (or a table variable), so that you don't have to run OPENXML twice.
> > Some DB engines support a MERGE command which performs the task of
> > UPDATE and INSERT in one statement, but this is not available in
> > SQL Server, not even in SQL 2005.
> > If this did not answer your question, could you please clarify?
> > --
> > Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
> > Books Online for SQL Server 2005 at
> > http://www.microsoft.com/technet/pr...oads/books.mspx
> > Books Online for SQL Server 2000 at
> > http://www.microsoft.com/sql/prodin...ions/books.mspxsql

Friday, March 9, 2012

Hardware compatability

Does SQL Server Express Edition work with a Pentium M computer? When I downloaded it there was a message that it wasn't the proper hardware but everything else fits the requirements for an install.
Did you install .Net framework >2.0 and Wininstaler 3.0?

Which version your operational system is?|||I installed everything in the order that is directed by the SQL Server Express Edition site. When I installed SQL Server Express, it did install successfully on my desktop, which is a Pentium IV, Windows XP Professional machine. However, when installed on my laptop, a Pentium M, Windows XP Professional, machine, everything installed except for a warning sign which said the hardware is incompatible. In checking my properties section on My Computer, everything else matches the requirements for an install and I have enough hard drive space and RAM. That's why I was wondering if a Pentium M system will handle the SQL Server Express Edition install.|||What's the service pack instaled on your Windows ?|||Windows SP2
|||Which speed you CPU is?|||My system is:
Intel Pentium M
1.60GHz
590MHz
504 MB of Ram
19 GB hard drive space available

Hardware compatability

Does SQL Server Express Edition work with a Pentium M computer? When I downloaded it there was a message that it wasn't the proper hardware but everything else fits the requirements for an install.

Did you install .Net framework >2.0 and Wininstaler 3.0?

Which version your operational system is?|||

I installed everything in the order that is directed by the SQL Server Express Edition site. When I installed SQL Server Express, it did install successfully on my desktop, which is a Pentium IV, Windows XP Professional machine. However, when installed on my laptop, a Pentium M, Windows XP Professional, machine, everything installed except for a warning sign which said the hardware is incompatible. In checking my properties section on My Computer, everything else matches the requirements for an install and I have enough hard drive space and RAM. That's why I was wondering if a Pentium M system will handle the SQL Server Express Edition install.

Thanks for your help on this.

|||

What's the service pack instaled on your Windows ?

|||

Windows SP2

|||

Which speed you CPU is?

|||

My system is:
Intel Pentium M

1.60GHz

590MHz

504 MB of Ram

19 GB hard drive space available

Hardware compatability

Does SQL Server Express Edition work with a Pentium M computer? When I downloaded it there was a message that it wasn't the proper hardware but everything else fits the requirements for an install.

Did you install .Net framework >2.0 and Wininstaler 3.0?

Which version your operational system is?|||

I installed everything in the order that is directed by the SQL Server Express Edition site. When I installed SQL Server Express, it did install successfully on my desktop, which is a Pentium IV, Windows XP Professional machine. However, when installed on my laptop, a Pentium M, Windows XP Professional, machine, everything installed except for a warning sign which said the hardware is incompatible. In checking my properties section on My Computer, everything else matches the requirements for an install and I have enough hard drive space and RAM. That's why I was wondering if a Pentium M system will handle the SQL Server Express Edition install.

Thanks for your help on this.

|||

What's the service pack instaled on your Windows ?

|||

Windows SP2

|||

Which speed you CPU is?

|||

My system is:
Intel Pentium M

1.60GHz

590MHz

504 MB of Ram

19 GB hard drive space available

Wednesday, March 7, 2012

Hangs on Applying Computer Settings

I have 2 nodes Cluster Active/Passive on Windows 2003. When I reboot either
one, it comes fast no problem but when I logon to the node it takes 15
minutes waiting on "Applying Computer Settings" message then it will show
the desktop.
I didn't install SQL 2000 yet, I need to solve this issue before I install
it.
Does any one have this issue that it takes so long to logon?
Thanks
Ayad
Sounds like a service start issue. Check your system event log to see if
any services are hanging on startup. BITS is one I typically have problems
with. Setting it to manual startup seems help.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Ayad" <ashammout1@.hotmail.com> wrote in message
news:eU0BdXBzEHA.352@.TK2MSFTNGP14.phx.gbl...
> I have 2 nodes Cluster Active/Passive on Windows 2003. When I reboot
either
> one, it comes fast no problem but when I logon to the node it takes 15
> minutes waiting on "Applying Computer Settings" message then it will show
> the desktop.
> I didn't install SQL 2000 yet, I need to solve this issue before I install
> it.
> Does any one have this issue that it takes so long to logon?
> Thanks
> Ayad
>