Showing posts with label object. Show all posts
Showing posts with label object. Show all posts

Monday, March 19, 2012

Error when create a Server object using SMO

Please help: I got this error and can't figure out what went wrong.

The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception. on the line that create Server object.

This is the code (Visual C# 2005 - SQL Server 2000 - Windows Active Directory)

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

using System.Data.SqlClient;

using Microsoft.SqlServer.Management.Smo;

using Microsoft.SqlServer.Management.Common;

namespace SSMO

{

public partial class Form1 : Form

{

public Form1()

{

InitializeComponent();

}

private void Form1_Load(object sender, EventArgs e)

{

Server oSvr = new Server("myServer");

foreach (Database oDB in oSvr.Databases)

{

cboDatabases.Items.Add(oDB.Name.ToString());

}

}

}

I guess there should be additionally some inner exceptions which should clarify th error in detail.

HTH, Jens Suessmeyer.


http://www.sqlserver2005.de

|||

This is the error:

System.TypeInitializationException was unhandled
Message="The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception."
Source="System.Data"
TypeName="System.Data.SqlClient.SqlConnection"
StackTrace:
at System.Data.SqlClient.SqlConnection..ctor()
at Microsoft.SqlServer.Management.Common.ServerConnection..ctor()
at Microsoft.SqlServer.Management.Smo.ExecutionManager..ctor(String name)
at Microsoft.SqlServer.Management.Smo.Server..ctor(String name)
at SSMO.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at SSMO.Program.Main()
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

|||

As the constructor of the SQLConnection is throwing an error, this might be just a slight misconfiguration problem. As I searched through the Net I found that this could be something based on a misconigured app.config file or the lack of a bad installation where the performance counters of the SQL Connection classes are not fully installed and registered. Never had that, but try to use a more simple command to make sure that this is based on that error:

new
System.Data.SqlClient.SqlConnection()).Dispose();


HTH, Jens Suessmeyer.


http://www.sqlserver2005.de

Error when connecting to server via SQL 2005 Management Studio in Object Explorer but not Query

Hi,

I'm getting the error below when I attempt to connect to a remote Sql 2005 server using Management Studio and the Object Explorer. The same error does not occur if I go through "New > Database Engine Query" and fill out the same connection dialog with the exact same information. FYI, I am connecting to the IP of an external SQL 2005 server via SQL Server Authentication, and there is some level of connection going on as connecting with the wrong authentication information gives me a standard authentication error even while using the Object Explorer dialog. I am able to do all operations I need in the database engine query window without problem.


Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

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.) (Microsoft SQL Server, Error: 64)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=64&LinkId=20476


Any ideas on why this would occur? I know this is a standard "network issue" type problem but I'm not aware of any difference that would allow the connection to work fine in one and not the other.

Thanks!

I have this exact error too. Please post if you have made progress on this.

-H

|||Same error here as well. I can connect using 2005 management studio from my XP workstation, but my Vista machine throws this error.|||OK - Same error - also from a Vista machine. Has anyone found the solution|||I think there is some problem with the object explorer dlls. I got the error after installing MDAC 2.7. When i connect it says some dll does registered, but i can connect thru database engine query.|||This shouldn't be related to MDAC at all. Management Studio doesn't use MDAC for any connections. How are you establishing your connections (using server name or IP)?|||

I suspect you are running into a firewall issue on Vista. The built-in firewall on Vista is much more capable than the XP firewall. The Vista firewall can block outbound connections as well as the inbound connections the XP firewall can block.

Make sure you add a firewall exception for sqlwb.exe (the management studio executable). You might need to open up port 1433 TCP as well.

Hope this helps,

Steve

Error when connecting to server via SQL 2005 Management Studio in Object Explorer but not Query

Hi,

I'm getting the error below when I attempt to connect to a remote Sql 2005 server using Management Studio and the Object Explorer. The same error does not occur if I go through "New > Database Engine Query" and fill out the same connection dialog with the exact same information. FYI, I am connecting to the IP of an external SQL 2005 server via SQL Server Authentication, and there is some level of connection going on as connecting with the wrong authentication information gives me a standard authentication error even while using the Object Explorer dialog. I am able to do all operations I need in the database engine query window without problem.


Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

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.) (Microsoft SQL Server, Error: 64)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=64&LinkId=20476


Any ideas on why this would occur? I know this is a standard "network issue" type problem but I'm not aware of any difference that would allow the connection to work fine in one and not the other.

Thanks!

I have this exact error too. Please post if you have made progress on this.

-H

|||Same error here as well. I can connect using 2005 management studio from my XP workstation, but my Vista machine throws this error.|||OK - Same error - also from a Vista machine. Has anyone found the solution|||I think there is some problem with the object explorer dlls. I got the error after installing MDAC 2.7. When i connect it says some dll does registered, but i can connect thru database engine query.|||This shouldn't be related to MDAC at all. Management Studio doesn't use MDAC for any connections. How are you establishing your connections (using server name or IP)?|||

I suspect you are running into a firewall issue on Vista. The built-in firewall on Vista is much more capable than the XP firewall. The Vista firewall can block outbound connections as well as the inbound connections the XP firewall can block.

Make sure you add a firewall exception for sqlwb.exe (the management studio executable). You might need to open up port 1433 TCP as well.

Hope this helps,

Steve

Monday, March 12, 2012

Error when connecting to server via SQL 2005 Management Studio in Object Explorer but not Query

Hi,

I'm getting the error below when I attempt to connect to a remote Sql 2005 server using Management Studio and the Object Explorer. The same error does not occur if I go through "New > Database Engine Query" and fill out the same connection dialog with the exact same information. FYI, I am connecting to the IP of an external SQL 2005 server via SQL Server Authentication, and there is some level of connection going on as connecting with the wrong authentication information gives me a standard authentication error even while using the Object Explorer dialog. I am able to do all operations I need in the database engine query window without problem.


Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

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.) (Microsoft SQL Server, Error: 64)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=64&LinkId=20476


Any ideas on why this would occur? I know this is a standard "network issue" type problem but I'm not aware of any difference that would allow the connection to work fine in one and not the other.

Thanks!

I have this exact error too. Please post if you have made progress on this.

-H

|||Same error here as well. I can connect using 2005 management studio from my XP workstation, but my Vista machine throws this error.|||OK - Same error - also from a Vista machine. Has anyone found the solution|||I think there is some problem with the object explorer dlls. I got the error after installing MDAC 2.7. When i connect it says some dll does registered, but i can connect thru database engine query.|||This shouldn't be related to MDAC at all. Management Studio doesn't use MDAC for any connections. How are you establishing your connections (using server name or IP)?|||

I suspect you are running into a firewall issue on Vista. The built-in firewall on Vista is much more capable than the XP firewall. The Vista firewall can block outbound connections as well as the inbound connections the XP firewall can block.

Make sure you add a firewall exception for sqlwb.exe (the management studio executable). You might need to open up port 1433 TCP as well.

Hope this helps,

Steve

Error when connecting to server via SQL 2005 Management Studio in Object Explorer but not Query

Hi,

I'm getting the error below when I attempt to connect to a remote Sql 2005 server using Management Studio and the Object Explorer. The same error does not occur if I go through "New > Database Engine Query" and fill out the same connection dialog with the exact same information. FYI, I am connecting to the IP of an external SQL 2005 server via SQL Server Authentication, and there is some level of connection going on as connecting with the wrong authentication information gives me a standard authentication error even while using the Object Explorer dialog. I am able to do all operations I need in the database engine query window without problem.


Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

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.) (Microsoft SQL Server, Error: 64)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=64&LinkId=20476


Any ideas on why this would occur? I know this is a standard "network issue" type problem but I'm not aware of any difference that would allow the connection to work fine in one and not the other.

Thanks!

I have this exact error too. Please post if you have made progress on this.

-H

|||Same error here as well. I can connect using 2005 management studio from my XP workstation, but my Vista machine throws this error.|||OK - Same error - also from a Vista machine. Has anyone found the solution|||I think there is some problem with the object explorer dlls. I got the error after installing MDAC 2.7. When i connect it says some dll does registered, but i can connect thru database engine query.|||This shouldn't be related to MDAC at all. Management Studio doesn't use MDAC for any connections. How are you establishing your connections (using server name or IP)?|||

I suspect you are running into a firewall issue on Vista. The built-in firewall on Vista is much more capable than the XP firewall. The Vista firewall can block outbound connections as well as the inbound connections the XP firewall can block.

Make sure you add a firewall exception for sqlwb.exe (the management studio executable). You might need to open up port 1433 TCP as well.

Hope this helps,

Steve

Error when connecting to server via SQL 2005 Management Studio in Object Explorer but not Qu

Hi,

I'm getting the error below when I attempt to connect to a remote Sql 2005 server using Management Studio and the Object Explorer. The same error does not occur if I go through "New > Database Engine Query" and fill out the same connection dialog with the exact same information. FYI, I am connecting to the IP of an external SQL 2005 server via SQL Server Authentication, and there is some level of connection going on as connecting with the wrong authentication information gives me a standard authentication error even while using the Object Explorer dialog. I am able to do all operations I need in the database engine query window without problem.


Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

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.) (Microsoft SQL Server, Error: 64)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=64&LinkId=20476


Any ideas on why this would occur? I know this is a standard "network issue" type problem but I'm not aware of any difference that would allow the connection to work fine in one and not the other.

Thanks!

I have this exact error too. Please post if you have made progress on this.

-H

|||Same error here as well. I can connect using 2005 management studio from my XP workstation, but my Vista machine throws this error.|||OK - Same error - also from a Vista machine. Has anyone found the solution|||I think there is some problem with the object explorer dlls. I got the error after installing MDAC 2.7. When i connect it says some dll does registered, but i can connect thru database engine query.|||This shouldn't be related to MDAC at all. Management Studio doesn't use MDAC for any connections. How are you establishing your connections (using server name or IP)?|||

I suspect you are running into a firewall issue on Vista. The built-in firewall on Vista is much more capable than the XP firewall. The Vista firewall can block outbound connections as well as the inbound connections the XP firewall can block.

Make sure you add a firewall exception for sqlwb.exe (the management studio executable). You might need to open up port 1433 TCP as well.

Hope this helps,

Steve

Wednesday, March 7, 2012

Error using RDO query object with SQL Server 7.0

While using RDO(msrdo20.dll) query object to create a temporary table in SQL
Server 7.0(with SP4), I am gettng the error:
Code '40002': Error: S0001: :[Microsoft][ODBC SQL Server Driver][SQL Server]
There is already an object name '#<name of temporary table>' in the database.
Please help me to resolve this.
Thanks.Temporary objects persist until they go out of scope or are explicitly
dropped. If you are in the midst of development, you probably have a
pre-existing creation of the object on your current connection that you have
yet reseted nor have you explicitly dropped the table.
Sincerely,
Anthony Thomas
"ak3010" <ak3010@.discussions.microsoft.com> wrote in message
news:FD8956BA-5547-402C-88E5-2981F0A1860B@.microsoft.com...
While using RDO(msrdo20.dll) query object to create a temporary table in SQL
Server 7.0(with SP4), I am gettng the error:
Code '40002': Error: S0001: :[Microsoft][ODBC SQL Server Driver][SQL Server]
There is already an object name '#<name of temporary table>' in the
database.
Please help me to resolve this.
Thanks.|||While using RDO(msrdo20.dll) query object to create a temporary table in SQL
Server 7.0(with SP4), I am gettng the error:
Error: 40002: :[Microsoft][ODBC SQL Server Driver][SQL Server]
The cursor was not declared
From http://www.google.co.in/search?q=40002+++msrdo20.dll&hl=en&start=10&sa=
Posted via DevelopmentNow.com Group
http://www.developmentnow.com

Error using RDO query object with SQL Server 7.0

While using RDO(msrdo20.dll) query object to create a temporary table in SQL
Server 7.0(with SP4), I am gettng the error:
Code '40002': Error: S0001: :[Microsoft][ODBC SQL Server Driver][
;SQL Server]
There is already an object name '#<name of temporary table>' in the database
.
Please help me to resolve this.
Thanks.Temporary objects persist until they go out of scope or are explicitly
dropped. If you are in the midst of development, you probably have a
pre-existing creation of the object on your current connection that you have
yet reseted nor have you explicitly dropped the table.
Sincerely,
Anthony Thomas
"ak3010" <ak3010@.discussions.microsoft.com> wrote in message
news:FD8956BA-5547-402C-88E5-2981F0A1860B@.microsoft.com...
While using RDO(msrdo20.dll) query object to create a temporary table in SQL
Server 7.0(with SP4), I am gettng the error:
Code '40002': Error: S0001: :[Microsoft][ODBC SQL Server Driver][
;SQL Server]
There is already an object name '#<name of temporary table>' in the
database.
Please help me to resolve this.
Thanks.|||While using RDO(msrdo20.dll) query object to create a temporary table in SQL
Server 7.0(with SP4), I am gettng the error:
Error: 40002: :[Microsoft][ODBC SQL Server Driver][SQL Server]
The cursor was not declared
From http://www.google.co.in/search?q=40...elopmentnow.com

Error using RDO query object with SQL Server 7.0

While using RDO(msrdo20.dll) query object to create a temporary table in SQL
Server 7.0(with SP4), I am gettng the error:
Code '40002': Error: S0001: :[Microsoft][ODBC SQL Server Driver][SQL Server]
There is already an object name '#<name of temporary table>' in the database.
Please help me to resolve this.
Thanks.
Temporary objects persist until they go out of scope or are explicitly
dropped. If you are in the midst of development, you probably have a
pre-existing creation of the object on your current connection that you have
yet reseted nor have you explicitly dropped the table.
Sincerely,
Anthony Thomas

"ak3010" <ak3010@.discussions.microsoft.com> wrote in message
news:FD8956BA-5547-402C-88E5-2981F0A1860B@.microsoft.com...
While using RDO(msrdo20.dll) query object to create a temporary table in SQL
Server 7.0(with SP4), I am gettng the error:
Code '40002': Error: S0001: :[Microsoft][ODBC SQL Server Driver][SQL Server]
There is already an object name '#<name of temporary table>' in the
database.
Please help me to resolve this.
Thanks.
|||While using RDO(msrdo20.dll) query object to create a temporary table in SQL
Server 7.0(with SP4), I am gettng the error:
Error: 40002: :[Microsoft][ODBC SQL Server Driver][SQL Server]
The cursor was not declared
From http://www.google.co.in/search?q=40002+++msrdo20.dll&hl=en&start=10&sa=N
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Error using FTP Task

I am using SQL Server 2005 - CTP June 2005 and I am trying to create a simple FTP task. Currently, my package consists of one FTP Task object in the Control Flow tab. I create a new FTP Connection Manager using <New Connection> in the FtpConnection property and verify the connection by selecting the "Test Connection" button. So far so good. However, when I return to the designer a red X appears in the FTP Task object with the following error:

"Error 1 Validation error. FTP Task FTP Task: Attempt to read message string for 0xc002f313 failed with error 0xc02090f3. Make sure all message related files are registered. Package.dtsx"

If I execute the task as is, I get the following runtime error:

"Error at Package: The connection "" is not found. This error is thrown by Connections collection when the specific connection element is not found.

Error at FTP Task [FTP Task]: Attempt to read message string for 0xc002f313 failed with error 0xc02090f3. Make sure all message related files are registered.
Error at FTP Task: There were errors during task validation.

(Microsoft.DataTransformationServices.VsIntegration)"

When I edit the FTP Task, the FtpConnection is set properly. What am I doing wrong? Any help would be greatly appreciated. Thank you.

Clay Benoit

Hi Clay
This is a validation error telling you to complete the properties in the FTP dialog, either select send or the receive option with complete valid paths
for example of FTP please try the http://www.sqlis.com/

Thanks|||I get the same error:

Error: 0xC002918A at FTP Copy blahblah, FTP Task: Unable to receive files using "FTP Connection Manager".

Error: 0x80004005 at FTP Copy blahblah, FTP Task: Attempt to read message string for 0x80020918 failed with error 0xc02090f3. Make sure all message related files are registered.

I have a FTP component with wildcards on the files
(RemotePath: "/somewhere/myfile*.*")
OverwriteFileatDest : False
Local path is "Existing Folder" with proper local folder unc.

The errors come after the list of files that could not be copied because they already exist on the local machine.
any ideas?
Horseshoe

|||There are two problems:
It appears that your setup is corrupt because it cannot find the error messages file.

You're attempting to download files to a location where identically named files are stored yet you have OverwriteFileAtDest set to false. Move the files or set that property to true and the task should succeed.|||

This looks like a bug to me

The first error is valid - the file does not exist

Error: 0xC0029183 at FTP Delete XST from Remote, FTP Task: File represented by "User::XSTFile" does not exist.

Error: 0x80004005 at FTP Delete XST from Remote, FTP Task: Attempt to read message string for 0x80020918 failed with error 0xc02090f3. Make sure all message related files are registered.

The second looks like someone at MS fast fingered 29183 as 20918, and that message is not in the message files.

So you get two errors for the price of one...

Is there a way to make an expected error not increment the error count? Or do you just have to set the MaxErrors high enough to not have it matter?

|||

Here is what worked for me...

It turns out of course that the ftp site was unix. I knew the variable as /subdir/file.txt.gz but I could not get that file to download, much less the others I wanted to itterate. I tested localy using FileZilla FTP Server on a local windows box and it worked perfectly. It was not until I decided to NOT use my generated file location variable and to use a design time fixed variable that it became clear that a Unix path was needed. What looked to me in IE as /subdir/file was was really /export/home/subdir/subdir/file. Only after I specificaly picked the file I wanted with the FTP Task did the real path show up.

Hope this helps.

Error using FTP Task

I am using SQL Server 2005 - CTP June 2005 and I am trying to create a simple FTP task. Currently, my package consists of one FTP Task object in the Control Flow tab. I create a new FTP Connection Manager using <New Connection> in the FtpConnection property and verify the connection by selecting the "Test Connection" button. So far so good. However, when I return to the designer a red X appears in the FTP Task object with the following error:

"Error 1 Validation error. FTP Task FTP Task: Attempt to read message string for 0xc002f313 failed with error 0xc02090f3. Make sure all message related files are registered. Package.dtsx"

If I execute the task as is, I get the following runtime error:

"Error at Package: The connection "" is not found. This error is thrown by Connections collection when the specific connection element is not found.

Error at FTP Task [FTP Task]: Attempt to read message string for 0xc002f313 failed with error 0xc02090f3. Make sure all message related files are registered.
Error at FTP Task: There were errors during task validation.

(Microsoft.DataTransformationServices.VsIntegration)"

When I edit the FTP Task, the FtpConnection is set properly. What am I doing wrong? Any help would be greatly appreciated. Thank you.

Clay Benoit

Hi Clay
This is a validation error telling you to complete the properties in the FTP dialog, either select send or the receive option with complete valid paths
for example of FTP please try the http://www.sqlis.com/

Thanks|||I get the same error:

Error: 0xC002918A at FTP Copy blahblah, FTP Task: Unable to receive files using "FTP Connection Manager".

Error: 0x80004005 at FTP Copy blahblah, FTP Task: Attempt to read message string for 0x80020918 failed with error 0xc02090f3. Make sure all message related files are registered.

I have a FTP component with wildcards on the files
(RemotePath: "/somewhere/myfile*.*")
OverwriteFileatDest : False
Local path is "Existing Folder" with proper local folder unc.

The errors come after the list of files that could not be copied because they already exist on the local machine.
any ideas?
Horseshoe

|||There are two problems:
It appears that your setup is corrupt because it cannot find the error messages file.

You're attempting to download files to a location where identically named files are stored yet you have OverwriteFileAtDest set to false. Move the files or set that property to true and the task should succeed.|||

This looks like a bug to me

The first error is valid - the file does not exist

Error: 0xC0029183 at FTP Delete XST from Remote, FTP Task: File represented by "User::XSTFile" does not exist.

Error: 0x80004005 at FTP Delete XST from Remote, FTP Task: Attempt to read message string for 0x80020918 failed with error 0xc02090f3. Make sure all message related files are registered.

The second looks like someone at MS fast fingered 29183 as 20918, and that message is not in the message files.

So you get two errors for the price of one...

Is there a way to make an expected error not increment the error count? Or do you just have to set the MaxErrors high enough to not have it matter?

|||

Here is what worked for me...

It turns out of course that the ftp site was unix. I knew the variable as /subdir/file.txt.gz but I could not get that file to download, much less the others I wanted to itterate. I tested localy using FileZilla FTP Server on a local windows box and it worked perfectly. It was not until I decided to NOT use my generated file location variable and to use a design time fixed variable that it became clear that a Unix path was needed. What looked to me in IE as /subdir/file was was really /export/home/subdir/subdir/file. Only after I specificaly picked the file I wanted with the FTP Task did the real path show up.

Hope this helps.

Error using FTP Task

I am using SQL Server 2005 - CTP June 2005 and I am trying to create a simple FTP task. Currently, my package consists of one FTP Task object in the Control Flow tab. I create a new FTP Connection Manager using <New Connection> in the FtpConnection property and verify the connection by selecting the "Test Connection" button. So far so good. However, when I return to the designer a red X appears in the FTP Task object with the following error:

"Error 1 Validation error. FTP Task FTP Task: Attempt to read message string for 0xc002f313 failed with error 0xc02090f3. Make sure all message related files are registered. Package.dtsx"

If I execute the task as is, I get the following runtime error:

"Error at Package: The connection "" is not found. This error is thrown by Connections collection when the specific connection element is not found.

Error at FTP Task [FTP Task]: Attempt to read message string for 0xc002f313 failed with error 0xc02090f3. Make sure all message related files are registered.
Error at FTP Task: There were errors during task validation.

(Microsoft.DataTransformationServices.VsIntegration)"

When I edit the FTP Task, the FtpConnection is set properly. What am I doing wrong? Any help would be greatly appreciated. Thank you.

Clay Benoit

Hi Clay
This is a validation error telling you to complete the properties in the FTP dialog, either select send or the receive option with complete valid paths
for example of FTP please try the http://www.sqlis.com/

Thanks|||I get the same error:

Error: 0xC002918A at FTP Copy blahblah, FTP Task: Unable to receive files using "FTP Connection Manager".

Error: 0x80004005 at FTP Copy blahblah, FTP Task: Attempt to read message string for 0x80020918 failed with error 0xc02090f3. Make sure all message related files are registered.

I have a FTP component with wildcards on the files
(RemotePath: "/somewhere/myfile*.*")
OverwriteFileatDest : False
Local path is "Existing Folder" with proper local folder unc.

The errors come after the list of files that could not be copied because they already exist on the local machine.
any ideas?
Horseshoe

|||There are two problems:
It appears that your setup is corrupt because it cannot find the error messages file.

You're attempting to download files to a location where identically named files are stored yet you have OverwriteFileAtDest set to false. Move the files or set that property to true and the task should succeed.|||

This looks like a bug to me

The first error is valid - the file does not exist

Error: 0xC0029183 at FTP Delete XST from Remote, FTP Task: File represented by "User::XSTFile" does not exist.

Error: 0x80004005 at FTP Delete XST from Remote, FTP Task: Attempt to read message string for 0x80020918 failed with error 0xc02090f3. Make sure all message related files are registered.

The second looks like someone at MS fast fingered 29183 as 20918, and that message is not in the message files.

So you get two errors for the price of one...

Is there a way to make an expected error not increment the error count? Or do you just have to set the MaxErrors high enough to not have it matter?

|||

Here is what worked for me...

It turns out of course that the ftp site was unix. I knew the variable as /subdir/file.txt.gz but I could not get that file to download, much less the others I wanted to itterate. I tested localy using FileZilla FTP Server on a local windows box and it worked perfectly. It was not until I decided to NOT use my generated file location variable and to use a design time fixed variable that it became clear that a Unix path was needed. What looked to me in IE as /subdir/file was was really /export/home/subdir/subdir/file. Only after I specificaly picked the file I wanted with the FTP Task did the real path show up.

Hope this helps.

Friday, February 17, 2012

Error SQL 7.0

Hi,
I got this error in the error log:
2004-05-30 06:58:23.85 spid6 Table Corrupt: Object ID 0, index ID 0, page ID (1:1074103). The PageId in the page header = (0:0).
2004-05-30 06:58:24.54 spid6 Error: 823, Severity: 24, State: 1
2004-05-30 06:58:24.54 spid6 I/O error (bad page ID) detected during read of BUF pointer = 0x11efe2c0, page ptr = 0x2d016000, pageid = (0x1:0x1063b7), dbid = 9, status = 0x801, file = e:\MSSQL7\data\pruebas_Data.MDF..
2
2004-06-01 22:04:15.15 spid6 Table Corrupt: Object ID 0, index ID 0, page ID (1:76799). The PageId in the page header = (0:0).
Does anyone can tell me what that it means? Or if it is important and the way to solve
The engine has not service packs intalled
Thanks in advance
this is normally indicative of data corruption due to some hardware or
driver problem with the I/O subsystem as per below. Also would recommend
upgrading to Service Pack 4 for SQL Server
http://msdn.microsoft.com/library/de...err_1_2a0j.asp
more articles.
http://search.microsoft.com/search/r...u=Error%3a+823
Andy.
"Lomu" <anonymous@.discussions.microsoft.com> wrote in message
news:1D80669D-95F6-4903-9447-63DEB80DEDD1@.microsoft.com...
> Hi,
> I got this error in the error log:
> 2004-05-30 06:58:23.85 spid6 Table Corrupt: Object ID 0, index ID 0,
page ID (1:1074103). The PageId in the page header = (0:0).
> 2004-05-30 06:58:24.54 spid6 Error: 823, Severity: 24, State: 1
> 2004-05-30 06:58:24.54 spid6 I/O error (bad page ID) detected during
read of BUF pointer = 0x11efe2c0, page ptr = 0x2d016000, pageid =
(0x1:0x1063b7), dbid = 9, status = 0x801, file =
e:\MSSQL7\data\pruebas_Data.MDF..
> 2
>
> 2004-06-01 22:04:15.15 spid6 Table Corrupt: Object ID 0, index ID 0, page
ID (1:76799). The PageId in the page header = (0:0).
> Does anyone can tell me what that it means? Or if it is important and the
way to solve
> The engine has not service packs intalled
> Thanks in advance
|||I suggest you download and install the latest update for SQL Server 2000 Books Online. It has details
suggestions for most of the corruption errors. I know you are on 7.0, but these things applies. Also, you
might want to read below article:
http://tibdell/SQLServer/info_corrupt_suspect_db.asp
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Lomu" <anonymous@.discussions.microsoft.com> wrote in message
news:1D80669D-95F6-4903-9447-63DEB80DEDD1@.microsoft.com...
> Hi,
> I got this error in the error log:
> 2004-05-30 06:58:23.85 spid6 Table Corrupt: Object ID 0, index ID 0, page ID (1:1074103). The PageId in
the page header = (0:0).
> 2004-05-30 06:58:24.54 spid6 Error: 823, Severity: 24, State: 1
> 2004-05-30 06:58:24.54 spid6 I/O error (bad page ID) detected during read of BUF pointer = 0x11efe2c0,
page ptr = 0x2d016000, pageid = (0x1:0x1063b7), dbid = 9, status = 0x801, file =
e:\MSSQL7\data\pruebas_Data.MDF..
> 2
>
> 2004-06-01 22:04:15.15 spid6 Table Corrupt: Object ID 0, index ID 0, page ID (1:76799). The PageId in the
page header = (0:0).
> Does anyone can tell me what that it means? Or if it is important and the way to solve
> The engine has not service packs intalled
> Thanks in advance

Error SQL 7.0

Hi
I got this error in the error log
2004-05-30 06:58:23.85 spid6 Table Corrupt: Object ID 0, index ID 0, page ID (1:1074103). The PageId in the page header = (0:0)
2004-05-30 06:58:24.54 spid6 Error: 823, Severity: 24, State:
2004-05-30 06:58:24.54 spid6 I/O error (bad page ID) detected during read of BUF pointer = 0x11efe2c0, page ptr = 0x2d016000, pageid = (0x1:0x1063b7), dbid = 9, status = 0x801, file = e:\MSSQL7\data\pruebas_Data.MDF.
2004-06-01 22:04:15.15 spid6 Table Corrupt: Object ID 0, index ID 0, page ID (1:76799). The PageId in the page header = (0:0)
Does anyone can tell me what that it means? Or if it is important and the way to solv
The engine has not service packs intalle
Thanks in advancethis is normally indicative of data corruption due to some hardware or
driver problem with the I/O subsystem as per below. Also would recommend
upgrading to Service Pack 4 for SQL Server
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/trblsql/tr_reslsyserr_1_2a0j.asp
more articles.
http://search.microsoft.com/search/results.aspx?st=b&na=88&View=en-us&qu=Error%3a+823
Andy.
"Lomu" <anonymous@.discussions.microsoft.com> wrote in message
news:1D80669D-95F6-4903-9447-63DEB80DEDD1@.microsoft.com...
> Hi,
> I got this error in the error log:
> 2004-05-30 06:58:23.85 spid6 Table Corrupt: Object ID 0, index ID 0,
page ID (1:1074103). The PageId in the page header = (0:0).
> 2004-05-30 06:58:24.54 spid6 Error: 823, Severity: 24, State: 1
> 2004-05-30 06:58:24.54 spid6 I/O error (bad page ID) detected during
read of BUF pointer = 0x11efe2c0, page ptr = 0x2d016000, pageid =(0x1:0x1063b7), dbid = 9, status = 0x801, file =e:\MSSQL7\data\pruebas_Data.MDF..
> 2
>
> 2004-06-01 22:04:15.15 spid6 Table Corrupt: Object ID 0, index ID 0, page
ID (1:76799). The PageId in the page header = (0:0).
> Does anyone can tell me what that it means? Or if it is important and the
way to solve
> The engine has not service packs intalled
> Thanks in advance|||I suggest you download and install the latest update for SQL Server 2000 Books Online. It has details
suggestions for most of the corruption errors. I know you are on 7.0, but these things applies. Also, you
might want to read below article:
http://tibdell/SQLServer/info_corrupt_suspect_db.asp
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Lomu" <anonymous@.discussions.microsoft.com> wrote in message
news:1D80669D-95F6-4903-9447-63DEB80DEDD1@.microsoft.com...
> Hi,
> I got this error in the error log:
> 2004-05-30 06:58:23.85 spid6 Table Corrupt: Object ID 0, index ID 0, page ID (1:1074103). The PageId in
the page header = (0:0).
> 2004-05-30 06:58:24.54 spid6 Error: 823, Severity: 24, State: 1
> 2004-05-30 06:58:24.54 spid6 I/O error (bad page ID) detected during read of BUF pointer = 0x11efe2c0,
page ptr = 0x2d016000, pageid = (0x1:0x1063b7), dbid = 9, status = 0x801, file =e:\MSSQL7\data\pruebas_Data.MDF..
> 2
>
> 2004-06-01 22:04:15.15 spid6 Table Corrupt: Object ID 0, index ID 0, page ID (1:76799). The PageId in the
page header = (0:0).
> Does anyone can tell me what that it means? Or if it is important and the way to solve
> The engine has not service packs intalled
> Thanks in advance

Error SQL 7.0

Hi,
I got this error in the error log:
2004-05-30 06:58:23.85 spid6 Table Corrupt: Object ID 0, index ID 0, page
ID (1:1074103). The PageId in the page header = (0:0).
2004-05-30 06:58:24.54 spid6 Error: 823, Severity: 24, State: 1
2004-05-30 06:58:24.54 spid6 I/O error (bad page ID) detected during read
of BUF pointer = 0x11efe2c0, page ptr = 0x2d016000, pageid = (0x1:0x1063b7)
, dbid = 9, status = 0x801, file = e:\MSSQL7\data\pruebas_Data.MDF..
2
2004-06-01 22:04:15.15 spid6 Table Corrupt: Object ID 0, index ID 0, page ID
(1:76799). The PageId in the page header = (0:0).
Does anyone can tell me what that it means? Or if it is important and the wa
y to solve
The engine has not service packs intalled
Thanks in advancethis is normally indicative of data corruption due to some hardware or
driver problem with the I/O subsystem as per below. Also would recommend
upgrading to Service Pack 4 for SQL Server
serr_1_2a0j.asp" target="_blank">http://msdn.microsoft.com/library/d...serr_1_2a0j.asp
more articles.
823" target="_blank">http://search.microsoft.com/search/...%3a+
823
Andy.
"Lomu" <anonymous@.discussions.microsoft.com> wrote in message
news:1D80669D-95F6-4903-9447-63DEB80DEDD1@.microsoft.com...
> Hi,
> I got this error in the error log:
> 2004-05-30 06:58:23.85 spid6 Table Corrupt: Object ID 0, index ID 0,
page ID (1:1074103). The PageId in the page header = (0:0).
> 2004-05-30 06:58:24.54 spid6 Error: 823, Severity: 24, State: 1
> 2004-05-30 06:58:24.54 spid6 I/O error (bad page ID) detected during
read of BUF pointer = 0x11efe2c0, page ptr = 0x2d016000, pageid =
(0x1:0x1063b7), dbid = 9, status = 0x801, file =
e:\MSSQL7\data\pruebas_Data.MDF..
> 2
>
> 2004-06-01 22:04:15.15 spid6 Table Corrupt: Object ID 0, index ID 0, page
ID (1:76799). The PageId in the page header = (0:0).
> Does anyone can tell me what that it means? Or if it is important and the
way to solve
> The engine has not service packs intalled
> Thanks in advance|||I suggest you download and install the latest update for SQL Server 2000 Boo
ks Online. It has details
suggestions for most of the corruption errors. I know you are on 7.0, but th
ese things applies. Also, you
might want to read below article:
http://tibdell/SQLServer/info_corrupt_suspect_db.asp
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Lomu" <anonymous@.discussions.microsoft.com> wrote in message
news:1D80669D-95F6-4903-9447-63DEB80DEDD1@.microsoft.com...
> Hi,
> I got this error in the error log:
> 2004-05-30 06:58:23.85 spid6 Table Corrupt: Object ID 0, index ID 0, page ID (1
:1074103). The PageId in
the page header = (0:0).
> 2004-05-30 06:58:24.54 spid6 Error: 823, Severity: 24, State: 1
> 2004-05-30 06:58:24.54 spid6 I/O error (bad page ID) detected during read of BU
F pointer = 0x11efe2c0,
page ptr = 0x2d016000, pageid = (0x1:0x1063b7), dbid = 9, status = 0x801, fi
le =
e:\MSSQL7\data\pruebas_Data.MDF..
> 2
>
> 2004-06-01 22:04:15.15 spid6 Table Corrupt: Object ID 0, index ID 0, page ID (1:76
799). The PageId in the
page header = (0:0).
> Does anyone can tell me what that it means? Or if it is important and the
way to solve
> The engine has not service packs intalled
> Thanks in advance

Wednesday, February 15, 2012

Error running SQL 2005 Best Practices Analyzer from command line - Object reference not set to a

I'm getting an error trying to run SQL 2005 Best Practices Analyzer from command line. Here's a sample of the command I run...

SqlBPACmd2005.EXE -u WINLOGON mydomain\\administrator P@.ssw0rd -r Limited -c -a

And here's the error I get...

Object reference not set to an instance of an object

I suspect this partially due to the fact that I left off the -sci option, and this appears to be a required parameter; however, I do not know XML and have not been able to find an example of this file anywhere. Could someone give me an example of an XML file formatted for scanning several 2005 instances?

Does my command have other problems?

Thanks!

Yes, you need to use the -sci options. The XML file can be created through the GUI. Run the GUI, choose the items you wish to scan, then choose, "Export to file". Pass this .xml filename in as the parameter to the -sci command line option.

Does this solve your problem?

Paul A. Mestemaker II
Program Manager
Microsoft SQL Server
http://blogs.msdn.com/sqlrem/