SQLConnect To SQL Server Fails When Connection Intialized From A Service

Mar 8, 2006

I have an
issue where SQL Server is refusing a connection that is initiated from
within a Windows service. The connection is attempted using the
SQLConnect ODBC function (yes I know there are newer and better things
out there but I'm stuck with ODBC for now ). SQLConnect returns
SQL_ERROR and the error code that is returned is:

28000

Invalid authorization specification
The value specified for the argument UserName or the value specified for the argument Authentication violated restrictions defined by the data source.

Now
it sounds like a username/password problem but when we attempt a
connection to the same server via a non-service program, everything
works fine (using the same username/password). We thought it might be
an ODBC issue at first but we can connect to a MySQL server using the
same programs/services just fine.

Checking the SQL Server setup, we do have both Windows accounts and SQL Server authentication enabled (under Security tab).

Anyone have any ideas?

thanks!
-Pete

View 10 Replies


ADVERTISEMENT

ExcuteNonQuery: Connection Property Has Not Been Intialized

Jun 11, 2008

What is missing?  I'm lost?
private void InsertRecord(string host, int RequestID)    {        //int reset = 0;
        SqlConnection cn = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"]);        cn.Open();
                str = "INSERT INTO HostName (Host,HostNameRequestID) VALUES ('" + host + "'," + RequestID + ")";        SqlCommand cmd = new SqlCommand("", cn);        cmd.CommandText = "INSERT INTO HostName (Host,HostNameRequestID) VALUES ('" + host + "'," + RequestID + ")";        cmd.ExecuteNonQuery();        cn.Close();    }

View 2 Replies View Related

Error Connection Pooling ODBC - SQLConnect Where Database This Down

May 3, 2007

My application works with the Connection pooling ODBC. Everything works well, when it data base this down the SQLConnect function finishes steeply my application.

View 3 Replies View Related

Package Fails When I Use ODBC Connection (Fails On SQL Server Agent, OK In Visual Studio)

Jun 11, 2007

I did a small package with only one ODBC connection (Merant 3.70 32-Bit Progess). This package runs well in Visual Studio and fails when runs by SQL Server Agent.

Configuration:

SQL Server Agent on a 32Bit server.

The ODBC connection configuration in available on System DSN on this server.

The user of Server Agent have full access (Admin).

Connect Manager Provider: ".Net ProvidersOdbc Data Provider"

SQL Server version: 9.0.3042



Error Message:

Executed as user: TEKCON cadmin. ...ion 9.00.3042.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 16:50:33 Error: 2007-06-11 16:50:33.62 Code: 0xC0047062 Source: Data Flow Task DataReader Source [1] Description: System.Data.Odbc.OdbcException: ERROR [HYC00] [MERANT][ODBC PROGRESS driver]Optional feature not implemented. ERROR [HY000] [MERANT][ODBC PROGRESS driver]msgOpen: unable to open message file: PROMSGS ERROR [IM006] [MERANT][ODBC PROGRESS driver]Driver's SQLSetConnectAttr failed. ERROR [HYC00] [MERANT][ODBC PROGRESS driver]Optional feature not implemented. ERROR [HY000] [MERANT][ODBC PROGRESS driver]msgOpen: unable to open message file: PROMSGS ERROR [IM006] [MERANT][ODBC PROGRESS driver]Driver's SQLSetConnectAttr failed. at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode) at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcCon... The package execution fa... The step failed.


I created a .bat file with this instruction and It's run well:

dtexec /f "C:Program FilesMicrosoft SQL Server90DTSPackagesIntegration Services Project estcom.dtsx"
pause

Why it's not running with SQL Server Agent???

View 7 Replies View Related

I'm Not Able To Connect To My SQL Server With SQLconnect

Sep 16, 2007



Hi,

I'm using the SQLconnect function in order to connect to my SQL server
I want to connect to a database called "CookieJar" without user name and password

this is the code:


#include "Container.h"

#include <windows.h>

#include <sqlext.h>



int main()

{









HENV hEnv = NULL; // Env Handle from SQLAllocEnv()

HDBC hDBC = NULL; // Connection handle

HSTMT hStmt = NULL;// Statement handle

UCHAR szDSN[1024] = "CookieJar";// Data Source Name buffer

UCHAR szUID[10] = "";// User ID buffer

UCHAR szPasswd[10] = "";// Password buffer

UCHAR szModel[128];// Model buffer

SDWORD cbModel;// Model buffer bytes recieved

char buff[9] = "Testing";

UCHAR szSqlStr[128]= "INSERT into (Tablename) (ColumnName) Values ('Testing')" ;

RETCODE retcode;

//sprintf((char*)szSqlStr,"INSERT into (Tablename)(Columname) Values ('%s')",buff);

// Allocate memory for ODBC Environment handle

SQLAllocEnv (&hEnv);

// Allocate memory for the connection handle

SQLAllocConnect (hEnv, &hDBC);

// Connect to the data source "test" using userid and password.

retcode = SQLConnect (hDBC, (SQLWCHAR*)szDSN, SQL_NTS,/* (SQLWCHAR*)szUID*/ NULL, SQL_NTS, /*(SQLWCHAR*)szPasswd*/ NULL, SQL_NTS);

if (retcode == SQL_SUCCESS || retcode == SQL_SUCCESS_WITH_INFO)

{



// Allocate memory for the statement handle

retcode = SQLAllocStmt (hDBC, &hStmt);

// Prepare the SQL statement by assigning it to the statement handle

retcode = SQLPrepare (hStmt, (SQLWCHAR*)szSqlStr, sizeof (szSqlStr));

// Execute the SQL statement handle

retcode = SQLExecute (hStmt);

// Project only column 1 which is the models

SQLBindCol (hStmt, 1, SQL_C_CHAR, szModel, sizeof(szModel), &cbModel);

// Get row of data from the result set defined above in the statement

retcode = SQLFetch (hStmt);

// Free the allocated statement handle

SQLFreeStmt (hStmt, SQL_DROP);

// Disconnect from datasource

SQLDisconnect (hDBC);

}



// Free the allocated connection handle

SQLFreeConnect (hDBC);

// Free the allocated ODBC environment handle

SQLFreeEnv (hEnv);

return 0;





}



The program works but it doesn't get into the "if" section...

And what do I need to put in szDSN - just the database name or the whole connection string?

please help,
Thanks,
Eli

View 1 Replies View Related

Error: Report Server Installation Is Not Intialized

Mar 19, 2008

Hi Experts,
I am getting this error and error message is
Error: The report Server installation is not initialized. Check the documentation for more info (rsReportServerNotActivated), The RPC server is not listening.


Can any one give me some idea how to over come the situation.

View 4 Replies View Related

SQL Server 2000 Service Pack 3a Installation Fails

Jul 23, 2005

I have an installation of SQL Server 2000. Both MBSA and @@versionshow this to be the gold release. When I install Service Pack 3a, itshows no error. But after restart of the server, it's still unpatched,by both MBSA and @@version.Any idea what may be going on here?

View 3 Replies View Related

SQL Server 2000 Installation Fails On Windows XP With Service Pack 2

Nov 29, 2005

Hi,
i tried to install SQL Server 2000 Developer and MSDE the whole day on my Windows XP SP2.
MDAC is the latest, that come with WinXP SP2 (2.81). The installation fails at the end after 100% complete.

It says:
Translated: "the setup programm starts the server and installs the configuration you chose..."
("das setup-programm startet den server und installiert die von ihnen gewählte konfiguration...")

then it takes some time and the failure appears, saying:
"the setup programm could not configure the server. you can find more
information in the server-failure-log files and in
"C:windowssqlstp.log."

sqlstp.log last couple of lines:
22:42:10 C:WINDOWSTEMPSqlSetupBinscm.exe  -Silent 1 -Action 4 -Service MSSQLSERVER
22:42:10 Process Exit Code: (0)
22:42:10 StatsGenerate returned: 2
22:42:10 StatsGenerate (0x80000000,0x1,0xf000000,0x200,1031,303,0x0,0x1,0,0,0
22:42:10 StatsGenerate -1,toebens)
22:42:10 Installation Failed.



I already read several knowledge base articles on this... removed keys in the registry...and so on...nothing worked :(

this **** makes me angry. please help me.
thanks
 

View 5 Replies View Related

SQL Server Service Manger Fails To Start With Error Message

Apr 15, 2001

We have changed the Network Domain name of a SQL server and restarted before changing any of the settings in SQL server. When we now try to start the SQL server service manager we get the following error

Your SQL server is either corrupt or has been tampered with. Unknown package id please rerun setup

Any suggestions on how to get the SQL server back on line without having to take the server down and changing the Netowrk Domain Name back ??

Cheers

SR

View 1 Replies View Related

SQL Server Admin 2014 :: SSIS Service Fails To Start

Aug 7, 2015

i m not able to start the SSIS service on my laptop . IT gives error saying SQL server integretion service 11.0 service on local computer started and then stopped . some services stop automatically if they are not in use by other services or program

i am not able to start SSDT . it gives error

microsoft visual studio is unabble to load this document to desigen integration service package in ssdt , ssdt has to be installed by one of these edition of sql server ; std enterprise,dev,or evloution

i hav installed sql 2012 evolution verison on my local desktop.

View 1 Replies View Related

SQL Server 2005 Embedded Edition Service: KB929665 Fails To Fix

Nov 16, 2007


Hello all,

I€™m looking for some help to get my Windows SharePoint Services 3.0 back on-line running without losing the documents stored on it..

Configuration basics: Microsoft Windows SharePoint Services 3.0 on member Server 2003 Std w/ SP2 using the Windows Internal Database (MS SQL Server 2005 Embedded Edition)

I had the SharePoint Services site operating on a member server.

I used the Manager the Server wizard to Install Active Directory on the member server. (Ouch! My Mistake)

I broke the SQL Server 2005 Embedded Edition Service. It would not restart. The System Evt code was 7024 error 3417.

I researched and found KB 929665 which describes my symptoms perfectly.

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

I tried the recommended command (see Note1) and the configuration failed.
I discovered the following errors in the log file:

GetServiceUserGroup failed for MICROSOFT##SSEE, 5
Error Code: 0x80070534 (1332)
Windows Error Text: No mapping between account names and security IDs was done.
Source File Name: sqlcasqlcax.cpp
Compiler Timestamp: Mon Feb 27 02:04:14 2006
Function Name: SetInstanceProperty
Source Line Number: 1223

Error Code: 1332
MSI (s) (2C!4C) [19:08:50:678]: Product: Microsoft SQL Server 2005 Embedded Edition (Windows) -- Error 29528. The setup has encountered an unexpected error while Setting Internal Properties. The error is: Fatal error during installation.

Error 29528. The setup has encountered an unexpected error while Setting Internal Properties. The error is: Fatal error during installation.

<Failure Type='Fatal' Error='1332'>
<EndFunc Name='LaunchFunction' Return='1332' GetLastError='0'>
Action ended 19:08:50: SetInstanceProperty.D20239D7_E87C_40C9_9837_E70B8D4882C2. Return value 3.
Action ended 19:08:50: INSTALL. Return value 3.

Note 1: Msiexec <MSI_File_Name> CALLERID=OCSetup.exe REINSTALL=ALL REINSTALLMODE=omus /qn REBOOT=ReallySupress /l*v <Log_File_Path>

(Note: the line is missing the switch €œ/i€? after MSIEXEC)

How can a get my SharePoint working again?
Thank you!
Mike

View 3 Replies View Related

DHCP Service Fails To Start After Installing SQL Server 2005 April CTP

Jul 18, 2005

I have a Windows 2003 Server SP1, Active Directory, Application Server and RIS installed on my computer. After installing SQL Server 2005 April CTP my DHCP Service fails to start. In the Event Viewer I see the following Events.

View 20 Replies View Related

Connection To Sql Server Fails

Sep 17, 2005

Hi

I have a SQL Server that uses mixed mode , I have given it a real IP ....from home when i connect on the dial up & use the EM & then try registering it using the real ip & the sa username & pasword .It says that Access denmied to the SQL Server..... or the server does not exists


There is no firewall ... I am directly connected to the Internet & so is the SQL Box

Can anyone please let me the reason for it & how to solve this problem


Thanks

View 3 Replies View Related

VB6 ADO Connection To SQL Server 2K5 Fails

Dec 21, 2006

I have a legacy visual basic application that connects to a newly installed SQL Server 2005. On occasion (about once or twice a day) I will receive several errors in a row about not being able to open a connection to the database.

Since I am catching any errors generated I post the number and description of the Err object to the screen in a message box for notice to the user. The error is 0 and the description is blank. There are no corresponding events in Window Event Log or in the SQL Server Logs other than standard informational messages about the regular operation of the server.

I am connecting to a SQL Server 2k5 Workgroup Edition, with ODBC, using named pipes. The connection works at all other times, so I know I am set up correctly. The program loops thru the same processing section of code so there is no chance special operations being done on the database could hose the connection.

Thanks for any help.

View 1 Replies View Related

BDE Connection Via ODBC To MS SQL Server Fails

May 4, 2006

Hi,

I have a strange problem accessing a MS SQL Database from my network.
I'm using an application that is based on BDE which uses ODBC to connect to a MS SQL DB.
When I tried to connect from the network with BDE,I got this error message:

BDE Error : 13059
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied.
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionOpen (Connect()).


On the server side I'm using W2003 EE ,MS SQL 2000 Standard with SP4, BDE5.11.
On the client side it's an XP SP2 with MS SQL Client installed, same BDE 5.11
When I create an alias using ODBC and mapping to my server, it connects and the communication with the Database Server succeds:
TESTS COMPLETED SUCCESSFULLY!
When I'm trying to connect using BDE Admin and double clicking on the + sign of the alias I created usind ODBC admin I get the message I listed above.
Any help would be appreciated,

Thanks.

View 4 Replies View Related

SQL Server 2005 Express Edition With Advanced Services Service Pack 2 Update Fails

Mar 23, 2007

Using VS05 Pro SP1 with the SQL version below...

From the Windows update site and also via automatic download of updates, the following update fails every time...The SQL it is trying to update works fine.
The following updates were not installed:
Microsoft SQL Server 2005 Express Edition with Advanced Services Service Pack 2 (KB 921896)

Any idea what the problems are?
Thanks, Bob



View 7 Replies View Related

SQLConnect

Apr 14, 2008

didn't know where else to put this question.

I am trying to connect to an access database via ODBC using SQLConnect call. It works fine in an exe. Though, when I try to launch it from a DLL after DLL_PROCESS_ATTACH, the function hangs and never returns. What am I missing?

View 3 Replies View Related

JDBC Connection Fails After Windows Server 2003 SP2

Apr 3, 2007

In testing new patches, I tried Windows 2003 Server SP2 and our JDBC connections stopped working. I uninstalled SP2 and they started working again. Anyone know where the problem is?



I have already read pages of documentation, but I will keep looking. Please let me know if you know the setting that needs to be changed. I'm assuming it is a new "security enhancement" but I'm just not sure exactly where.



Thanks in advance.

Hugh

View 8 Replies View Related

Connection Fails In Linking SQL Server 2005 Tables Into Access Using DAO 3.51

Aug 21, 2006

Hi,

I have an app that creates and attaches tables from SQL Server into an Access mdb using an ODBC link from VB6 using DAO 3.51 on Windows 2000. Recently I upgraded to SQL Server Express edition and tested it. It worked fine against the Express Edition. So, I installed SQL Server 2005 Standard Edition on our Server hoping that they operate identically. How wrong one can be! the same code that worked against Express Edition does not work on Standard Edition.

It is strange that the App works for about 5 seconds which attaches about 38 tables and after that the connection drops and I have a hell of a time to get the rest of the tables linked. The error that comes up is:

Connection failed:
SQLState: '01000'
SQL Server Error: 10060
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionOpen (connect()).
Connection failed:
SQLState: '08001'
SQL Server Error: 11
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]General network error. Check your network documentation.

The PC that I am using to connect is in a different domain to the Server where the SQL Server database resides. I thought that domains might be the reason. But even joining the PC to the same domain as the server still does not work and behaves the same. So I do not think it is a domain related issue.

I have also looked at the SQL Server and database configurtaions. I cannot see anywhere any specific time out of around 5 seconds. Even the time out through the SQL Server ODBC driver is set to 30 seconds by default as far as I know. So, it looks like there is a time out somewhere but I am absolutely confused as to where this 5 second time out is comming from.

I also thought permissions on the database or tables might be the issue but after looking at the database and table permissions, they all look OK. The user has prettymuch the same access as the SA on the database.

Has anybody came across this problem? If so, I appreciate if someboday can give me a hint as to where I can start.

Thanks,

View 3 Replies View Related

SQL Server Job Fails When SSIS Package Is Having Excel Connection On 64 Bit Machine

May 29, 2008

Hello,

I've SQL Server running on 64 bit. When I schedule a package to run every night which has excel data transformation, it fails. Initally I had a problem running through BIDS also but then I found in project properties you can switch this off by specifying property Run64BitRuntime by false. After going through some forums, many have suggested that when scheduling a package, modify the command arguments to run as 32bit runtime. These command argumnents can be generated from making use of tool DTExecUI.exe Even after using generated command arguments from this tool, it doesn't help.

