Sample application MSSQL connection

General discussion forum about all databases other than SqlBase.
kjellv
Norway
Posts: 84
Joined: 05 Sep 2018, 07:12
Location: sandefjord/Norway

Sample application MSSQL connection

Post by kjellv » 13 May 2016, 15:03

hi

Any that can zip me an example application where you have connected to MSSQL using 'SQLOLEDB (local database preferably)

My sConnectionString looks like this
'SQLOLEDB;Data Source=ASUS;Initial Catalog=HOLLYWD;User ID=sa;Password=p7pusWEr;Persist Security Info=True;'

which stop at Call SqlCreateSession( hSqlLocal, sConnectionString ) which I have on the pbConnect in the login screen.

I need to see where I'm doing wrong.

Thanks for all/any help......

Mike Vandine

Re: Sample application MSSQL connection

Post by Mike Vandine » 16 May 2016, 00:46

Ummmm. What is the error that you're getting? That could give a big clue as to what might be going wrong.

Have you downloaded the Samples? There are sample applications of oledb connectivity.

Go to:

http://www.guptatechnologies.com/Servic ... loads.aspx

Expand the TD section and look for the Samples download there.

FRBhote
India
Posts: 2201
Joined: 09 Mar 2017, 05:32
Location: Hyderabad, India

Re: Sample application MSSQL connection

Post by FRBhote » 16 May 2016, 05:47

Save the string in a file named something.udl and test it?

kjellv
Norway
Posts: 84
Joined: 05 Sep 2018, 07:12
Location: sandefjord/Norway

Re: Sample application MSSQL connection

Post by kjellv » 19 May 2016, 07:45

FRBhote wrote:Save the string in a file named something.udl and test it?

the udl works fine.

The only error I get i in the standard error box when I run my app:
/sa
rest is BLANK

att. you will see the udl, the error when I run the Sample app. and the connection string I am using with the rest on pbConnect

To me it look like this is the same error, they complain about the USER, "sa", but the Udl does not complain- could it be a setting in the Database????????


Thanks
You do not have the required permissions to view the files attached to this post.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests