Showing posts with label ole. Show all posts
Showing posts with label ole. Show all posts

Tuesday, March 20, 2012

Connecting to Oracle DB using SSIS

Can anybody point me how to connect to an Oracle DB using SSIS? I use the ole DB Connection Manager and pick the Microsoft OLE DB Provider for Oracle but it doesn't seem to work. Any suggestions are greatly apprecaited.

Thanks.

Sam.

Why doesn't it "seem to work"? What errors are you getting? What isn't happening? What IS happening?

Have you got Oracle client installed? Have you configured OLE DB Driver with the name of the TNS entry?

-Jamie

|||

This is the error msg I get.

Test Connection failed because of an error in initializing provider. ORA-12514: TNS listener does not currently know of service requested in connect descriptor.

I have Oracle client installed.

How do I configure OLE DB Driver with the name of the TNS entry? I am new to Oracle...so please bear with me..

Thanks a lot..

|||

First of all you need to verify that you can connect to oracle using the configured driver before you try to do it in SSIS.

There is a file on your client called tnsnames.ora. That file should contain what is called a TNS entry that contains all teh connection details for your Oracle server. Your Oracle DBA will give you the TNS entry.

Verify that you can connect and then connect the name of the TNS entry (it usually ends in ".world") into the OLE DB Driver config UI.

-Jamie

|||

Hi Jamie,

Thanks for a quick reply. I have an entry in the tnsnames.ora file for the connection details. So I checked to see if I can connect with the host string in the tnsnames.ora along with the user name/password. To do that I used Oracle SQL* PLUS. I am able to connect.

I couldn't understand the second step...

"then connect the name of the TNS entry (it usually ends in ".world") into the OLE DB Driver config UI." Can you please explain in more detail?

Thanks a lot...I really appreciate your help.

|||

When you build the SSIS Connection Manager using the microsoft OLE DB Provider for Oracle you will see a box labelled Server Name. Copy the name of the tns entry into that box.

-Jamie

|||

I got it Jamie. I was having two locations for tnsnames.ora and that was the reason for the error...

I appreciate your help.

Thanks.

|||

Hi Jamie,

I have the same problem now in production environment. I have to connect to oracle db from production too and I downloaded the client tools on my 64 bit windows server 2003. I edited the tnsnames to have an entry. When I try to connect to oracle, it gives me an error saying client and networking tools not installed, but I did install them. Can you please help me?

Thanks.

Sam.

Connecting to Oracle DB using SSIS

Can anybody point me how to connect to an Oracle DB using SSIS? I use the ole DB Connection Manager and pick the Microsoft OLE DB Provider for Oracle but it doesn't seem to work. Any suggestions are greatly apprecaited.

Thanks.

Sam.

Why doesn't it "seem to work"? What errors are you getting? What isn't happening? What IS happening?

Have you got Oracle client installed? Have you configured OLE DB Driver with the name of the TNS entry?

-Jamie

|||

This is the error msg I get.

Test Connection failed because of an error in initializing provider. ORA-12514: TNS listener does not currently know of service requested in connect descriptor.

I have Oracle client installed.

How do I configure OLE DB Driver with the name of the TNS entry? I am new to Oracle...so please bear with me..

Thanks a lot..

|||

First of all you need to verify that you can connect to oracle using the configured driver before you try to do it in SSIS.

There is a file on your client called tnsnames.ora. That file should contain what is called a TNS entry that contains all teh connection details for your Oracle server. Your Oracle DBA will give you the TNS entry.

Verify that you can connect and then connect the name of the TNS entry (it usually ends in ".world") into the OLE DB Driver config UI.

-Jamie

|||

Hi Jamie,

Thanks for a quick reply. I have an entry in the tnsnames.ora file for the connection details. So I checked to see if I can connect with the host string in the tnsnames.ora along with the user name/password. To do that I used Oracle SQL* PLUS. I am able to connect.

I couldn't understand the second step...

"then connect the name of the TNS entry (it usually ends in ".world") into the OLE DB Driver config UI." Can you please explain in more detail?

Thanks a lot...I really appreciate your help.

|||

When you build the SSIS Connection Manager using the microsoft OLE DB Provider for Oracle you will see a box labelled Server Name. Copy the name of the tns entry into that box.

-Jamie

|||

I got it Jamie. I was having two locations for tnsnames.ora and that was the reason for the error...

I appreciate your help.

Thanks.

|||

Hi Jamie,

I have the same problem now in production environment. I have to connect to oracle db from production too and I downloaded the client tools on my 64 bit windows server 2003. I edited the tnsnames to have an entry. When I try to connect to oracle, it gives me an error saying client and networking tools not installed, but I did install them. Can you please help me?

Thanks.

Sam.

Connecting to Oracle

I can connect to a oracle database on the development PC using OLE DB, here
is the connection string:
Provider=OraOLEDB.Oracle.1;Data Source=cdbprod
Yet when I Deploy to the test server, it fails. Other applications can
connect to the oracle database on the same test server, but not reporting
services. Can someone give me a working example connection string for Oracle?
--
www.duanelawrence.comI think this might be a issue with setting file access rights to the Oracle
client directory for the RS account. I suspect it is not your connection
string. What error are you getting?
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"duanelawrence.com" <duanelawrencecom@.discussions.microsoft.com> wrote in
message news:CAA8D1D1-4299-432A-B6A9-3CE93B4BDECF@.microsoft.com...
> I can connect to a oracle database on the development PC using OLE DB,
here
> is the connection string:
> Provider=OraOLEDB.Oracle.1;Data Source=cdbprod
> Yet when I Deploy to the test server, it fails. Other applications can
> connect to the oracle database on the same test server, but not reporting
> services. Can someone give me a working example connection string for
Oracle?
> --
> www.duanelawrence.com
>|||This is the error I get with a fresh upload from the working one on my
development PC:
An error has occurred during report processing. (rsProcessingAborted) Get
Online Help
Cannot create a connection to data source 'cdbprod'.
(rsErrorOpeningConnection) Get Online Help
The 'OraOLEDB.Oracle.1' provider is not registered on the local machine.
No error information available: REGDB_E_CLASSNOTREG(0x80040154).
"Bruce L-C [MVP]" wrote:
> I think this might be a issue with setting file access rights to the Oracle
> client directory for the RS account. I suspect it is not your connection
> string. What error are you getting?
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "duanelawrence.com" <duanelawrencecom@.discussions.microsoft.com> wrote in
> message news:CAA8D1D1-4299-432A-B6A9-3CE93B4BDECF@.microsoft.com...
> > I can connect to a oracle database on the development PC using OLE DB,
> here
> > is the connection string:
> > Provider=OraOLEDB.Oracle.1;Data Source=cdbprod
> >
> > Yet when I Deploy to the test server, it fails. Other applications can
> > connect to the oracle database on the same test server, but not reporting
> > services. Can someone give me a working example connection string for
> Oracle?
> >
> > --
> >
> > www.duanelawrence.com
> >
> >
>
>|||Yeah, this seems to me to be that you need to set permissions on the oracle
directory. Sorry I can't be more specific, I am not using Oracle myself.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"duanelawrence.com" <duanelawrencecom@.discussions.microsoft.com> wrote in
message news:39412D41-650B-43FD-BAEF-E6F57D784209@.microsoft.com...
> This is the error I get with a fresh upload from the working one on my
> development PC:
> An error has occurred during report processing. (rsProcessingAborted) Get
> Online Help
> Cannot create a connection to data source 'cdbprod'.
> (rsErrorOpeningConnection) Get Online Help
> The 'OraOLEDB.Oracle.1' provider is not registered on the local machine.
> No error information available: REGDB_E_CLASSNOTREG(0x80040154).
>
>
> "Bruce L-C [MVP]" wrote:
> > I think this might be a issue with setting file access rights to the
Oracle
> > client directory for the RS account. I suspect it is not your connection
> > string. What error are you getting?
> >
> > --
> > Bruce Loehle-Conger
> > MVP SQL Server Reporting Services
> >
> > "duanelawrence.com" <duanelawrencecom@.discussions.microsoft.com> wrote
in
> > message news:CAA8D1D1-4299-432A-B6A9-3CE93B4BDECF@.microsoft.com...
> > > I can connect to a oracle database on the development PC using OLE DB,
> > here
> > > is the connection string:
> > > Provider=OraOLEDB.Oracle.1;Data Source=cdbprod
> > >
> > > Yet when I Deploy to the test server, it fails. Other applications
can
> > > connect to the oracle database on the same test server, but not
reporting
> > > services. Can someone give me a working example connection string for
> > Oracle?
> > >
> > > --
> > >
> > > www.duanelawrence.com
> > >
> > >
> >
> >
> >|||The real answer is.
We have DTS packages running on the test server, they all use Microsoft
Datalink files (UDL), we opened the one that goes to the Oracle database and
copied the connection string into the shared data source in the report
manager window. The reports are running now, still have not returned, but
they have not errored out in the past 10 minutes.
Duane
"Bruce L-C [MVP]" wrote:
> Yeah, this seems to me to be that you need to set permissions on the oracle
> directory. Sorry I can't be more specific, I am not using Oracle myself.
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "duanelawrence.com" <duanelawrencecom@.discussions.microsoft.com> wrote in
> message news:39412D41-650B-43FD-BAEF-E6F57D784209@.microsoft.com...
> > This is the error I get with a fresh upload from the working one on my
> > development PC:
> >
> > An error has occurred during report processing. (rsProcessingAborted) Get
> > Online Help
> > Cannot create a connection to data source 'cdbprod'.
> > (rsErrorOpeningConnection) Get Online Help
> > The 'OraOLEDB.Oracle.1' provider is not registered on the local machine.
> > No error information available: REGDB_E_CLASSNOTREG(0x80040154).
> >
> >
> >
> >
> > "Bruce L-C [MVP]" wrote:
> >
> > > I think this might be a issue with setting file access rights to the
> Oracle
> > > client directory for the RS account. I suspect it is not your connection
> > > string. What error are you getting?
> > >
> > > --
> > > Bruce Loehle-Conger
> > > MVP SQL Server Reporting Services
> > >
> > > "duanelawrence.com" <duanelawrencecom@.discussions.microsoft.com> wrote
> in
> > > message news:CAA8D1D1-4299-432A-B6A9-3CE93B4BDECF@.microsoft.com...
> > > > I can connect to a oracle database on the development PC using OLE DB,
> > > here
> > > > is the connection string:
> > > > Provider=OraOLEDB.Oracle.1;Data Source=cdbprod
> > > >
> > > > Yet when I Deploy to the test server, it fails. Other applications
> can
> > > > connect to the oracle database on the same test server, but not
> reporting
> > > > services. Can someone give me a working example connection string for
> > > Oracle?
> > > >
> > > > --
> > > >
> > > > www.duanelawrence.com
> > > >
> > > >
> > >
> > >
> > >
>
>

Sunday, March 11, 2012

Connecting to Failover Partner using ODBC and OLE DB


I need to connect to mirrored SQL servers (Developer Edition) using OLE DB, I tried both OLE DB and ODBC, but it doesn't work
I used connection ODBC string:
Driver={SQL Native Client};Server=10.0.1.161;Failover Partner=10.0.1.162;Uid=test;Pwd=test;Database=TestDB
if server 161 is principal and server 162 mirror, it connects ok, but when I exchange server roles, connect fails (the error message is: Cannot open database "TestDB" requested by the login. The login failed. in LOGIN)
the connect string using OLE DB is:
Provider=SQLOLEDB.1;Persist Security Info=False;User ID=test;Password=test;Failover Partner=10.0.1.162;Initial Catalog=TestDB;Data Source=10.0.1.161;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Use Encryption for Data=False;Tag with column collation when possible=False
error message is the same
when I try to connect using VS 2005 using connection string Database=TestDB;User Id=test;Password=test;Server=10.0.1.161;Failover Partner=10.0.1.162, it works OK
i have installed SQL server 2005 (on local - client machine) with SQL Native Client and also
SQL Server service pack 1
Is there any way how to connect from OLE DB?
Thanks

With OLE DB the connection string keyword is 'FailoverPartner' (no space) in the provider string for IDBInitialize::Initialize and 'Failover Partner' (one space) for IDataInitialize::GetDataSource.

With ADO it's 'Failover Partner' (one space) and ODBC it's 'Failover_Partner'

Depending on the method you use to connect, you may be using the wrong keyword.

Mirroring happens per database rather than per server, and covers data (tables and indexes) but not user accounts and access rights. These have to be set up in both databases for failover to work, otherwise you can have a login fail after the servers switch roles if the login does not have access rights in the mirror database.

Connecting to DB2 / AS 400 from SQL Server

Bonjour,
I wish to access a DB2 database wich is on a AS 400.
1) wich OLE db driver must we use ?
2) where can we download it ?
3) is it free ?
3) how to configure it ?
We have try different syntaxes without success :
Example :
sp_addlinkedserver @.server = 'AccesDB2_AS400_TRY1'
, @.srvproduct = 'Microsoft OLE DB Provider for DB2'
, @.provider = 'DB2OLEDB'
, @.location = 'ASILON'
, @.provstr = 'Initial Catalog=EPSILON;Data
Source=DB2;HostCCSID=1252;Network Address=192.168.1.15;Network
Port=50000;Package Collection=admin;Default Schema=admin;'
, @.catalog = 'EPSILON'
Our AS 400 server name is ASILON
Our AS 400 server adress IP is 192.168.1.15
The database name is EPSILON
What are we missing ?
thanks
Frdric BROUARD, MVP SQL Server, expert bases de donnes et langage SQL
Le site sur le langage SQL et les SGBDR : http://sqlpro.developpez.com
Audit, conseil, expertise, formation, modlisation, tuning, optimisation
********************* http://www.datasapiens.com ***********************Hi Frdric,
There should be an OLEDB DB2 provider distributed with MDAC. From here you
can download the latest version:
http://msdn.microsoft.com/data/mdac...ds/default.aspx
Here are a couple of good links providing information about formatting
connection strings:
http://www.carlprothman.net/Default.aspx?tabid=81
http://www.connectionstrings.com/
JT
"SQLpro [MVP]" <brouardf@.club-internet.fr> wrote in message
news:%238ucAMsRGHA.2300@.TK2MSFTNGP11.phx.gbl...
> Bonjour,
> I wish to access a DB2 database wich is on a AS 400.
> 1) wich OLE db driver must we use ?
> 2) where can we download it ?
> 3) is it free ?
> 3) how to configure it ?
> We have try different syntaxes without success :
> Example :
> sp_addlinkedserver @.server = 'AccesDB2_AS400_TRY1'
> , @.srvproduct = 'Microsoft OLE DB Provider for DB2'
> , @.provider = 'DB2OLEDB'
> , @.location = 'ASILON'
> , @.provstr = 'Initial Catalog=EPSILON;Data
> Source=DB2;HostCCSID=1252;Network Address=192.168.1.15;Network
> Port=50000;Package Collection=admin;Default Schema=admin;'
> , @.catalog = 'EPSILON'
>
> Our AS 400 server name is ASILON
> Our AS 400 server adress IP is 192.168.1.15
> The database name is EPSILON
> What are we missing ?
>
> thanks
> --
> Frdric BROUARD, MVP SQL Server, expert bases de donnes et langage SQL
> Le site sur le langage SQL et les SGBDR : http://sqlpro.developpez.com
> Audit, conseil, expertise, formation, modlisation, tuning, optimisation
> ********************* http://www.datasapiens.com ***********************|||this posting made my day!!!
thanks!!!
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
"JT" wrote:

> Hi Frédéric,
> There should be an OLEDB DB2 provider distributed with MDAC. From here you
> can download the latest version:
> http://msdn.microsoft.com/data/mdac...ds/default.aspx
> Here are a couple of good links providing information about formatting
> connection strings:
> http://www.carlprothman.net/Default.aspx?tabid=81
> http://www.connectionstrings.com/
> JT
> "SQLpro [MVP]" <brouardf@.club-internet.fr> wrote in message
> news:%238ucAMsRGHA.2300@.TK2MSFTNGP11.phx.gbl...
>
>

Wednesday, March 7, 2012

Connecting to a remote OLE DB

Hey, all. I've mainly worked with MySQL databases before. I'm working on an (old) ASP page that uses this connection string:

strConnect ="Provider=SQLOLEDB; Data Source=SQL1.MYDBSERVER.NET; Initial Catalog=...; User ID=...; Password=..."
It works fine on the production server, but the local copy fails if I try to access the Products page (which uses the database), with this error:
Microsoft OLE DB Providerfor SQL Server (0x80004005)
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
/html/products.asp, line 19

Similarly, if I plug the connection info into Tools/Connect to Database in Visual Studio, I get:

Connection failed:
SQLState:'08001'SQL Server Error: 17[DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist or access denied.

Am I doing something wrong? Do I need more info from the hosting provider to connect remotely? Or is the database not accepting remote connections at all?

Thanks in advance for your help!

It might be that you do not have permission to access it or it might be that database is old (version 7.0) and that you cannot connect from Management studio. Check it with hosting provider.

Sunday, February 19, 2012

Connecting from Powerbuilder through ole db, column defaults not r

I am connecting through ole db from Powerbuilder to Ms Sql Server 2000.
Powerbuilder is not recognizing the column defaults which leads to problems,
especially for inserts. Has anyone run into this and can you help me out?
You need to be much more specific. What does "not recognizing column
defaults" mean? What problems? Are you using datawindows. If so, the only
time columns are included in insert statements is when your application code
sets the value of that column. Is that what you are doing? If your code
(and user) do not provide a value, then it is left out of the inserted
column "list". In this case, the default is used. You also failed to
specify which version of Powerbuilder. At the very least, you should review
the fix list for the most current build of the version you are using to
determine if there is a bug that has already been fixed.
Incidentally, you are more likely to get help posting in a powerbuilder NG.
The more information you post, the more likely someone will help.
"roz" <roz@.discussions.microsoft.com> wrote in message
news:091BC8BE-02BE-41AE-8F5C-07621F96BFA5@.microsoft.com...
> I am connecting through ole db from Powerbuilder to Ms Sql Server 2000.
> Powerbuilder is not recognizing the column defaults which leads to
problems,
> especially for inserts. Has anyone run into this and can you help me out?

Connecting from Powerbuilder through ole db, column defaults n

I am using PB 9.0.1 Build 7236. I am using a datawindow to do an Insert.
The column in question should default to zero. It is NOT included as an
updateable column in the datawindow. But PowerBuilder is including it in the
Insert syntax and erroring as the default of zero is not being recognized.
When I use the PB Native MS SQL Server interface, the column default is
recognized. In Enterprise Manager, the default of zero shows on the
in-question column.
I have asked in PB groups but have only got one reply that states that this
is the way the OLE DB interface has always worked. Is this a peculiarity to
OLE DB? Or do you think it is a PB problem?
"Scott Morris" wrote:

> You need to be much more specific. What does "not recognizing column
> defaults" mean? What problems? Are you using datawindows. If so, the only
> time columns are included in insert statements is when your application code
> sets the value of that column. Is that what you are doing? If your code
> (and user) do not provide a value, then it is left out of the inserted
> column "list". In this case, the default is used. You also failed to
> specify which version of Powerbuilder. At the very least, you should review
> the fix list for the most current build of the version you are using to
> determine if there is a bug that has already been fixed.
> Incidentally, you are more likely to get help posting in a powerbuilder NG.
> The more information you post, the more likely someone will help.
> "roz" <roz@.discussions.microsoft.com> wrote in message
> news:091BC8BE-02BE-41AE-8F5C-07621F96BFA5@.microsoft.com...
> problems,
>
>
Sounds to me like your code (or perhaps in an ancestor class) is doing
something unexpected. If the column is not included the the list of
updateable columns, then it will not be included as a column in the insert
list. I've never had a problem with PB in this respect. I suspect that
something else is occurring that is causing the behavior. You may want to
use the preview pane in the dw painter to insert a row (if possible); this
would at least identify PB or your code as the problem. The next step would
be to create a simple test case using the existing datawindow (and without
any of your ancestor/application code). If these succeed, then the problem
lies with the application code. Although I haven't moved beyond PB9 6533, I
suspect that application code or design is the problem. It also may be
related to some odd cirucumstances (sharedata, linkage, get/setfullstate,
etc.). You may also want to investigate whether some piece of code is
dynamically modifying the datawindow and (implicitly or explicitly) setting
the update properties.
Be aware that the default you define in the table and the default you define
within PB are different "things" entirely. PB will not automatically update
a default defined in the datawindow to be consistent with any table-level
default. This should not be an issue in this particular situation.
One last thing: The phrase "... syntax and erroring as the default of zero
is not being recognized" is not particularly meaningful. I will repeat.
Help is much likely to be more "helpful" and more forthcoming if you
accurately and completely describe the problem. By itself, a default (or
lack thereof) will not produce an error when a row is inserted into a table.
Perhaps there is a constraint or trigger that enforces the use of a specific
domain of values for a column, producing the error. It helps to know the
exact text of the error. I'm still not certain what "...the column default
is recognized." means but I'm not certain it matters at this point.
"roz" <roz@.discussions.microsoft.com> wrote in message
news:D6DE6DA2-C749-4546-B121-D097E2C3A25F@.microsoft.com...
> I am using PB 9.0.1 Build 7236. I am using a datawindow to do an Insert.
> The column in question should default to zero. It is NOT included as an
> updateable column in the datawindow. But PowerBuilder is including it in
the
> Insert syntax and erroring as the default of zero is not being recognized.
> When I use the PB Native MS SQL Server interface, the column default is
> recognized. In Enterprise Manager, the default of zero shows on the
> in-question column.
> I have asked in PB groups but have only got one reply that states that
this
> is the way the OLE DB interface has always worked. Is this a peculiarity
to[vbcol=seagreen]
> OLE DB? Or do you think it is a PB problem?
>
> "Scott Morris" wrote:
only[vbcol=seagreen]
code[vbcol=seagreen]
code[vbcol=seagreen]
review[vbcol=seagreen]
NG.[vbcol=seagreen]
2000.[vbcol=seagreen]
out?[vbcol=seagreen]
|||I am trying to do an insert on a table using a datawindow. The dw does not
use the
column 'dues_paid_lifetime' in the select (I searched the source!). Thus
there is no initial value to set to zero. It is not in the select so there
is no column to remove from the update list.. I set the dbparm to
DisableParm = 1. Still on the insert I get the error:
SQLSTATE = 23000
Microsoft OLE DB Provider for SQL Server
Cannot insert the value NULL into column "DUES_PAID_LIFETIME'; column does
not allow nulls. INSERT fails.
The insert syntax also displays in the error message. The column
"DUES_PAID_LIFETIME' is not in the sql syntax.
This does not happen with Oracle or with the Native MSSQL Server interface
sent with Powerbuilder.
Is this a SQLOLEDB bug?
"Scott Morris" wrote:

> Sounds to me like your code (or perhaps in an ancestor class) is doing
> something unexpected. If the column is not included the the list of
> updateable columns, then it will not be included as a column in the insert
> list. I've never had a problem with PB in this respect. I suspect that
> something else is occurring that is causing the behavior. You may want to
> use the preview pane in the dw painter to insert a row (if possible); this
> would at least identify PB or your code as the problem. The next step would
> be to create a simple test case using the existing datawindow (and without
> any of your ancestor/application code). If these succeed, then the problem
> lies with the application code. Although I haven't moved beyond PB9 6533, I
> suspect that application code or design is the problem. It also may be
> related to some odd cirucumstances (sharedata, linkage, get/setfullstate,
> etc.). You may also want to investigate whether some piece of code is
> dynamically modifying the datawindow and (implicitly or explicitly) setting
> the update properties.
> Be aware that the default you define in the table and the default you define
> within PB are different "things" entirely. PB will not automatically update
> a default defined in the datawindow to be consistent with any table-level
> default. This should not be an issue in this particular situation.
> One last thing: The phrase "... syntax and erroring as the default of zero
> is not being recognized" is not particularly meaningful. I will repeat.
> Help is much likely to be more "helpful" and more forthcoming if you
> accurately and completely describe the problem. By itself, a default (or
> lack thereof) will not produce an error when a row is inserted into a table.
> Perhaps there is a constraint or trigger that enforces the use of a specific
> domain of values for a column, producing the error. It helps to know the
> exact text of the error. I'm still not certain what "...the column default
> is recognized." means but I'm not certain it matters at this point.
> "roz" <roz@.discussions.microsoft.com> wrote in message
> news:D6DE6DA2-C749-4546-B121-D097E2C3A25F@.microsoft.com...
> the
> this
> to
> only
> code
> code
> review
> NG.
> 2000.
> out?
>
>
|||It looks to me like there is some other problem. The insert statement
generated by PB does not include the column in the insert list. If this is
true (and you can verify this using profiler - just to be absolutely
certain), then the default constraint you think is present isn't or the
default constraint is not enabled. Another possibility is a mal-functioning
trigger
Based on your information, you should be able to take the insert statement
from the error message, paste it into QA, and generate the error yourself by
executing the statement.
"Roz" <Roz@.discussions.microsoft.com> wrote in message
news:E5F27698-9BC8-4909-919E-63F11B9AF80E@.microsoft.com...
> I am trying to do an insert on a table using a datawindow. The dw does
not
> use the
> column 'dues_paid_lifetime' in the select (I searched the source!). Thus
> there is no initial value to set to zero. It is not in the select so
there[vbcol=seagreen]
> is no column to remove from the update list.. I set the dbparm to
> DisableParm = 1. Still on the insert I get the error:
> SQLSTATE = 23000
> Microsoft OLE DB Provider for SQL Server
> Cannot insert the value NULL into column "DUES_PAID_LIFETIME'; column does
> not allow nulls. INSERT fails.
> The insert syntax also displays in the error message. The column
> "DUES_PAID_LIFETIME' is not in the sql syntax.
> This does not happen with Oracle or with the Native MSSQL Server interface
> sent with Powerbuilder.
> Is this a SQLOLEDB bug?
>
> "Scott Morris" wrote:
insert[vbcol=seagreen]
that[vbcol=seagreen]
to[vbcol=seagreen]
this[vbcol=seagreen]
would[vbcol=seagreen]
without[vbcol=seagreen]
problem[vbcol=seagreen]
6533, I[vbcol=seagreen]
get/setfullstate,[vbcol=seagreen]
setting[vbcol=seagreen]
define[vbcol=seagreen]
update[vbcol=seagreen]
table-level[vbcol=seagreen]
zero[vbcol=seagreen]
table.[vbcol=seagreen]
specific[vbcol=seagreen]
default[vbcol=seagreen]
Insert.[vbcol=seagreen]
an[vbcol=seagreen]
in[vbcol=seagreen]
recognized.[vbcol=seagreen]
is[vbcol=seagreen]
peculiarity[vbcol=seagreen]
column[vbcol=seagreen]
the[vbcol=seagreen]
application[vbcol=seagreen]
inserted[vbcol=seagreen]
to[vbcol=seagreen]
should[vbcol=seagreen]
to[vbcol=seagreen]
powerbuilder[vbcol=seagreen]
me[vbcol=seagreen]

Sunday, February 12, 2012

connect to sql server via aps page ado :(

Microsoft OLE DB Provider for SQL Server error '80004005'

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

This the error message that i get when connect the sql server via asp page using ado.

the sql server is a default instance on a fail over cluster.

name pipes is enabled both on server network and at client network

any help.

--sanjayNormally, this occurs when you have not granted access to the iusr account that iis uses. Also, the following article list several other areas:

article (http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q306518&)

Let me know if you need further assistance.

Good luck.|||Originally posted by sanjay_kumar_r
Microsoft OLE DB Provider for SQL Server error '80004005'

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

This the error message that i get when connect the sql server via asp page using ado.

the sql server is a default instance on a fail over cluster.

name pipes is enabled both on server network and at client network

any help.

--sanjay

Guys,

I have this same problem...

Until yesterday averything is fine but since today I receive this error message.

Any help?

What does it means: "Normally, this occurs when you have not granted access to the iusr account that iis uses"?
I have just the "sa" usar in SQL...
What I need to check?|||I found the error.

My firewall blocked the dllhost.exe .
I give the permition and everything is fine again...