Below is my command argument and the error message generated.

/FILE "D:DevDWLoadAll.dtsx"
/CONFIGFILE "D:DevDWdevCongig.dtsConfig"
/CONNECTION "customers.dtsx";"D:DevDWcustomers.dtsx"
/CONNECTION "Addresses.dtsx";"D:DevDWAddresses.dtsx"
/CONNECTION "Counties.dtsx";"D:DevDWCounties.dtsx"
/CONNECTION "Countries.dtsx";"D:DevDWCountries.dtsx"
/CONNECTION "ExcelLoad.dtsx";"D:DevDWExcelLoad.dtsx"
/CONNECTION Test;""Data Source=TestDW;Initial Catalog=TestStagingDW;Provider=SQLNCLI.1;Integrated Security=SSPI;Auto Translate=False;"" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING E



Message
Executed as user: DWUserSQLServiceAcc. ...0.3042.00 for 64-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 00:05:00 Error: 2008-05-28 00:06:02.31 Code: 0xC0202009 Source: Excel Load Connection manager "Excel Connection Manager" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040154. An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered". End Error Error: 2008-05-28 00:06:02.31 Code: 0xC020801C Source: Copy Data Excel Source [5052] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. End... The package execution fa... The step failed.

Any suggestions???

Circuit

View 3 Replies View Related

DB Engine :: Connection To Server Instance From SSMS Fails Without Specifying Port

Oct 27, 2015

connecting to a SQL Server Instance. I have a SQL server DB on a server having an Instance not running on the default port. Let's say ServerAInstanceA has the services exposed on Port 12345. When I'm trying to connect to ServerAInstanceA without specifying the port number, while I can connect from one client machine (ClientA), I am unable to connect from a different client machine (ClientB).On a side note, when I provide the port number, I can connect both from clients A and B. My question is, when I do not provide the port number, why is one client machine able to connect while the other isn't?

View 4 Replies View Related

SQL 2012 :: Client Connection Fails But Then User Is Prompted To Select Server

Apr 7, 2015

We have a database residing on a SQL Server 2012 Express system running under Windows Server 2012. I have installed the SQL 2012 Native Client on the user's workstation. I created the System DSN with the required settings and when I test the connection all tests pass. I am able to ping the server as well as connect to it via SQL Server Management Studio.

Now when the user launches the application he is presented with the dialog window as in Screenshot1 (see attached). After clicking on Ok he is next presented with the dialog window where he has to select the SQL server. See attached Screenshot2. The user selects the SQL server from the drop down list and he is then able to access the application and work normally. I cannot understand why this is happening because I have included the correct server instance in the DSN settings i.e. sqlserversqlexpress

Telling the user to select the server himself is not an option for us.

I have checked the settings on the SQL Server. TCP/IP is enabled, remote connections are allowed and there is no firewall blocking. Port 1433 has been set as the default port to use.

View 6 Replies View Related

SQL Connection In Vista With Trusted Connection Fails Under Local System Account Until Reboot

Mar 4, 2008

Hi All,

