Crystal Reports Question

I'm using the activeX Crystal reports component to access a sql server (6.5).

This code was already in the project:


MDIForm1.CrystalReport1.LogOffServer 1, True
MDIForm1.CrystalReport1.LogonInfo(0) = "DSN=" & MDIForm1.Server & _
'         ";uid=;pwd=;database=" & MDIForm1.Database
 
  MDIForm1.CrystalReport1.WindowState = crptMaximized
  MDIForm1.CrystalReport1.Action = 1


where mdiform1.server = "serverName"
and mdiform1.database = "databasename"

We are now changing to sql server 7 and this no longer works.
Where can I find info on how this connection string should read?
I tried setting it up like the database connection:


.ConnectionString = "DRIVER={SQL Server};DATABASE=" & mconstDatabase & _
                          ";SERVER=" & mconstServer



Any suggestions?
rutledgjAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

eab111098Commented:
it may not be the code but rather the crystal report itself. i have no experience with CR and SQl x.x, however, i do have experience with CR and access and i know that when the db changes in anyway, that cr will not print it and you get some component error that is of little use and points you in no particular direction. to fix this, go to the CR report and reverify your database. you can find it under the database menu item in the designer window.

if this doesn't do the trick, i know that seagate has a bulletin board set up on their web site for q&a. sorry don't know the address off hand. just go to the seagate web site. there's a link to from there.


hope this helps.
ed.
0
rutledgjAuthor Commented:
I've already verified database, its ok. Couldn't find anything on seagates knowledge base either
0
svenkatapuramCommented:
Try this

CurrentConnection = "Provider=MSDASQL;DRIVER=SQL Server; SERVER=" & Server & "; DATABASE=" & dbname & "; UID=" & Userid_db & ";PWD=" & PassWD & ""


Report1.connect = CurrentConnection
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.