Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend to us ReliableDbProvider to connect to Sybase #19

Open
shashikumaarb opened this issue Mar 20, 2017 · 3 comments
Open

Extend to us ReliableDbProvider to connect to Sybase #19

shashikumaarb opened this issue Mar 20, 2017 · 3 comments

Comments

@shashikumaarb
Copy link

how do I extend this component to connect to Sybase?
basically Sybase database is hosted on a server and particular port with char set. I try to have a custom DBPRovider and DBConnection I get an exception Keyword not supported: 'port' or Keyword not supported: 'charset'

a typical connection string that we use looks like this.

<add name="SybaseProdSpecificDB" connectionstring="Data Source='devlopment.corp.com';port:8000"UID='user1';Database='proda';Charset='iso_1';pooling=True;Min Pool Size=10;Application Name='Extensionservice1' ProviderName="DBProvider"/>

@robdmoore
Copy link
Member

robdmoore commented Mar 20, 2017 via email

@shashikumaarb
Copy link
Author

Thanks Rob for your quick reply, appreciate it,
so I use Dapper as ORM tool to connect Sybase and connections get dropped sometimes, other teams use the same Sybase driver but different ORM's and don't see this problem. so I though if there could be some way to just retry connection that would help a bit. I came across this and though this might be a good fit.

please let me know, I might be completely wrong about using this library.

@shashikumaarb
Copy link
Author

Hi Rob,
I eventually created a component by self using Enterprise library application block. the problem is in Sybase driver, the component does not recognize dropped connections, so I had to execute a simple Select 1 every time service calls the conn.open method if it fails app block would catch it and creates a brand new connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants