TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ashutosh kumar gupta
NA
190
0
Sybase and .Net Connectivity using Sql Anywhere
Jun 13 2017 7:38 AM
Hi,
I am struggling with connecting the .Net application with the Sybase. Below is my code.
I am using the iAnywhere.Data.AsaClient.dll to connect with. It is 9.0 version. It is showing the error message [No database file specified].
Please help.
private static iAnywhere.Data.AsaClient.AsaConnection SQLAnyWhereConnect(out String strErrorMsg)
{
strErrorMsg = string.Empty;
iAnywhere.Data.AsaClient.AsaConnection objConnection = null;
try
{
objConnection = new iAnywhere.Data.AsaClient.AsaConnection();
objConnection.ConnectionString = "DatabaseName = DatabaseName, UserID = dba, Password = dba, ServerName = DatabaseServerName, Host = xxx.xxx.xxx.xxx:xxx";
objConnection.Open();
}
catch (Exception exp)
{
Console.ReadLine();
strErrorMsg = exp.ToString();
Console.WriteLine(exp);
Console.ReadLine();
}
return objConnection;
}
Reply
Answers (
1
)
find the primary and foreign key existence
How to print the page on button click event in Mvc5