Showing posts with label run. Show all posts
Showing posts with label run. Show all posts

Thursday, March 29, 2012

about activeX script error in ssis package in SQL server 2005

when i run activex Script it's shows this error

[ActiveX Script Task] Error: Retrieving the file name for a component failed with error code 0x001B6438

Moving from .NET Framework Data Access and Storage...|||So is there a solution to this?
I've had a similar error when using the "scripting.filesystemobject" from within a script task in ssis.

about activeX script error in ssis package in SQL server 2005

when i run activex Script it's shows this error

[ActiveX Script Task] Error: Retrieving the file name for a component failed with error code 0x001B6438

Moving from .NET Framework Data Access and Storage...|||So is there a solution to this?
I've had a similar error when using the "scripting.filesystemobject" from within a script task in ssis.

Tuesday, March 27, 2012

Able to run packages outside Designer, but not one containing FTP task

Hi. I have read most of the threads on not being able to run packages outside the Designer, in Agent. I believe my problem is different:

I am able to run some packages with Agent. In fact, we have a couple scheduled and running every night.

However, when we try to run a package that contains an FTP task it only runs in debug mode. If we import it into our server or run it without debugging it keeps failing and giving us the now famous:

The task...... cannot run on this edition of Integration Services. It requires a higher level edition.

So, we have some packages already scheduled and running, but we can't run this specific package with the FTP task. We (two of us) have created this package in the same way we created the other ones. We have created different versions to see if one gets a hit, with no success.

Any thoughts would be greately appreciated.

Ricardo

Do you have SSIS installed on this machine (check if you have SSIS Service installed)?|||

Michael, thanks for replying.

I and a co-worker have local machines on which we design all the packages. When they run fine in debug mode we import them into a server dedicated to SQL Server 2005 and all tools/services. It contains the databases, Integration Services, Reporting Services, etc.

We have created and scheduled several packages to run over night or over the weekend. The only one that is giving us problems is this FTP package. It would work fine in debug mode. We would import it into the server and it would fail. Based on something I found in another thread I ran it on my local machine without debugging and it failed. This is the only package that fails when not in debug mode; all the other packages run fine in both modes: debug and not debug.

I assume that if we didn't have SSIS installed none of the packages would run, but we are fairly new at this.

Is the FTP task/process maybe special in some way or have a special set of requirements?

Any further help would be greatly appreciated.

|||When you run the package with FTP task on server, where you have SSIS installed - what error do you get? The problem why it fails on server is probably different than the problem why it fails on workstation in non-debug. For more details on second issue, see
http://blogs.msdn.com/michen/archive/2006/11/11/ssis-product-level-is-insufficient.aspx

Sunday, March 25, 2012

aarich event error when backup is run on big DB

Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......=C0
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?Friendly wrote:
> Hi all...
> Let me first explain why I posted this here... I have run this error
> past Microsoft and Gigabyte, and both cant help me, so now I'm turning
> to you guys :-) What happens is that I got a job set up on SQL
> Enterprise 2000 that runs a backup of one of the several DB's on the
> server. But in 90% of the times that the backup run, this event log
> starts appearing, and consistently repeats, until the pc eventually
> freezes up and I have to do a hard restart. I'm starting to think that
> it has something to do with the DB size... its about 5+ gig and also
> the backup. This has only recently started to happen, and I'm also
> thinking it because the DB increased in size. The other DB's backs up
> fine, but none of them is bigger than 500Meg. Here's some additional
> info
> OS: Windows Server 2003 SE SP1
> CPU: Intel Pentium 4 3GHz
> Mem: 1Gig
> Motherboard: Gigabyte GA-8IKHXT(1.0)
> I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
> be that, cause the file below is the drivers for it.
> Event Error:
> Event Type: Error
> Event Source: aarich
> Event Category: None
> Event ID: 9
> Date: 18/05/2006
> Time: 11:23:01
> User: N/A
> Computer: ACCOUNTS
> Description:
> The device, \Device\Scsi\aarich1, did not respond within the timeout
> period.
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
> Data:
> 0000: 00 00 10 00 01 00 66 00 .....f.
> 0008: 00 00 00 00 09 00 04 c0 ......À
> 0010: 01 01 00 50 00 00 00 00 ...P...
> 0018: 00 00 00 00 00 00 00 00 ......
> 0020: 00 00 00 00 00 00 00 00 ......
> 0028: 00 00 00 00 00 00 00 00 ......
> 0030: 00 00 00 00 07 00 00 00 ......
>
> I was thinking of maybe running something that could reduce the size of
> my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
> companies accounts DB.
> Any suggestions or advise or questions?
>
Hi
A 5 Gb database isn't very big and shouldn't give you any problems with
regards to backing it up. From error message, it sounds to me like the
problem is with one of your harddrives. Have you tried to backup the
database to another location e.g. a network location? This would rule
out that the problem is related to the path where you put your backup.
--
Regards
Steen Schlüter Persson
DBA|||Thanks for the fast reply. I tried backing up to 2 mapped network
drives, but both give me the below error... once again Microsoft
doesn't know what this is :-( If this is something to do with
permissions, then I'm lost, cause both mapped drives on both pc's has
the shares and security set to 'everyone'.
I will get my external USB drive in on Monday, then I'll try it with
that HD and report back.
Here's the error I got when trying to back up to a mapped drive.
Event Type: Error
Event Source: MSSQLSERVER
Event Category: (2)
Event ID: 17055
Date: 09/06/2006
Time: 14:49:36
User: NT AUTHORITY\SYSTEM
Computer: ACCOUNTS
Description:
18204 :
BackupDiskFile::CreateMedia: Backup device 'F:\Perry\aa1900.bak' failed
to create. Operating system error = 3(error not found).
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 1c 47 00 00 10 00 00 00 .G.....
0008: 09 00 00 00 41 00 43 00 ...A.C.
0010: 43 00 4f 00 55 00 4e 00 C.O.U.N.
0018: 54 00 53 00 00 00 00 00 T.S....
0020: 00 00 ..|||OS error 3 is "The system cannot find the path specified.". Is this a local disk? Is it a regular
disk?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149861850.904118.98290@.i40g2000cwc.googlegroups.com...
> Thanks for the fast reply. I tried backing up to 2 mapped network
> drives, but both give me the below error... once again Microsoft
> doesn't know what this is :-( If this is something to do with
> permissions, then I'm lost, cause both mapped drives on both pc's has
> the shares and security set to 'everyone'.
> I will get my external USB drive in on Monday, then I'll try it with
> that HD and report back.
> Here's the error I got when trying to back up to a mapped drive.
> Event Type: Error
> Event Source: MSSQLSERVER
> Event Category: (2)
> Event ID: 17055
> Date: 09/06/2006
> Time: 14:49:36
> User: NT AUTHORITY\SYSTEM
> Computer: ACCOUNTS
> Description:
> 18204 :
> BackupDiskFile::CreateMedia: Backup device 'F:\Perry\aa1900.bak' failed
> to create. Operating system error = 3(error not found).
>
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
> Data:
> 0000: 1c 47 00 00 10 00 00 00 .G.....
> 0008: 09 00 00 00 41 00 43 00 ...A.C.
> 0010: 43 00 4f 00 55 00 4e 00 C.O.U.N.
> 0018: 54 00 53 00 00 00 00 00 T.S....
> 0020: 00 00 ..
>|||Tibor Karaszi wrote:
> OS error 3 is "The system cannot find the path specified.". Is this a local disk? Is it a regular
> disk?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
This second error has nothing to do with the original issue. The second
error happened when I tried doing a backup to a mapped drive, which is
mapped to another server on the same network. I tried it with another
mapped drive to another server, and same error came up when running the
backup job. Now because this error probably hasn't anything to do with
the original error, I will be getting in my external USB HD on Monday,
and then try and back up to that drive and report what happens then.
I just want to repeat this, that the original error only happens 90% of
the time to one of the 6 DB's I got running on the pc. The only
noticable difference between the DB that gives the errors, and the rest
is the size.|||"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149840272.386673.84020@.g10g2000cwb.googlegroups.com...
Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
>>>>>>>>>>>>>
Could be a couple of things.
Bad spot(s) on the disk where the controller keeps retrying until it times
out.
Could be an issue with the cache on the controller. Check to see if it's in
write-back or write-thru, change to write-thru.
Try putting a separate physical disk in the machine and backing up to that.
Also try stopping the database and do a manual xcopy to another location.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......À
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?|||It appears like there is much I/O delay. Are you taking the backup to the
mirrored disk? Can you try the backup to non mirrored disk? Also check with
the hardware vendor..Try with a high speed disk
Jayesh
"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149840272.386673.84020@.g10g2000cwb.googlegroups.com...
Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......À
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?|||Hi all... Thanks for the replies so far. Sorry for not coming back
sooner, but been busy with some other stuff. I came in to work over the
weekend and successfully backed up the DB on a USB drive 3 times, 2
hours apart. And I didn't get any event errors. To answer the previous
person's question, I am backing up to a mirrorred drive yes. But it was
backing up to the same hardware configuration a few months ago, without
any event errors... which sort of makes me believe that this could be
one of the hard drives failing?
Any further advice or tests you want me to do?
Thanks