We are using the Windows Task Scheduler as a substitute for the SQL Server Agent, which isn't available in the Express edition. The scheduled task just calls a batch file, which in turn, runs a stored procedure using osql with the -E option for a Trusted Connection.

SQL Server Express has been installed using the defaults, which means the service is running in the "NT AUTHORITYNETWORK SERVICE" account. The scheduled task we create is set to run using the "NT AUTHORITYSYSTEM" account.

Now we find that on Windows Vista (tested using Ultimate Edition) that the scheduled task fails to run the stored procedure until the machine is rebooted the first time after installing SQL Server Express. When I say "fail", I mean that the stored procedure isn't executed. The scheduled task however completes and reports no errors. On Windows XP, we do not run into this problem so I suspect it has something to do with the UAC in Vista?

We further found that after installing SQL Server Express and creating the scheduled task in the "NT AUTHORITYNETWORK SERVICE" account, the scheduled task (and stored procedure) runs fine WITHOUT requiring a reboot.

Can anyone explain why a reboot is needed to get SQL Server Express to run the scheduled task correctly under Windows Vista and the SYSTEM account?

Any help or thoughts greatly appreciated.

View 2 Replies View Related

Connection To Remote Server Fails, But Not To LAN-Server

Nov 16, 2006

Hallo,

I have the following problem:
I can't connect with the Management Studio Express to my remote server, which is located in the internet. All firewalls are shutdowned and I can connect to the server via telnet and get an error in the event log on the server when I type some random characters.

The connection to another remote server in my LAN does not fail. Only TCP/IP and shared memory is activated.

Servername: mydomain.deSQLEXPRESS or 217.X.X.XSQLEXPRESS
Username: sa
Password: [password]

I get the following error message:

'Es kann keine Verbindung zum Server hergestellt werden.

Additional information:
Fehler beim Herstellen einer Verbindung mit dem Server. [...] error: 26'

Translation:

'No connection could be established.

Additional information:
Error during connection establishment to the server. The reason for the problem could be, that no remote connections are allowed in the default configuration. Error 26'

Do you need more information or do you have any idea about the reason causing the problems? A local connection via remote desktop and the management studio works perfectly.

Greetings and thanks
Martin Brenn

View 3 Replies View Related

Having Trouble Opening Connection To SQL Server From A C# ASP.NET Web Service.

Oct 29, 2004

Well here is my connection string, I used these details to succesfully access the server from mySQL gui.

SqlConnection shhfd = new SqlConnection ("Data Source=http://www.mydomain.co.uk; " +
"user id=mteccles; password=mypass; connection timeout=30; "

then... try { shhfd.Open(); blah blah blah.

The exception caught is as follows.

at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) at System.Data.SqlClient.SqlConnection.Open() at WebService1.Service1.HelloWorld() in g:inetpubwwwrootwebservice1service1.asmx.cs:line 120

My guess is that something in the web.config isn't right or maybe the host (webfusion) is strange. Thanks if anyone can help.

View 2 Replies View Related

SQL Server 2000 Standard Edition - Distribution Agent Dieing When Network Connection Fails

May 21, 2007

Hi,


We have replication setup on a sql server 2000. We encountered issue that the distribution agent goes down (distrib.exe stop running) in the event of network connection broken. We would like to know:

is this the expected result that the distribution agent will go down in the event of communication failure between the distribution server and subscriber server?
if not, is there a way to programmatically control and restart the agent?
Is there any sp in SQL server which can monitor the replication communication error message?
is there any sp in SQL server which can be run to restart the agent?
For the best practice, what do you think we can do to achieve an €˜event-driven€™ kind of mechanism so when an communication breaks, the agent can be restarted by the triggered event (or at least a simple way to automatically restart)?



Thanks

Bill

View 3 Replies View Related

Inserting Image Data Fails With Connection Broken (SQL Server 2000 And SQL Native Client)

May 28, 2008

Dear all,

we have tables with many image columns. We fill these image columns via ODBC and SQLPutData as described in MSDN etc (using SQL_LEN_DATA_AT_EXEC(...), calling SQLParamData and sending the data in chunks of 4096 bytes when receiving SQL_NEED_DATA).

The SQLPutData call fails under the following conditions with sqlstate 08S01

- The database resides on SQL Server 2000
- The driver is SQL Native Client
- The table consists e.g. of one Identity column (key column) and nine image columns
- The data to be inserted are nine blocks of data with the following byte size:


1: 6781262
2: 119454

3: 269
4: 7611

5: 120054

6: 269

7: 8172

8: 120054

9: 269
The content of the data does not matter, (it happens also if only zero bytes are written), nor does the data origin (file or memory).

All data blocks including no 7 are inserted. If the first chunk of data block 8 should be written with SQLPutData the function fails and the connection is broken. There are errors such as "broken pipe" or "I/O error" depending on the used network protocol.

If data no 7 consists of 8173 bytes instead of 8172 all works again.
(Changing the 4096 chunk size length does not help)

Has anybody encountered this or a similar phenomenon?

Thank you

Eartha

View 7 Replies View Related

Error When Submitting A Form: The ConnectionString Property Has Not Been Intialized.

Apr 10, 2007

Hello!  I'm recieving an error when I submit a form to an Access database.  I took this site over from someone else and kept their code as I'm more of a designer than a programmer.  If anyone has any ideas as to how to fix it, I would really appreciate it.  I'm pretty clueless when it comes to this.  I've tried to figure it out on my own, but I seem to be failing.  Any help would be great!  Here's what I receive when I submit the form:
 
The ConnectionString property has not been initialized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized.Source Error:



An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:



[InvalidOperationException: The ConnectionString property has not been initialized.]
System.Data.OleDb.OleDbConnection.Open() +203
modern_foods.promotions_form.saveInfo(Object s, EventArgs e) +535
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
Thank you in advance!

View 10 Replies View Related

SQL Server 2005 Not Allowing Connection From Windows Service

May 28, 2008

Hi All,

I have written a windows service using VB.NET that connects to a database and performs several tasks. The service is working correctly and has been fully tested against SQL Server 2000. I have recently moved to SQL Server 2005 and now, the service will not connect to the database.

I have setup and tried several different users, but none work, I get the following message:

Login failed for user 'OEESYSTEMS'

The server instance, username and password I specify are all correct.

The service is running on the same server as SQL Server. I can connect through a web application, and through ODBC. The server is set to use SQL server and windows authentication, and is setup and successfully allows remote connections.

It looks like SQL server sees that a windows service is trying to connect and does not allow it.

For the love of god, can anyone help with this issue.

Thank you.

View 1 Replies View Related

Windows Service To SQL Server 2005 Connection Problem

Feb 7, 2008


I am running a C# Windows Service as ".Administrator" account.
It cannot make connection to SQL Server 2005 and gives the following error:

(An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Like it couldn't find the SQL Server 2005 .(SQL Server is installed in Windows 2003 Server Enterprise ed.)
However when I debug my service as Console application it connects successfully.
I am still in trouble.. please help me out.

Thanks and Regards

View 1 Replies View Related

How To Create A Datasource Which Connection Type Is SQL Server Anlysis Service In Rss Script?

Oct 20, 2005

I am making a rss script to deploy the reports and datasources.

View 2 Replies View Related

Service Fails To Start

Jul 23, 2005

Am using SQL Server2000 on WINXP. Have been using this DB since it becameavailable. Today, all of a suddent, the Service was not 'started,' even thoI had it marked as 'automatic.' Tried to manually start the service, andreceived the message that some service start and stop if there is no workfor them to do.Don't know why this has happened. I rebotted my computer, but still can notget MSSQLSERVER 'started.' Can anyone help me here?

View 1 Replies View Related

SQL 6.5 Installation Of Service Pack 5a Fails ???

Jul 11, 2001

It seems that all of a sudden my companies clients are running into problems with the installation of servicepack 5a on SQL Server 6.5 workstations. The servicepack is apparently getting to the point where it checks the master DB and then Chkmast.exe returns a value of 0 which seems to indicate that there is not enough space in the master DB for the service pack to install. I have expanded master databases well beyond the capacity where this would ever be a problem but the service pack continues to fail on chkmast.exe. What nweeds to be done to allow the service pack installation to complete?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved