Showing posts with label servers. Show all posts
Showing posts with label servers. Show all posts

Monday, March 26, 2012

Problem with asp page and ODBC on Windows 2003 SR 64 Bits

I have an Application developed on ASP, I got a few new servers 64bits, I installed microsoft WIN 2003 SR.
When I get in into the web site I receive this errors:

Microsoft OLE DB Provider for ODBC Driverserror '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

/ConnectToDatabase.asp, line 17

I made some obvios checks, I checked that the ODBC really exists and we move the IIS 6.0 to run in 32bits mode as I found in some page.

Thanks you.

Ahmed

Hi,

could you please post your connection string right in here ? We can′t see if you use a DSN or a DSNless connection.

HTH, Jens Suessmeyer.

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

You are likely using an ODBC driver that is not available for 64bits. See http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=20574&SiteID=1 for the relevnat discusion.

Can you connect to the odbc driver in question using ODBC driver manager. Start->Run->ODBCAD32.exe. Using odbc driver manager create a new dsn and test the connection.

Problem with asp page and ODBC on Windows 2003 SR 64 Bits

I have an Application developed on ASP, I got a few new servers 64bits, I installed microsoft WIN 2003 SR.
When I get in into the web site I receive this errors:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

/ConnectToDatabase.asp, line 17

I made some obvios checks, I checked that the ODBC really exists and we move the IIS 6.0 to run in 32bits mode as I found in some page.

Thanks you.

Ahmed

Hi,

could you please post your connection string right in here ? We can′t see if you use a DSN or a DSNless connection.

HTH, Jens Suessmeyer.

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

You are likely using an ODBC driver that is not available for 64bits. See http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=20574&SiteID=1 for the relevnat discusion.

Can you connect to the odbc driver in question using ODBC driver manager. Start->Run->ODBCAD32.exe. Using odbc driver manager create a new dsn and test the connection.

Wednesday, March 21, 2012

Problem with a Replication with two publications

Hi.

I have a database with two publications.
One publication is used to replicate data among 4 SQL Servers, while the other is used for the replication with SQL Server CE clients.
The problem here is that the SQLCE receive a number of changes that it is not correct.
Before establishing the publication for SQL Servers the SQL CE clients were working great, but now i have this problem.

Is there any patch or fix I should install on the server?, or do you know how can I solve this?

Thank you.

Omar Rojascan you give more details about your setup? Is this tran or merge publication? what errors are you getting? are there tables belonging to both publications?|||Hi, Greg.

Both are Merge Publications. The tables are belonging to both pubs. The problem is that when I add a SQL 2K subscription and it synchronize, it takes (in this case) about 61000 changes, while the SQLCE client just needs about 100 or so. The SQLCE client is just collecting its 100 changes, but everytime it replicates, it receives a notification that got 61000 changes (even when just 100 are real) BUT its replication time lasts very much.
The difference between publications are the filters. The filters of the SQLCE are specific for one client, while the filters of SQL2K can give info about many clients. (Specified by columns in tables)

Regards!

Omar.|||

Hi Omar,

Help me understand the scenario.

1. Publication pub1 goes to SQL 2K subscriber has a filter that qualifies 61000 rows from a table.

2. Publication pub2 goes to SQL CE subscriber has a filter that qualifies only 100 rows from the very same table

3. The only changes are in the filters for the 2 publications

4. CE subscriber syncs to the publisher for publication pub2 and does get only the relevant 100 rows but it takes a long time and reports 61000 rows downloaded. You do not see 61000 rows at the subscriber and see only 100.

|||Mahesh:

That's it, exactly as you said it!, at the time I delete the SQL2K Subscription, everything on the SQLCE subscriber becomes normal.

Have you had any scenario like this?

Thank you for your reply!

Omar|||

No, I havent seen a scenario like this.

It will help if you can post your publication/article/filter scripts.

Also I assume your CE subscriber is 2.0 and not 3.0?

|||Hi, Mahesh.

I updated the SQL Server to SP3 and all seems to work fine. Either way, Some rows are not being replicated on some tables and I'm checking on it, but the problem about de 60k rows is gone (or at least it seems to).
Thank you for your help!
Regards!

Omarsql

Tuesday, March 20, 2012

Problem whit Logshipping Error 952

Hi,

I have a problem with Log Shipping.

I implement Log Shipping in 2 servers with Sql 2005, but when i drop log shipping at the first server the second server locks the DB. I can not copy, drop or select any table, object...

The second server displays the following messaje

Error 952 - Database '%.*ls' is in transition. Try the statement later.

Any help you can give to me to the resolve this cuestion?

Thanks

>> " i drop log shipping at the first server"

Did you do that from the LS UI or running the LS stored precedures ?

thanks

Yunwen

Wednesday, March 7, 2012

Problem when a IS tries to move data between servers

Hello,

I have a problem: I have created an Integration Services in SQL Server 2005 that moves data from a table in a server to another table in another server. I have set the protection level property to "don't save sensitive".

The problem is when I try to execute it with a dtexec command. I get this errors:

'An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E4D Description: "Communication link failure".'
'An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E4D Description: "TCP Provider: An existing connection was forcibly closed by the remote host.'
'An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E4D Description: "Login failed for user 'xxxxx'.".'

I don't know why the Integration Services does not work, and what are this errors about. Maybe the problem is with the protection level property, because when I set it to "don't save sensitive" it has some warnings, but when I set the property to "Encrypt sensitive with user key" the error messages are the same.

Thanks,

Pablo Orte

Pablo,

What you are seeing, I think, it's an expected behavior. When you choose 'Don't save sensitive' NO sensitive info is saved; and that includes the password in connection strings. See here for more details: http://msdn2.microsoft.com/en-us/library/ms141747.aspx

You could avoid this situation on several ways; I personally use 'Don't save sensitive' and then assign connection strings at run time using 'package configurations' as described in the method 4 of this article: http://support.microsoft.com/kb/918760

Notice thta if you are using SQL Server database you could use Windows authentication that does not require explicitly saved pasword as a part of the connection string.

|||

Hi Rafael,

Thanks for your reply. We have an Scrypt Task at the start of the IS, that assign a connection string to the different servers. The values of the connection strings (user, password, server, and database) are passed as variables.

The thing is that when we execute the IS in the SQL Server Business Intelligence, It works fine and does everything ok. But when it is executed with the dtexec command it gives us that error.

Thanks,

Pablo Orte

|||

Using script task for this kind of task is something I have never done; Package configuration is the natural way to me to solve it. Is there something that prevents you to use them?

I am not sure, but your problem may be related with the order on which things occur when running the package; if I recall correctly package configuration go first; then the connection managers. Saying this, I don't know if by the time you script task attempts to replace the connection strings it's already too late.

BTW, when you say you are passing user/password/server via variables; are the values local in the package or they are received via package configuration?

|||

Well, the fist thing our IS do is setting the connection string. We do this with variables because our ISs do things in different servers, at different times. I mean, we have some servers, and we use the same IS to do things with them.

After this, our IS truncate a table and the call a data flow that do a select instruction from a server, convert the data a insert it into another server. Then, it truncates another table and finish. We think that this error may occur because the dataflow between servers is wrong or it doesn't set the connection string properly.

The variables are passed with the dtexec command and they are variables in the package.