aarich event error when backup is run on big DB

Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......=C0
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?Friendly wrote:
> Hi all...
> Let me first explain why I posted this here... I have run this error
> past Microsoft and Gigabyte, and both cant help me, so now I'm turning
> to you guys :-) What happens is that I got a job set up on SQL
> Enterprise 2000 that runs a backup of one of the several DB's on the
> server. But in 90% of the times that the backup run, this event log
> starts appearing, and consistently repeats, until the pc eventually
> freezes up and I have to do a hard restart. I'm starting to think that
> it has something to do with the DB size... its about 5+ gig and also
> the backup. This has only recently started to happen, and I'm also
> thinking it because the DB increased in size. The other DB's backs up
> fine, but none of them is bigger than 500Meg. Here's some additional
> info
> OS: Windows Server 2003 SE SP1
> CPU: Intel Pentium 4 3GHz
> Mem: 1Gig
> Motherboard: Gigabyte GA-8IKHXT(1.0)
> I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
> be that, cause the file below is the drivers for it.
> Event Error:
> Event Type: Error
> Event Source: aarich
> Event Category: None
> Event ID: 9
> Date: 18/05/2006
> Time: 11:23:01
> User: N/A
> Computer: ACCOUNTS
> Description:
> The device, \Device\Scsi\aarich1, did not respond within the timeout
> period.
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
> Data:
> 0000: 00 00 10 00 01 00 66 00 .....f.
> 0008: 00 00 00 00 09 00 04 c0 ......
> 0010: 01 01 00 50 00 00 00 00 ...P...
> 0018: 00 00 00 00 00 00 00 00 ......
> 0020: 00 00 00 00 00 00 00 00 ......
> 0028: 00 00 00 00 00 00 00 00 ......
> 0030: 00 00 00 00 07 00 00 00 ......
>
> I was thinking of maybe running something that could reduce the size of
> my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
> companies accounts DB.
> Any suggestions or advise or questions?
>
Hi
A 5 Gb database isn't very big and shouldn't give you any problems with
regards to backing it up. From error message, it sounds to me like the
problem is with one of your harddrives. Have you tried to backup the
database to another location e.g. a network location? This would rule
out that the problem is related to the path where you put your backup.
Regards
Steen Schlter Persson
DBA|||Thanks for the fast reply. I tried backing up to 2 mapped network
drives, but both give me the below error... once again Microsoft
doesn't know what this is :-( If this is something to do with
permissions, then I'm lost, cause both mapped drives on both pc's has
the shares and security set to 'everyone'.
I will get my external USB drive in on Monday, then I'll try it with
that HD and report back.
Here's the error I got when trying to back up to a mapped drive.
Event Type: Error
Event Source: MSSQLSERVER
Event Category: (2)
Event ID: 17055
Date: 09/06/2006
Time: 14:49:36
User: NT AUTHORITY\SYSTEM
Computer: ACCOUNTS
Description:
18204 :
BackupDiskFile::CreateMedia: Backup device 'F:\Perry\aa1900.bak' failed
to create. Operating system error = 3(error not found).
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 1c 47 00 00 10 00 00 00 .G.....
0008: 09 00 00 00 41 00 43 00 ...A.C.
0010: 43 00 4f 00 55 00 4e 00 C.O.U.N.
0018: 54 00 53 00 00 00 00 00 T.S....
0020: 00 00 ..|||OS error 3 is "The system cannot find the path specified.". Is this a local
disk? Is it a regular
disk?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149861850.904118.98290@.i40g2000cwc.googlegroups.com...
> Thanks for the fast reply. I tried backing up to 2 mapped network
> drives, but both give me the below error... once again Microsoft
> doesn't know what this is :-( If this is something to do with
> permissions, then I'm lost, cause both mapped drives on both pc's has
> the shares and security set to 'everyone'.
> I will get my external USB drive in on Monday, then I'll try it with
> that HD and report back.
> Here's the error I got when trying to back up to a mapped drive.
> Event Type: Error
> Event Source: MSSQLSERVER
> Event Category: (2)
> Event ID: 17055
> Date: 09/06/2006
> Time: 14:49:36
> User: NT AUTHORITY\SYSTEM
> Computer: ACCOUNTS
> Description:
> 18204 :
> BackupDiskFile::CreateMedia: Backup device 'F:\Perry\aa1900.bak' failed
> to create. Operating system error = 3(error not found).
>
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
> Data:
> 0000: 1c 47 00 00 10 00 00 00 .G.....
> 0008: 09 00 00 00 41 00 43 00 ...A.C.
> 0010: 43 00 4f 00 55 00 4e 00 C.O.U.N.
> 0018: 54 00 53 00 00 00 00 00 T.S....
> 0020: 00 00 ..
>|||Tibor Karaszi wrote:
> OS error 3 is "The system cannot find the path specified.". Is this a loca
l disk? Is it a regular
> disk?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
This second error has nothing to do with the original issue. The second
error happened when I tried doing a backup to a mapped drive, which is
mapped to another server on the same network. I tried it with another
mapped drive to another server, and same error came up when running the
backup job. Now because this error probably hasn't anything to do with
the original error, I will be getting in my external USB HD on Monday,
and then try and back up to that drive and report what happens then.
I just want to repeat this, that the original error only happens 90% of
the time to one of the 6 DB's I got running on the pc. The only
noticable difference between the DB that gives the errors, and the rest
is the size.|||"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149840272.386673.84020@.g10g2000cwb.googlegroups.com...
Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
[vbcol=seagreen]
Could be a couple of things.
Bad spot(s) on the disk where the controller keeps retrying until it times
out.
Could be an issue with the cache on the controller. Check to see if it's in
write-back or write-thru, change to write-thru.
Try putting a separate physical disk in the machine and backing up to that.
Also try stopping the database and do a manual xcopy to another location.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?|||It appears like there is much I/O delay. Are you taking the backup to the
mirrored disk? Can you try the backup to non mirrored disk? Also check with
the hardware vendor..Try with a high speed disk
Jayesh
"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149840272.386673.84020@.g10g2000cwb.googlegroups.com...
Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?|||Hi all... Thanks for the replies so far. Sorry for not coming back
sooner, but been busy with some other stuff. I came in to work over the
weekend and successfully backed up the DB on a USB drive 3 times, 2
hours apart. And I didn't get any event errors. To answer the previous
person's question, I am backing up to a mirrorred drive yes. But it was
backing up to the same hardware configuration a few months ago, without
any event errors... which sort of makes me believe that this could be
one of the hard drives failing?
Any further advice or tests you want me to do?
Thanks|||Hi all... Thanks for the replies so far. Sorry for not coming back
sooner, but been busy with some other stuff. I came in to work over the
weekend and successfully backed up the DB on a USB drive 3 times, 2
hours apart. And I didn't get any event errors. To answer the previous
person's question, I am backing up to a mirrorred drive yes. But it was
backing up to the same hardware configuration a few months ago, without
any event errors... which sort of makes me believe that this could be
one of the hard drives failing?
Any further advice or tests you want me to do?
Thanks

Thursday, March 22, 2012

A war between me and the network admin over the SQL EXPRESS


The network admin is saying that if I run my SQL Express in the office , it will intefere with his SQL Server 2000 connection and its services.

He asked me to disconnect myself from the network and do the work locally, what the!?

I had my SQL express remote connection set to Local and remote connections (using TCP/IP connection )

However , I really dont believe a SQL express running on my laptop would in anyway steal incoming connection to the SQL server 2000 running on the company server.

I now have my SQL express set to Local connections only, I would like to ask you guys does SQL express actually conflict with ANY services running on the same network ?
Thanks a million

No actually not. The service is a server based network service, in the meaning that you wil lhave to adress the server or any virtual device in a cluster environment to establish a connection to the service. SQL Server does not "steal" anything.

HTH, Jens K. Suessmeyer.

http://www.sqlserver2005.de|||


Here is more detail:

The company runs a Window Server 2003 and SQL Server 2000 and exchange server. The SQL server has reporting service and some other "advanced features" available to other interstate's branch network.

My laptop has a SQL Express installed, and the SQL express is set to Local and TCP/IP connection. My laptop has ethernet connection to the company network for internet access. The domain of my laptop is "AAA" and it is used by the software division only (no one else within the same domain is running SQL express).

The admin is complaining about the MSSQLEXPRESS from my SQL Express is somehow affecting the server. How this could affect the win server 2003 in anyway? As Jens say the SQL Express is a server based network service, what I think is, unless you attempt to set your win server to bypass incoming SQL request to my laptop IP address which has a SQL Express running, otherwise my SQL express should not be able to steal or disturb other services running on different IP.

I would like to see anyone who has this problem before?

Thanks

|||

Hi again,

to clarify: Compared to a telephone net, your telephone is called on a specific number. There is no chance that another telephone will ring and will be ansered if the caller dialed the right number. The telephone won′t force to aquire the incoming call. This is just a point2point connection.

HTH, Jens K. Suessmeyer.

http://www.sqlserver2005.de

|||

Thanks Jens, me and my supervisor also think the SQL server express is a server and the nature of a server is to sit there listenining for incoming connection and serve data on request. Yeah, there is no point the server application is playing up because someone runs a SQL express on different IP address on different domain, different IP.

We don't know what got into the network admin but what is certain is we will try to avoid this guy as much as possible.

A variable may only be added once to either the read lock list or the write lock list

Hi All,

I have seen a few other people have this error.

Package works fine when run from BIDS, DTExec, dtexecui. When I schedule it, It get these random errors. (See below)

The main culprit is a variable called "RecordsetFileDIR" which is set using an expression. (@.[User::_ROOT] + "RecordSets\\")

A number of other variables use this as part of their expression and as they all fail, pretty much everything dies.

I have installed SP1 (Not Beta) on server. Package uses config files to set the value of _ROOT.

The error does not always seem to be with this particular variable though. Always a variable that uses an expression but errors are random. Also, It will run 3 out of 10 times without a problem. I am the only person on the server at the time.

Any ideas?

Cheers,

Crispin

Error log:

OnError,,,POSBasketImport,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1073659822,0x,The variable "User::RecordsetFileDIR" is already on the read list. A variable may only be added once to either the read lock list or the write lock list.

OnError,,,POSBasketImport,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1073639420,0x,The expression for variable "rsHeaderFile" failed evaluation. There was an error in the expression.

OnError,,,DF_Header_Header,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1071636247,0x,Accessing variable "User::rsHeaderFile" failed with error code 0xC00470EA.

OnError,,,Move All Data,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1071636247,0x,Accessing variable "User::rsHeaderFile" failed with error code 0xC00470EA.

OnError,,,Load Open Batches and Process Files,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1071636247,0x,Accessing variable "User::rsHeaderFile" failed with error code 0xC00470EA.

OnError,,,POSBasketImport,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1071636247,0x,Accessing variable "User::rsHeaderFile" failed with error code 0xC00470EA.

OnError,,,DF_Header_Header,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1071636390,0x,The file name is not properly specified. Supply the path and name to the raw file either directly in the FileName property or by specifying a variable in the FileNameVariable property.

OnError,,,Move All Data,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1071636390,0x,The file name is not properly specified. Supply the path and name to the raw file either directly in the FileName property or by specifying a variable in the FileNameVariable property.

OnError,,,Load Open Batches and Process Files,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1071636390,0x,The file name is not properly specified. Supply the path and name to the raw file either directly in the FileName property or by specifying a variable in the FileNameVariable property.

OnError,,,POSBasketImport,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1071636390,0x,The file name is not properly specified. Supply the path and name to the raw file either directly in the FileName property or by specifying a variable in the FileNameVariable property.

OnError,,,DF_Header_Header,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1073450901,0x,"component "rsHeader" (365)" failed validation and returned validation status "VS_ISBROKEN".

OnError,,,Move All Data,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1073450901,0x,"component "rsHeader" (365)" failed validation and returned validation status "VS_ISBROKEN".

OnError,,,Load Open Batches and Process Files,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1073450901,0x,"component "rsHeader" (365)" failed validation and returned validation status "VS_ISBROKEN".

OnError,,,POSBasketImport,,,10/05/2006 12:03:34,10/05/2006 12:03:34,-1073450901,0x,"component "rsHeader" (365)" failed validation and returned validation status "VS_ISBROKEN".

Guys at Microsoft - Am I going to have to pay to open a support call for this?

I have packages what run fine on one machine and randomly break when moved onto a server. Variables using expressions (Value set _only_ from a config file) break. Properties using these values intern, break.

I have seen other post with exactly the same problem, also with no answer...

Please help...

sql

A useable but non-updating subscriber?

Is there a way in SQL 2005 to be able to use a subscriber to test run data
and not have the updated data sent back to the publisher using any method of
replication? We will have 1 publisher and 2 subscribers (all 2005), and we
would like to use one of the subscribers for running test jobs, without
having the data returned to the publisher.
Thanks in advance
Nancy
Use either transactional or snapshot replication.
You can also use merge replication with the ExchangeType downloadonly
setting.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Nancy Lytle" <nancy_lytle@.payformance.com> wrote in message
news:eoSdBsreHHA.4560@.TK2MSFTNGP03.phx.gbl...
> Is there a way in SQL 2005 to be able to use a subscriber to test run data
> and not have the updated data sent back to the publisher using any method
> of replication? We will have 1 publisher and 2 subscribers (all 2005),
> and we would like to use one of the subscribers for running test jobs,
> without having the data returned to the publisher.
> Thanks in advance
> Nancy
>
|||So with transactional (in 2005), the subscription database would be usable
for reporting or testing, it woudn't be in a read only state, is that
correct? For some reason we were thinking the subscription database would
be read only.
Thanks,
Nancy
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:eudjU0reHHA.1252@.TK2MSFTNGP04.phx.gbl...
> Use either transactional or snapshot replication.
> You can also use merge replication with the ExchangeType downloadonly
> setting.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
>
> "Nancy Lytle" <nancy_lytle@.payformance.com> wrote in message
> news:eoSdBsreHHA.4560@.TK2MSFTNGP03.phx.gbl...
>
|||Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Nancy Lytle" <nancy_lytle@.payformance.com> wrote in message
news:ubDFB5reHHA.3632@.TK2MSFTNGP02.phx.gbl...
> So with transactional (in 2005), the subscription database would be usable
> for reporting or testing, it woudn't be in a read only state, is that
> correct? For some reason we were thinking the subscription database would
> be read only.
> Thanks,
> Nancy
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:eudjU0reHHA.1252@.TK2MSFTNGP04.phx.gbl...
>
|||Yes it will be readable and you can write to it, in other words put new
indexes on. When you update data you might cause your replication agent to
fail unless you run in the continue on data consistency error profile.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Nancy Lytle" <nancy_lytle@.payformance.com> wrote in message
news:ubDFB5reHHA.3632@.TK2MSFTNGP02.phx.gbl...
> So with transactional (in 2005), the subscription database would be usable
> for reporting or testing, it woudn't be in a read only state, is that
> correct? For some reason we were thinking the subscription database would
> be read only.
> Thanks,
> Nancy
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:eudjU0reHHA.1252@.TK2MSFTNGP04.phx.gbl...
>
|||Thanks for the information,
Nancy
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:%23qSxO1seHHA.4848@.TK2MSFTNGP06.phx.gbl...
> Yes it will be readable and you can write to it, in other words put new
> indexes on. When you update data you might cause your replication agent to
> fail unless you run in the continue on data consistency error profile.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
>
> "Nancy Lytle" <nancy_lytle@.payformance.com> wrote in message
> news:ubDFB5reHHA.3632@.TK2MSFTNGP02.phx.gbl...
>
|||As well as Hilary's recommendation of transactional replication in this case,
I'd add that you could look at Read Committed Snapshot as a tool of
maintaining greater concurrency for those reports run during synchronization.
Paul Ibison
sql

Tuesday, March 20, 2012

A transport-level error has occurred when sending the request to the server

Hi all,

I am new to SQL 2005. I have one issue and it is as follows:

I write a simple query and run it; it works fine.

Now I break the network connection and run the query; in this case it runs fine.

But when I reconnect the network and run the query, then I get an error as follows:

"A transport-level error has occurred when sending the request to the server. (provider: Named Pipes Provider, error: 0 - An unexpected network error occurred.) "

Every thing is local here. So how the network issue comes here?

For some reason the connection was made through Named Pipes instead of Shared Memory (the default for local connections), which suggests that SqlClient did not recognize the connection was local, and most likely tunneled Named Pipes over TCP, hence, disocnnecting the network has impact.

How do you specify the server name - perhaps by its fully qualified domain name (FQDN), or IP address?

If you specify it by the hostname or "." or "(local)" SqlClient should recognize the local connection, and you should not see the error.

|||

Hi ,

sorry to reply late.

I tried the above mentioned case. In case of "." or "(local)" it did not connect to the SQL server. When I try it by the host name then same original problem persist.

Thanks

|||

Well sorry once again!!!

I made some mistake in the above reply.

I tried as mentioned in the solution and here are the results:

In case of "." it works fine

In case of host name the problem still persists.

for "(local)" I have not yet tested.

Thanks

|||

Regarding the host name problem - do you specify the server name exactly the same way as returned by the Windows hostname command-line command?

|||

Yes, I specify the server name exactly as returned by the the windows hostname command-line command. But the problem still persists.

|||

Great post ~ I had the same problem.

When trying to connect to a local SQL Server I was using 'localhost', which resulted in "A transport-level error has occurred...".

To resolve, I replaced 'localhost' with '(local)', as suggested.

Regards.

|||I same the same problem but I am connecting to remote server using IP, any idea?

A transport-level error has occurred when sending the request to the server

Hi all,

I am new to SQL 2005. I have one issue and it is as follows:

I write a simple query and run it; it works fine.

Now I break the network connection and run the query; in this case it runs fine.

But when I reconnect the network and run the query, then I get an error as follows:

"A transport-level error has occurred when sending the request to the server. (provider: Named Pipes Provider, error: 0 - An unexpected network error occurred.) "

Every thing is local here. So how the network issue comes here?

For some reason the connection was made through Named Pipes instead of Shared Memory (the default for local connections), which suggests that SqlClient did not recognize the connection was local, and most likely tunneled Named Pipes over TCP, hence, disocnnecting the network has impact.

How do you specify the server name - perhaps by its fully qualified domain name (FQDN), or IP address?

If you specify it by the hostname or "." or "(local)" SqlClient should recognize the local connection, and you should not see the error.

|||

Hi ,

sorry to reply late.

I tried the above mentioned case. In case of "." or "(local)" it did not connect to the SQL server. When I try it by the host name then same original problem persist.

Thanks

|||

Well sorry once again!!!

I made some mistake in the above reply.

I tried as mentioned in the solution and here are the results:

In case of "." it works fine

In case of host name the problem still persists.

for "(local)" I have not yet tested.

Thanks

|||

Regarding the host name problem - do you specify the server name exactly the same way as returned by the Windows hostname command-line command?

|||

Yes, I specify the server name exactly as returned by the the windows hostname command-line command. But the problem still persists.

|||

Great post ~ I had the same problem.

When trying to connect to a local SQL Server I was using 'localhost', which resulted in "A transport-level error has occurred...".

To resolve, I replaced 'localhost' with '(local)', as suggested.

Regards.

|||I same the same problem but I am connecting to remote server using IP, any idea?

A transport-level error has occurred when receiving results from the server

Hi all,

I

am trying to run a stored procedure which retreives 3 lakhs of records

and updates the data and moves few of those records to some tables.

Since the number of records are more , the time taken for the storede

procedure is around 30 minutes when i directly execute it in query

analyzer.

But I need to execute it from Visula Studio.Net 2005

(c#). Whole of the application contains only one form with a single

button.When I click on the button , this stored procure has to be

executed. But I am getting an error as shown below.

"A

transport-level error has occurred when receiving results from the

server. (provider: TCP Provider, error: 0 - The specified network name

is no longer available.)"

Database used is SqlServer 2000

How to solve this error?. Any ideas are really appreciated.

Thanks and Regards,
Sukanya.

The error occured during data operation and the remote server either temporarily offline or close connection due to invalid client operation or your the permission your client to access the remote server resources has been changed, etc.

So, to identify the problem, you need :

1) Assume you were making remote connection, ping <remoteserver>, telnet <remoteserver> <sqlport>, or net view \\<remoteserver> or see firewall setting on the remote server to check whether the network is still good to make sure remote server is still reachable, and contact your network administrator to fix those problems.

2) You can give a retry by running your client app see whether the problem went away.

3) If 1) and 2) passed, you might open sql profile to nail down which client operation to cause sql server terminate connection, and check server errorlog or application event log find out any clue.

If you were making local connection, it is probably reason 3).

HTH.

Ming.

|||Hi,

I just increased the "connect timeout" in connectionstring of app.config to 1 hour. This solved my problem.

Thanks,
Sukanya

A tool...how long will this take...

Is there a tool, in SQL 2K or third party, that can look
at an UPDATE, or even DELETE, I'm about to run,
and "estimate" how long it'll run. I started a massive
UPDATE on 37 million rows on one column. I stared the
UPDATE 14 hours ago, and it's still running. I can't run
a query to determine how many records have already been
updated, because the update has a lock on the table.
I was just wondering was there something I could've done
beforehand, that could've told me how long this UPDATE
would take. I've played with the Execution Plan feature,
and it does give some useful information, but I'm
specifically looking for costs in terms of "time".
Thanks
RozRoz
I would divide a long transaction into small. Have you checked transaction
log file? Did it grow?
SET ROWCOUNT 1000
WHILE 1 = 1
BEGIN
UPDATE command
IF @.@.ROWCOUNT = 0
BEGIN
BREAK
END
ELSE
BEGIN
CHECKPOINT
END
END
SET ROWCOUNT 0
"Roz" <anonymous@.discussions.microsoft.com> wrote in message
news:2225101c45d0e$345d1fa0$a301280a@.phx.gbl...
> Is there a tool, in SQL 2K or third party, that can look
> at an UPDATE, or even DELETE, I'm about to run,
> and "estimate" how long it'll run. I started a massive
> UPDATE on 37 million rows on one column. I stared the
> UPDATE 14 hours ago, and it's still running. I can't run
> a query to determine how many records have already been
> updated, because the update has a lock on the table.
> I was just wondering was there something I could've done
> beforehand, that could've told me how long this UPDATE
> would take. I've played with the Execution Plan feature,
> and it does give some useful information, but I'm
> specifically looking for costs in terms of "time".
> Thanks
> Roz
>|||run a query with a nolock hint to see where you are in
the process.
Mark Baekdal
www.dbghost.com
>--Original Message--
>Is there a tool, in SQL 2K or third party, that can look
>at an UPDATE, or even DELETE, I'm about to run,
>and "estimate" how long it'll run. I started a massive
>UPDATE on 37 million rows on one column. I stared the
>UPDATE 14 hours ago, and it's still running. I can't
run
>a query to determine how many records have already been
>updated, because the update has a lock on the table.
>I was just wondering was there something I could've done
>beforehand, that could've told me how long this UPDATE
>would take. I've played with the Execution Plan
feature,
>and it does give some useful information, but I'm
>specifically looking for costs in terms of "time".
>Thanks
>Roz
>.
>|||Uri,
Yep, that's exactly what I did. I broke the Update into
5000 records at a time. The Tlog is small, as it should
be since I'm Checkpointing quite frequently. But the
Update is still running. I guess it just takes this
long...
Roz
>--Original Message--
>Roz
>I would divide a long transaction into small. Have you
checked transaction
>log file? Did it grow?
>SET ROWCOUNT 1000
>WHILE 1 = 1
>BEGIN
> UPDATE command
> IF @.@.ROWCOUNT = 0
> BEGIN
> BREAK
> END
> ELSE
> BEGIN
> CHECKPOINT
> END
>END
>SET ROWCOUNT 0
>"Roz" <anonymous@.discussions.microsoft.com> wrote in
message
>news:2225101c45d0e$345d1fa0$a301280a@.phx.gbl...
>> Is there a tool, in SQL 2K or third party, that can look
>> at an UPDATE, or even DELETE, I'm about to run,
>> and "estimate" how long it'll run. I started a massive
>> UPDATE on 37 million rows on one column. I stared the
>> UPDATE 14 hours ago, and it's still running. I can't
run
>> a query to determine how many records have already been
>> updated, because the update has a lock on the table.
>> I was just wondering was there something I could've done
>> beforehand, that could've told me how long this UPDATE
>> would take. I've played with the Execution Plan
feature,
>> and it does give some useful information, but I'm
>> specifically looking for costs in terms of "time".
>> Thanks
>> Roz
>
>.
>|||That will give you 7400 separate transactions. It could still take a while,
but you will not cause your transaction log to grow uncontrollably. Using
smaller chunks gives you more options. You could insert into (or update) a
"logging" table after each pass through the while loop. That would give you
the ability to know how many you have done and how many more rows are left
to process.
--
Keith
"Roz" <anonymous@.discussions.microsoft.com> wrote in message
news:2243501c45d11$05c5e8e0$a101280a@.phx.gbl...
> Uri,
> Yep, that's exactly what I did. I broke the Update into
> 5000 records at a time. The Tlog is small, as it should
> be since I'm Checkpointing quite frequently. But the
> Update is still running. I guess it just takes this
> long...
> Roz
>
> >--Original Message--
> >Roz
> >I would divide a long transaction into small. Have you
> checked transaction
> >log file? Did it grow?
> >SET ROWCOUNT 1000
> >WHILE 1 = 1
> >BEGIN
> >
> > UPDATE command
> >
> > IF @.@.ROWCOUNT = 0
> > BEGIN
> > BREAK
> > END
> > ELSE
> > BEGIN
> >
> > CHECKPOINT
> > END
> >END
> >
> >SET ROWCOUNT 0
> >
> >"Roz" <anonymous@.discussions.microsoft.com> wrote in
> message
> >news:2225101c45d0e$345d1fa0$a301280a@.phx.gbl...
> >> Is there a tool, in SQL 2K or third party, that can look
> >> at an UPDATE, or even DELETE, I'm about to run,
> >> and "estimate" how long it'll run. I started a massive
> >> UPDATE on 37 million rows on one column. I stared the
> >> UPDATE 14 hours ago, and it's still running. I can't
> run
> >> a query to determine how many records have already been
> >> updated, because the update has a lock on the table.
> >>
> >> I was just wondering was there something I could've done
> >> beforehand, that could've told me how long this UPDATE
> >> would take. I've played with the Execution Plan
> feature,
> >> and it does give some useful information, but I'm
> >> specifically looking for costs in terms of "time".
> >>
> >> Thanks
> >> Roz
> >>
> >
> >
> >.
> >|||Beautiful. Very excellent ideas to try. I'll keep these
in mind next time I need to do such a massive update.
Thanks very, very much to all.
Roz
>--Original Message--
>That will give you 7400 separate transactions. It could
still take a while,
>but you will not cause your transaction log to grow
uncontrollably. Using
>smaller chunks gives you more options. You could insert
into (or update) a
>"logging" table after each pass through the while loop.
That would give you
>the ability to know how many you have done and how many
more rows are left
>to process.
>--
>Keith
>
>"Roz" <anonymous@.discussions.microsoft.com> wrote in
message
>news:2243501c45d11$05c5e8e0$a101280a@.phx.gbl...
>> Uri,
>> Yep, that's exactly what I did. I broke the Update into
>> 5000 records at a time. The Tlog is small, as it should
>> be since I'm Checkpointing quite frequently. But the
>> Update is still running. I guess it just takes this
>> long...
>> Roz
>>
>> >--Original Message--
>> >Roz
>> >I would divide a long transaction into small. Have you
>> checked transaction
>> >log file? Did it grow?
>> >SET ROWCOUNT 1000
>> >WHILE 1 = 1
>> >BEGIN
>> >
>> > UPDATE command
>> >
>> > IF @.@.ROWCOUNT = 0
>> > BEGIN
>> > BREAK
>> > END
>> > ELSE
>> > BEGIN
>> >
>> > CHECKPOINT
>> > END
>> >END
>> >
>> >SET ROWCOUNT 0
>> >
>> >"Roz" <anonymous@.discussions.microsoft.com> wrote in
>> message
>> >news:2225101c45d0e$345d1fa0$a301280a@.phx.gbl...
>> >> Is there a tool, in SQL 2K or third party, that can
look
>> >> at an UPDATE, or even DELETE, I'm about to run,
>> >> and "estimate" how long it'll run. I started a
massive
>> >> UPDATE on 37 million rows on one column. I stared
the
>> >> UPDATE 14 hours ago, and it's still running. I can't
>> run
>> >> a query to determine how many records have already
been
>> >> updated, because the update has a lock on the table.
>> >>
>> >> I was just wondering was there something I could've
done
>> >> beforehand, that could've told me how long this
UPDATE
>> >> would take. I've played with the Execution Plan
>> feature,
>> >> and it does give some useful information, but I'm
>> >> specifically looking for costs in terms of "time".
>> >>
>> >> Thanks
>> >> Roz
>> >>
>> >
>> >
>> >.
>> >
>.
>|||By the way, limiting the rowcount to 5000 updates seems a little light. I
would probably try with 50,000 or even 100,000. Heck, you could set it to
10 if you wanted to...it is probably a balancing act of time vs resource
usage.
One more idea for inside the WHILE loop: you could perform a BACKUP LOG
<database> WITH NO_LOG within the while loop to clear the transaction log.
--
Keith
"Roz" <anonymous@.discussions.microsoft.com> wrote in message
news:226eb01c45d23$f44297e0$a501280a@.phx.gbl...
> Beautiful. Very excellent ideas to try. I'll keep these
> in mind next time I need to do such a massive update.
> Thanks very, very much to all.
> Roz
> >--Original Message--
> >That will give you 7400 separate transactions. It could
> still take a while,
> >but you will not cause your transaction log to grow
> uncontrollably. Using
> >smaller chunks gives you more options. You could insert
> into (or update) a
> >"logging" table after each pass through the while loop.
> That would give you
> >the ability to know how many you have done and how many
> more rows are left
> >to process.
> >
> >--
> >Keith
> >
> >
> >"Roz" <anonymous@.discussions.microsoft.com> wrote in
> message
> >news:2243501c45d11$05c5e8e0$a101280a@.phx.gbl...
> >> Uri,
> >>
> >> Yep, that's exactly what I did. I broke the Update into
> >> 5000 records at a time. The Tlog is small, as it should
> >> be since I'm Checkpointing quite frequently. But the
> >> Update is still running. I guess it just takes this
> >> long...
> >>
> >> Roz
> >>
> >>
> >> >--Original Message--
> >> >Roz
> >> >I would divide a long transaction into small. Have you
> >> checked transaction
> >> >log file? Did it grow?
> >> >SET ROWCOUNT 1000
> >> >WHILE 1 = 1
> >> >BEGIN
> >> >
> >> > UPDATE command
> >> >
> >> > IF @.@.ROWCOUNT = 0
> >> > BEGIN
> >> > BREAK
> >> > END
> >> > ELSE
> >> > BEGIN
> >> >
> >> > CHECKPOINT
> >> > END
> >> >END
> >> >
> >> >SET ROWCOUNT 0
> >> >
> >> >"Roz" <anonymous@.discussions.microsoft.com> wrote in
> >> message
> >> >news:2225101c45d0e$345d1fa0$a301280a@.phx.gbl...
> >> >> Is there a tool, in SQL 2K or third party, that can
> look
> >> >> at an UPDATE, or even DELETE, I'm about to run,
> >> >> and "estimate" how long it'll run. I started a
> massive
> >> >> UPDATE on 37 million rows on one column. I stared
> the
> >> >> UPDATE 14 hours ago, and it's still running. I can't
> >> run
> >> >> a query to determine how many records have already
> been
> >> >> updated, because the update has a lock on the table.
> >> >>
> >> >> I was just wondering was there something I could've
> done
> >> >> beforehand, that could've told me how long this
> UPDATE
> >> >> would take. I've played with the Execution Plan
> >> feature,
> >> >> and it does give some useful information, but I'm
> >> >> specifically looking for costs in terms of "time".
> >> >>
> >> >> Thanks
> >> >> Roz
> >> >>
> >> >
> >> >
> >> >.
> >> >
> >
> >.
> >sql

A tool...how long will this take...

Is there a tool, in SQL 2K or third party, that can look
at an UPDATE, or even DELETE, I'm about to run,
and "estimate" how long it'll run. I started a massive
UPDATE on 37 million rows on one column. I stared the
UPDATE 14 hours ago, and it's still running. I can't run
a query to determine how many records have already been
updated, because the update has a lock on the table.
I was just wondering was there something I could've done
beforehand, that could've told me how long this UPDATE
would take. I've played with the Execution Plan feature,
and it does give some useful information, but I'm
specifically looking for costs in terms of "time".
Thanks
Roz
Roz
I would divide a long transaction into small. Have you checked transaction
log file? Did it grow?
SET ROWCOUNT 1000
WHILE 1 = 1
BEGIN
UPDATE command
IF @.@.ROWCOUNT = 0
BEGIN
BREAK
END
ELSE
BEGIN
CHECKPOINT
END
END
SET ROWCOUNT 0
"Roz" <anonymous@.discussions.microsoft.com> wrote in message
news:2225101c45d0e$345d1fa0$a301280a@.phx.gbl...
> Is there a tool, in SQL 2K or third party, that can look
> at an UPDATE, or even DELETE, I'm about to run,
> and "estimate" how long it'll run. I started a massive
> UPDATE on 37 million rows on one column. I stared the
> UPDATE 14 hours ago, and it's still running. I can't run
> a query to determine how many records have already been
> updated, because the update has a lock on the table.
> I was just wondering was there something I could've done
> beforehand, that could've told me how long this UPDATE
> would take. I've played with the Execution Plan feature,
> and it does give some useful information, but I'm
> specifically looking for costs in terms of "time".
> Thanks
> Roz
>
|||Uri,
Yep, that's exactly what I did. I broke the Update into
5000 records at a time. The Tlog is small, as it should
be since I'm Checkpointing quite frequently. But the
Update is still running. I guess it just takes this
long...
Roz

>--Original Message--
>Roz
>I would divide a long transaction into small. Have you
checked transaction
>log file? Did it grow?
>SET ROWCOUNT 1000
>WHILE 1 = 1
>BEGIN
> UPDATE command
> IF @.@.ROWCOUNT = 0
> BEGIN
> BREAK
> END
> ELSE
> BEGIN
> CHECKPOINT
> END
>END
>SET ROWCOUNT 0
>"Roz" <anonymous@.discussions.microsoft.com> wrote in
message[vbcol=seagreen]
>news:2225101c45d0e$345d1fa0$a301280a@.phx.gbl...
run[vbcol=seagreen]
feature,
>
>.
>
|||That will give you 7400 separate transactions. It could still take a while,
but you will not cause your transaction log to grow uncontrollably. Using
smaller chunks gives you more options. You could insert into (or update) a
"logging" table after each pass through the while loop. That would give you
the ability to know how many you have done and how many more rows are left
to process.
Keith
"Roz" <anonymous@.discussions.microsoft.com> wrote in message
news:2243501c45d11$05c5e8e0$a101280a@.phx.gbl...[vbcol=seagreen]
> Uri,
> Yep, that's exactly what I did. I broke the Update into
> 5000 records at a time. The Tlog is small, as it should
> be since I'm Checkpointing quite frequently. But the
> Update is still running. I guess it just takes this
> long...
> Roz
>
> checked transaction
> message
> run
> feature,
|||Roz
A good idea would be to display a running total of how many rows you have updated everytime you hit your 5000 transaction count. That way at least you would have an idea how long it will take that way. (Too late now I know)
Regards
John
|||Roz
A good idea would be to display a running total of how many rows you have updated everytime you hit your 5000 transaction count. That way at least you would have an idea how long it will take that way. (Too late now I know)
Regards
John
|||Beautiful. Very excellent ideas to try. I'll keep these
in mind next time I need to do such a massive update.
Thanks very, very much to all.
Roz

>--Original Message--
>That will give you 7400 separate transactions. It could
still take a while,
>but you will not cause your transaction log to grow
uncontrollably. Using
>smaller chunks gives you more options. You could insert
into (or update) a
>"logging" table after each pass through the while loop.
That would give you
>the ability to know how many you have done and how many
more rows are left
>to process.
>--
>Keith
>
>"Roz" <anonymous@.discussions.microsoft.com> wrote in
message[vbcol=seagreen]
>news:2243501c45d11$05c5e8e0$a101280a@.phx.gbl...
look[vbcol=seagreen]
massive[vbcol=seagreen]
the[vbcol=seagreen]
been[vbcol=seagreen]
done[vbcol=seagreen]
UPDATE
>.
>
|||Beautiful. Very excellent ideas to try. I'll keep these
in mind next time I need to do such a massive update.
Thanks very, very much to all.
Roz

>--Original Message--
>That will give you 7400 separate transactions. It could
still take a while,
>but you will not cause your transaction log to grow
uncontrollably. Using
>smaller chunks gives you more options. You could insert
into (or update) a
>"logging" table after each pass through the while loop.
That would give you
>the ability to know how many you have done and how many
more rows are left
>to process.
>--
>Keith
>
>"Roz" <anonymous@.discussions.microsoft.com> wrote in
message[vbcol=seagreen]
>news:2243501c45d11$05c5e8e0$a101280a@.phx.gbl...
look[vbcol=seagreen]
massive[vbcol=seagreen]
the[vbcol=seagreen]
been[vbcol=seagreen]
done[vbcol=seagreen]
UPDATE
>.
>
|||By the way, limiting the rowcount to 5000 updates seems a little light. I
would probably try with 50,000 or even 100,000. Heck, you could set it to
10 if you wanted to...it is probably a balancing act of time vs resource
usage.
One more idea for inside the WHILE loop: you could perform a BACKUP LOG
<database> WITH NO_LOG within the while loop to clear the transaction log.
Keith
"Roz" <anonymous@.discussions.microsoft.com> wrote in message
news:226eb01c45d23$f44297e0$a501280a@.phx.gbl...[vbcol=seagreen]
> Beautiful. Very excellent ideas to try. I'll keep these
> in mind next time I need to do such a massive update.
> Thanks very, very much to all.
> Roz
> still take a while,
> uncontrollably. Using
> into (or update) a
> That would give you
> more rows are left
> message
> look
> massive
> the
> been
> done
> UPDATE
|||By the way, limiting the rowcount to 5000 updates seems a little light. I
would probably try with 50,000 or even 100,000. Heck, you could set it to
10 if you wanted to...it is probably a balancing act of time vs resource
usage.
One more idea for inside the WHILE loop: you could perform a BACKUP LOG
<database> WITH NO_LOG within the while loop to clear the transaction log.
Keith
"Roz" <anonymous@.discussions.microsoft.com> wrote in message
news:226eb01c45d23$f44297e0$a501280a@.phx.gbl...[vbcol=seagreen]
> Beautiful. Very excellent ideas to try. I'll keep these
> in mind next time I need to do such a massive update.
> Thanks very, very much to all.
> Roz
> still take a while,
> uncontrollably. Using
> into (or update) a
> That would give you
> more rows are left
> message
> look
> massive
> the
> been
> done
> UPDATE

A tool...how long will this take...

Is there a tool, in SQL 2K or third party, that can look
at an UPDATE, or even DELETE, I'm about to run,
and "estimate" how long it'll run. I started a massive
UPDATE on 37 million rows on one column. I stared the
UPDATE 14 hours ago, and it's still running. I can't run
a query to determine how many records have already been
updated, because the update has a lock on the table.
I was just wondering was there something I could've done
beforehand, that could've told me how long this UPDATE
would take. I've played with the Execution Plan feature,
and it does give some useful information, but I'm
specifically looking for costs in terms of "time".
Thanks
RozRoz
I would divide a long transaction into small. Have you checked transaction
log file? Did it grow?
SET ROWCOUNT 1000
WHILE 1 = 1
BEGIN
UPDATE command
IF @.@.ROWCOUNT = 0
BEGIN
BREAK
END
ELSE
BEGIN
CHECKPOINT
END
END
SET ROWCOUNT 0
"Roz" <anonymous@.discussions.microsoft.com> wrote in message
news:2225101c45d0e$345d1fa0$a301280a@.phx
.gbl...
> Is there a tool, in SQL 2K or third party, that can look
> at an UPDATE, or even DELETE, I'm about to run,
> and "estimate" how long it'll run. I started a massive
> UPDATE on 37 million rows on one column. I stared the
> UPDATE 14 hours ago, and it's still running. I can't run
> a query to determine how many records have already been
> updated, because the update has a lock on the table.
> I was just wondering was there something I could've done
> beforehand, that could've told me how long this UPDATE
> would take. I've played with the Execution Plan feature,
> and it does give some useful information, but I'm
> specifically looking for costs in terms of "time".
> Thanks
> Roz
>|||Uri,
Yep, that's exactly what I did. I broke the Update into
5000 records at a time. The Tlog is small, as it should
be since I'm Checkpointing quite frequently. But the
Update is still running. I guess it just takes this
long...
Roz

>--Original Message--
>Roz
>I would divide a long transaction into small. Have you
checked transaction
>log file? Did it grow?
>SET ROWCOUNT 1000
>WHILE 1 = 1
>BEGIN
> UPDATE command
> IF @.@.ROWCOUNT = 0
> BEGIN
> BREAK
> END
> ELSE
> BEGIN
> CHECKPOINT
> END
>END
>SET ROWCOUNT 0
>"Roz" <anonymous@.discussions.microsoft.com> wrote in
message
> news:2225101c45d0e$345d1fa0$a301280a@.phx
.gbl...
run[vbcol=seagreen]
feature,[vbcol=seagreen]
>
>.
>|||That will give you 7400 separate transactions. It could still take a while,
but you will not cause your transaction log to grow uncontrollably. Using
smaller chunks gives you more options. You could insert into (or update) a
"logging" table after each pass through the while loop. That would give you
the ability to know how many you have done and how many more rows are left
to process.
Keith
"Roz" <anonymous@.discussions.microsoft.com> wrote in message
news:2243501c45d11$05c5e8e0$a101280a@.phx
.gbl...[vbcol=seagreen]
> Uri,
> Yep, that's exactly what I did. I broke the Update into
> 5000 records at a time. The Tlog is small, as it should
> be since I'm Checkpointing quite frequently. But the
> Update is still running. I guess it just takes this
> long...
> Roz
>
> checked transaction
> message
> run
> feature,|||Roz
A good idea would be to display a running total of how many rows you have up
dated everytime you hit your 5000 transaction count. That way at least you w
ould have an idea how long it will take that way. (Too late now I know)
Regards
John|||Beautiful. Very excellent ideas to try. I'll keep these
in mind next time I need to do such a massive update.
Thanks very, very much to all.
Roz

>--Original Message--
>That will give you 7400 separate transactions. It could
still take a while,
>but you will not cause your transaction log to grow
uncontrollably. Using
>smaller chunks gives you more options. You could insert
into (or update) a
>"logging" table after each pass through the while loop.
That would give you
>the ability to know how many you have done and how many
more rows are left
>to process.
>--
>Keith
>
>"Roz" <anonymous@.discussions.microsoft.com> wrote in
message
> news:2243501c45d11$05c5e8e0$a101280a@.phx
.gbl...
look[vbcol=seagreen]
massive[vbcol=seagreen]
the[vbcol=seagreen]
been[vbcol=seagreen]
done[vbcol=seagreen]
UPDATE[vbcol=seagreen]
>.
>|||By the way, limiting the rowcount to 5000 updates seems a little light. I
would probably try with 50,000 or even 100,000. Heck, you could set it to
10 if you wanted to...it is probably a balancing act of time vs resource
usage.
One more idea for inside the WHILE loop: you could perform a BACKUP LOG
<database> WITH NO_LOG within the while loop to clear the transaction log.
Keith
"Roz" <anonymous@.discussions.microsoft.com> wrote in message
news:226eb01c45d23$f44297e0$a501280a@.phx
.gbl...[vbcol=seagreen]
> Beautiful. Very excellent ideas to try. I'll keep these
> in mind next time I need to do such a massive update.
> Thanks very, very much to all.
> Roz
>
> still take a while,
> uncontrollably. Using
> into (or update) a
> That would give you
> more rows are left
> message
> look
> massive
> the
> been
> done
> UPDATE

Sunday, March 11, 2012

A snapshot was not generated because no subscriptions needed initi

Full error I am getting: a snapshot was not generated because no
subscriptions needed initialization
Scenario: I run the New Publication Wizard to create and add a
Transactional Publication with Updateable Subscriptions to my SQL Server. I
choose the script option at the end of the Wizard and save the script that
the Wizard generates. The publication is created fine and an initial snapshot
is created for the publication. Obviously I have no Subscribers to the
Publication yet...I just created it, but the Snapshot is created without
issue. That's cool, that's what is wanted.
The Problem: Now, if the Publication is Deleted from the SQL
Server(successfully...no errors & no funkiness), and I then run the script
that the Wizard created for me, the initial Snapshot does not get created as
it did thru the Wizard, but everything else involving the script is fine. I
get the aforementioned error at the top of this message. This sucks. Isn't
this script supposed to do exactly what I just did in the Wizard? I want the
Snapshot created in the same fashion as it was when the Wizard did it. What
is going on that is different between the Wizard and the script that the
Wizard created (and something must be different)? I did not alter the
script in any way from what the Wizard gave me. Is there some trick or
workaround to get this behavior? Am I missing the boat on something here?
Thanks.
Chris Jones
Application Development Consultant
Chris,
Check to see if the sp_addpublication in the generated script has the
parameter @.immediate_sync set to 'true'.
When creating the publication if the immediate sync property is set to
'true', a snapshot for the publication will be generated everytime the
snapshot agent runs even if the publication doesn't have any
subscriptions....else if @.immediate_sync is set to 'false', the snapshot
will not be generated because the publication does not have any subscriptions
yet.
HTH
Emaniel
"Chris" wrote:

> Full error I am getting: a snapshot was not generated because no
> subscriptions needed initialization
> Scenario: I run the New Publication Wizard to create and add a
> Transactional Publication with Updateable Subscriptions to my SQL Server. I
> choose the script option at the end of the Wizard and save the script that
> the Wizard generates. The publication is created fine and an initial snapshot
> is created for the publication. Obviously I have no Subscribers to the
> Publication yet...I just created it, but the Snapshot is created without
> issue. That's cool, that's what is wanted.
> The Problem: Now, if the Publication is Deleted from the SQL
> Server(successfully...no errors & no funkiness), and I then run the script
> that the Wizard created for me, the initial Snapshot does not get created as
> it did thru the Wizard, but everything else involving the script is fine. I
> get the aforementioned error at the top of this message. This sucks. Isn't
> this script supposed to do exactly what I just did in the Wizard? I want the
> Snapshot created in the same fashion as it was when the Wizard did it. What
> is going on that is different between the Wizard and the script that the
> Wizard created (and something must be different)? I did not alter the
> script in any way from what the Wizard gave me. Is there some trick or
> workaround to get this behavior? Am I missing the boat on something here?
> --
> Thanks.
> Chris Jones
> Application Development Consultant

Thursday, March 8, 2012

A severe error occurred on the current command.

When ever I run a particular report. Even if I set the
connection to don't time out. I keep getting this:
An error has occurred during report processing.
(rsProcessingAborted) Get Online Help Cannot read the next
data row for the data set MOPhoneSkins.
(rsErrorReadingNextDataRow) Get Online Help
A severe error occurred on the current command. The
results, if any, should be discarded.
I don't understand what's going on. Please help me out if
you've had this problem.
Thanks in advance,
BryanThis exception comes from the ADO.NET / the underlying data provider.
Reporting Services just wraps the exception.
There are many possible reasons why this exception can happen. One example:
you specify a stored procedure on server A in your report as data source. At
runtime this stored procedure tries to invoke another stored procedure on
server B through the linked server feature and fails because of missing
privileges to execute stored procedures on server B.
You might want to search ADO related newsgroups (e.g.
news:microsoft.public.dotnet.framework.adonet) or on the internet for the
exception message string "A severe error occurred on the current command.
The results, if any, should be discarded."
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"bmurtha" <anonymous@.discussions.microsoft.com> wrote in message
news:635a01c4826b$677f3d00$a501280a@.phx.gbl...
> When ever I run a particular report. Even if I set the
> connection to don't time out. I keep getting this:
> An error has occurred during report processing.
> (rsProcessingAborted) Get Online Help Cannot read the next
> data row for the data set MOPhoneSkins.
> (rsErrorReadingNextDataRow) Get Online Help
> A severe error occurred on the current command. The
> results, if any, should be discarded.
> I don't understand what's going on. Please help me out if
> you've had this problem.
> Thanks in advance,
> Bryan

Tuesday, March 6, 2012

A script to delete views

Hi,

I need a script that I can run from ASP .Net that will delete all
views that start with "Search". My site creates them on the fly and
they tend to accumulate as more users visit the site. Is there a good
SQL help web site that I can refer to that will be me started?

Thanks,

Bill
Cincinnati, OH USAI need a script that I can run from ASP .Net that will delete all

Quote:

Originally Posted by

views that start with "Search". My site creates them on the fly and
they tend to accumulate as more users visit the site. Is there a good
SQL help web site that I can refer to that will be me started?


The script below will delete all dbo-owned views that begin with 'Search'.
However, creating/deleting objects from normal application code is not
secure and often an indication of an application design flaw.

SET NOCOUNT ON

DECLARE @.DropStatement nvarchar(4000)
DECLARE @.LastError int

DECLARE DropStatements
CURSOR LOCAL FAST_FORWARD READ_ONLY FOR
--views
SELECT
N'DROP VIEW ' +
QUOTENAME(TABLE_SCHEMA) +
N'.' +
QUOTENAME(TABLE_NAME) AS DropStatement
FROM
INFORMATION_SCHEMA.TABLES
WHERE
TABLE_TYPE = N'VIEW'
AND OBJECTPROPERTY(
OBJECT_ID(QUOTENAME(TABLE_SCHEMA) +
N'.' +
QUOTENAME(TABLE_NAME)),
'IsMSShipped') = 0
AND TABLE_SCHEMA = N'dbo'
AND TABLE_NAME LIKE N'Search%'

OPEN DropStatements
WHILE 1 = 1
BEGIN
FETCH NEXT FROM DropStatements INTO @.DropStatement
IF @.@.FETCH_STATUS = -1 BREAK
BEGIN
EXECUTE sp_ExecuteSQL @.DropStatement
SET @.LastError = @.@.ERROR
IF @.LastError 0
BEGIN
BREAK
END
END
END
CLOSE DropStatements
DEALLOCATE DropStatements

--
Hope this helps.

Dan Guzman
SQL Server MVP

<namewitheldbyrequest@.gmail.comwrote in message
news:1159647523.344352.188610@.c28g2000cwb.googlegr oups.com...

Quote:

Originally Posted by

Hi,
>
I need a script that I can run from ASP .Net that will delete all
views that start with "Search". My site creates them on the fly and
they tend to accumulate as more users visit the site. Is there a good
SQL help web site that I can refer to that will be me started?
>
Thanks,
>
Bill
Cincinnati, OH USA
>

A Real Sql Server 2005 Bug! A Real Sql Server Bug!

A growing Sql Server 2005 database performs several hours of updates each
night. This particular region of code has run fine for over a year. Now we
are getting the folllowing message every few nights causing our processing to
abort:
Msg 8630, Level 17, State 52, Procedure sp_dts_post_activity, Line 150
Internal Query Processor Error: The query processor encountered an unexpected
error during execution.
This is a simplified version of the query from line 150:
select
p.PeriodStartDate,
p.PeriodType,
p.ActivityUserNumber,
p.AppNumber,
max( case when ActivityType = 'APP_SUBMITTED' then 1 else 0 end ),
max( case when ActivityType = 'DOCS_REVIEWED' then 1 else 0 end ),
max( case when ActivityType = 'DOCS_RECEIVED' then 1 else 0 end ),
max( case when ActivityType = 'DOCS_COMPLETED' then 1 else 0 end ),
max( case when ActivityType = 'BOOKED' then 1 else 0 end ),
max( case when ActivityType = 'FUNDED' then 1 else 0 end )
from Activity a, xxxPeriod p
where a.ActivityDate >= p.PeriodStartDate
and a.ActivityDate < p.PeriodEndDate
and a.ActivityUserNumber = p.ActivityUserNumber
and a.AppNumber = p.AppNumber
and ActivityType in (select code from Lookup where SetName =
'ACTIVITY_TYPE' and ParentCode = 'ACCOUNT')
group by p.PeriodStartDate, p.PeriodType, p.ActivityUserNumber, p.AppNumber
When this simplified query is run from the management studio, it fails about
10-20% of the time.
Some Observations:
- Sometimes we get a few records in the result set prior to the failure.
- This query works on our smaller development database.
- If we change the query in any of the following ways, the query works
(e.g., 15 attempts w/o an error):
- Removing the group by and max()
- Removing one or more max statements
- Hard-code the list of activity types in place of the sub-select from
Lookup table
Version:
Sql Server 2005, 9.00.2047.00,SP1, Standard Edition
Help!
Mike
Mike wrote:
> A growing Sql Server 2005 database performs several hours of updates each
> night. This particular region of code has run fine for over a year. Now we
> are getting the folllowing message every few nights causing our processing to
> abort:
> Msg 8630, Level 17, State 52, Procedure sp_dts_post_activity, Line 150
> Internal Query Processor Error: The query processor encountered an unexpected
> error during execution.
> This is a simplified version of the query from line 150:
> select
> p.PeriodStartDate,
> p.PeriodType,
> p.ActivityUserNumber,
> p.AppNumber,
> max( case when ActivityType = 'APP_SUBMITTED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_REVIEWED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_RECEIVED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_COMPLETED' then 1 else 0 end ),
> max( case when ActivityType = 'BOOKED' then 1 else 0 end ),
> max( case when ActivityType = 'FUNDED' then 1 else 0 end )
> from Activity a, xxxPeriod p
> where a.ActivityDate >= p.PeriodStartDate
> and a.ActivityDate < p.PeriodEndDate
> and a.ActivityUserNumber = p.ActivityUserNumber
> and a.AppNumber = p.AppNumber
> and ActivityType in (select code from Lookup where SetName =
> 'ACTIVITY_TYPE' and ParentCode = 'ACCOUNT')
> group by p.PeriodStartDate, p.PeriodType, p.ActivityUserNumber, p.AppNumber
> When this simplified query is run from the management studio, it fails about
> 10-20% of the time.
> Some Observations:
> - Sometimes we get a few records in the result set prior to the failure.
> - This query works on our smaller development database.
> - If we change the query in any of the following ways, the query works
> (e.g., 15 attempts w/o an error):
> - Removing the group by and max()
> - Removing one or more max statements
> - Hard-code the list of activity types in place of the sub-select from
> Lookup table
> Version:
> Sql Server 2005, 9.00.2047.00,SP1, Standard Edition
> Help!
> Mike
>
>
>
>
I would suspect a TEMPDB problem. Lack of space? Autogrow timeout?
Tracy McKibben
MCDBA
http://www.realsqlguy.com
|||Mike, please contact Microsoft product support.
Thanks,
Leo
"Mike" <Mike@.discussions.microsoft.com> wrote in message
news:168FB0C7-AF8D-4722-B8EF-FC5A8D309F47@.microsoft.com...
>A growing Sql Server 2005 database performs several hours of updates each
> night. This particular region of code has run fine for over a year. Now
> we
> are getting the folllowing message every few nights causing our processing
> to
> abort:
> Msg 8630, Level 17, State 52, Procedure sp_dts_post_activity, Line 150
> Internal Query Processor Error: The query processor encountered an
> unexpected
> error during execution.
> This is a simplified version of the query from line 150:
> select
> p.PeriodStartDate,
> p.PeriodType,
> p.ActivityUserNumber,
> p.AppNumber,
> max( case when ActivityType = 'APP_SUBMITTED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_REVIEWED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_RECEIVED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_COMPLETED' then 1 else 0 end ),
> max( case when ActivityType = 'BOOKED' then 1 else 0 end ),
> max( case when ActivityType = 'FUNDED' then 1 else 0 end )
> from Activity a, xxxPeriod p
> where a.ActivityDate >= p.PeriodStartDate
> and a.ActivityDate < p.PeriodEndDate
> and a.ActivityUserNumber = p.ActivityUserNumber
> and a.AppNumber = p.AppNumber
> and ActivityType in (select code from Lookup where SetName =
> 'ACTIVITY_TYPE' and ParentCode = 'ACCOUNT')
> group by p.PeriodStartDate, p.PeriodType, p.ActivityUserNumber,
> p.AppNumber
> When this simplified query is run from the management studio, it fails
> about
> 10-20% of the time.
> Some Observations:
> - Sometimes we get a few records in the result set prior to the failure.
> - This query works on our smaller development database.
> - If we change the query in any of the following ways, the query works
> (e.g., 15 attempts w/o an error):
> - Removing the group by and max()
> - Removing one or more max statements
> - Hard-code the list of activity types in place of the sub-select from
> Lookup table
> Version:
> Sql Server 2005, 9.00.2047.00,SP1, Standard Edition
> Help!
> Mike
>
>
>
>

A Real Sql Server 2005 Bug! A Real Sql Server Bug!

A growing Sql Server 2005 database performs several hours of updates each
night. This particular region of code has run fine for over a year. Now we
are getting the folllowing message every few nights causing our processing t
o
abort:
Msg 8630, Level 17, State 52, Procedure sp_dts_post_activity, Line 150
Internal Query Processor Error: The query processor encountered an unexpecte
d
error during execution.
This is a simplified version of the query from line 150:
select
p.PeriodStartDate,
p.PeriodType,
p.ActivityUserNumber,
p.AppNumber,
max( case when ActivityType = 'APP_SUBMITTED' then 1 else 0 end ),
max( case when ActivityType = 'DOCS_REVIEWED' then 1 else 0 end ),
max( case when ActivityType = 'DOCS_RECEIVED' then 1 else 0 end ),
max( case when ActivityType = 'DOCS_COMPLETED' then 1 else 0 end ),
max( case when ActivityType = 'BOOKED' then 1 else 0 end ),
max( case when ActivityType = 'FUNDED' then 1 else 0 end )
from Activity a, xxxPeriod p
where a.ActivityDate >= p.PeriodStartDate
and a.ActivityDate < p.PeriodEndDate
and a.ActivityUserNumber = p.ActivityUserNumber
and a.AppNumber = p.AppNumber
and ActivityType in (select code from Lookup where SetName =
'ACTIVITY_TYPE' and ParentCode = 'ACCOUNT')
group by p.PeriodStartDate, p.PeriodType, p.ActivityUserNumber, p.AppNumber
When this simplified query is run from the management studio, it fails about
10-20% of the time.
Some Observations:
- Sometimes we get a few records in the result set prior to the failure.
- This query works on our smaller development database.
- If we change the query in any of the following ways, the query works
(e.g., 15 attempts w/o an error):
- Removing the group by and max()
- Removing one or more max statements
- Hard-code the list of activity types in place of the sub-select from
Lookup table
Version:
Sql Server 2005, 9.00.2047.00,SP1, Standard Edition
Help!
MikeMike wrote:
> A growing Sql Server 2005 database performs several hours of updates each
> night. This particular region of code has run fine for over a year. Now
we
> are getting the folllowing message every few nights causing our processing
to
> abort:
> Msg 8630, Level 17, State 52, Procedure sp_dts_post_activity, Line 150
> Internal Query Processor Error: The query processor encountered an unexpec
ted
> error during execution.
> This is a simplified version of the query from line 150:
> select
> p.PeriodStartDate,
> p.PeriodType,
> p.ActivityUserNumber,
> p.AppNumber,
> max( case when ActivityType = 'APP_SUBMITTED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_REVIEWED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_RECEIVED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_COMPLETED' then 1 else 0 end ),
> max( case when ActivityType = 'BOOKED' then 1 else 0 end ),
> max( case when ActivityType = 'FUNDED' then 1 else 0 end )
> from Activity a, xxxPeriod p
> where a.ActivityDate >= p.PeriodStartDate
> and a.ActivityDate < p.PeriodEndDate
> and a.ActivityUserNumber = p.ActivityUserNumber
> and a.AppNumber = p.AppNumber
> and ActivityType in (select code from Lookup where SetName =
> 'ACTIVITY_TYPE' and ParentCode = 'ACCOUNT')
> group by p.PeriodStartDate, p.PeriodType, p.ActivityUserNumber, p.AppNumb
er
> When this simplified query is run from the management studio, it fails abo
ut
> 10-20% of the time.
> Some Observations:
> - Sometimes we get a few records in the result set prior to the failure.
> - This query works on our smaller development database.
> - If we change the query in any of the following ways, the query works
> (e.g., 15 attempts w/o an error):
> - Removing the group by and max()
> - Removing one or more max statements
> - Hard-code the list of activity types in place of the sub-select from
> Lookup table
> Version:
> Sql Server 2005, 9.00.2047.00,SP1, Standard Edition
> Help!
> Mike
>
>
>
>
I would suspect a TEMPDB problem. Lack of space? Autogrow timeout?
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||Mike, please contact Microsoft product support.
Thanks,
Leo
"Mike" <Mike@.discussions.microsoft.com> wrote in message
news:168FB0C7-AF8D-4722-B8EF-FC5A8D309F47@.microsoft.com...
>A growing Sql Server 2005 database performs several hours of updates each
> night. This particular region of code has run fine for over a year. Now
> we
> are getting the folllowing message every few nights causing our processing
> to
> abort:
> Msg 8630, Level 17, State 52, Procedure sp_dts_post_activity, Line 150
> Internal Query Processor Error: The query processor encountered an
> unexpected
> error during execution.
> This is a simplified version of the query from line 150:
> select
> p.PeriodStartDate,
> p.PeriodType,
> p.ActivityUserNumber,
> p.AppNumber,
> max( case when ActivityType = 'APP_SUBMITTED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_REVIEWED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_RECEIVED' then 1 else 0 end ),
> max( case when ActivityType = 'DOCS_COMPLETED' then 1 else 0 end ),
> max( case when ActivityType = 'BOOKED' then 1 else 0 end ),
> max( case when ActivityType = 'FUNDED' then 1 else 0 end )
> from Activity a, xxxPeriod p
> where a.ActivityDate >= p.PeriodStartDate
> and a.ActivityDate < p.PeriodEndDate
> and a.ActivityUserNumber = p.ActivityUserNumber
> and a.AppNumber = p.AppNumber
> and ActivityType in (select code from Lookup where SetName =
> 'ACTIVITY_TYPE' and ParentCode = 'ACCOUNT')
> group by p.PeriodStartDate, p.PeriodType, p.ActivityUserNumber,
> p.AppNumber
> When this simplified query is run from the management studio, it fails
> about
> 10-20% of the time.
> Some Observations:
> - Sometimes we get a few records in the result set prior to the failure.
> - This query works on our smaller development database.
> - If we change the query in any of the following ways, the query works
> (e.g., 15 attempts w/o an error):
> - Removing the group by and max()
> - Removing one or more max statements
> - Hard-code the list of activity types in place of the sub-select from
> Lookup table
> Version:
> Sql Server 2005, 9.00.2047.00,SP1, Standard Edition
> Help!
> Mike
>
>
>
>