473,394 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

DSN-Less To Crystal Reports

Hi,

I have an MS-Access 2000 application that is connected to a MS-SQL
Server 2000 backend by linking tables through a DSN-Less connection.
No problems at all with that part.

This application executes various Crystal Reports that have their own
built in SQL. These reports have no need for the MS-Access Linked
tables and can function stand-alone against MS-SQL.

According to Crystal Reports you can connect a report to MS-SQL with a
DSN-Less connection by setting the internal report parameters as so:

5. Type in the connection information.

Example:

Driver=SQL Server;
Server=SQL Server Production Server;
Database=Xtreme;
UID=SalesRep;
PWD=password1234

Yes that does work from within Crystal Reports but I want my MS-Access
(VBA code) to tell the report how to connect so I use the following
code:

[Form_Report Form].crxReport.Database.Tables.Item(1).SetLogOnInfo _
strServerName, _
strDatabase, _
strUserID, _
strPassword
From everything I can read, I don't have a parameter for "Driver" like

they show in their "manual setup" instructions. Unfortunately since
I'm not specifying the Driver in the above setup code I get an error

"datasource name not found and no default driver specified"

How do I tell Crystal Reports how to connect to this database using a
DSN-Less connection from VBA code?

Thanks

Nov 13 '05 #1
4 4608
While you may be trying to control it from Access, it's still CR going
against SQL Server, so I'd expect that the driver would still be "SQL
Server".

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"ZRexRider" <je****@ptd.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi,

I have an MS-Access 2000 application that is connected to a MS-SQL
Server 2000 backend by linking tables through a DSN-Less connection.
No problems at all with that part.

This application executes various Crystal Reports that have their own
built in SQL. These reports have no need for the MS-Access Linked
tables and can function stand-alone against MS-SQL.

According to Crystal Reports you can connect a report to MS-SQL with a
DSN-Less connection by setting the internal report parameters as so:

5. Type in the connection information.

Example:

Driver=SQL Server;
Server=SQL Server Production Server;
Database=Xtreme;
UID=SalesRep;
PWD=password1234

Yes that does work from within Crystal Reports but I want my MS-Access
(VBA code) to tell the report how to connect so I use the following
code:

[Form_Report Form].crxReport.Database.Tables.Item(1).SetLogOnInfo _
strServerName, _
strDatabase, _
strUserID, _
strPassword
From everything I can read, I don't have a parameter for "Driver" like

they show in their "manual setup" instructions. Unfortunately since
I'm not specifying the Driver in the above setup code I get an error

"datasource name not found and no default driver specified"

How do I tell Crystal Reports how to connect to this database using a
DSN-Less connection from VBA code?

Thanks

Nov 13 '05 #2
Hi Doug,

Yes I understand which product is doing the work with SQL. My problem
is, Crystal Reports provides the following interface for programmatic
control and this interface does not have a parameter for driver:

[Form_Report Form].crxReport.Database.Tables.Item(1).SetLogOnInfo _
strServerName, _
strDatabase, _
strUserID, _
strPassword

I will want to use the same report on a number of databases so
embedding the connection string inside the report has no value.

Is there another way to tell crystal how to connect?

Nov 13 '05 #3
Sorry, I think you'll need to find a newsgroup related to Crystal, or else
check their web site.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"ZRexRider" <je****@ptd.net> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi Doug,

Yes I understand which product is doing the work with SQL. My problem
is, Crystal Reports provides the following interface for programmatic
control and this interface does not have a parameter for driver:

[Form_Report Form].crxReport.Database.Tables.Item(1).SetLogOnInfo _
strServerName, _
strDatabase, _
strUserID, _
strPassword

I will want to use the same report on a number of databases so
embedding the connection string inside the report has no value.

Is there another way to tell crystal how to connect?

Nov 13 '05 #4
Yeah - I tried the crystal group and their web site. Anyway - I
appreciate the time you took replying to my post. I'll puzzle it out
and post it - in the Crystal group ;-)

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Leader | last post by:
HI All, I created a SQL Server DSN using Windows ODBC Data Source Administrator. While creating the DSN, it asked me about authentication process in reply to which I selected "With SQL Server...
1
by: Dan | last post by:
Hi I have recently converted an Access 97 database to 2003. Most of the change went fine with no problems but every now and then my DSN connections to my back-end SQL-database fail and it does not...
2
by: Tina Robichaux | last post by:
I have found info on this problem at MS, but they say this problem does not occur with SQL 2K and MDAC 2.6 SP2, yet I am still experiencing it: I have a SQL user specifically created to SELECT...
4
by: Steve Sweales | last post by:
I'm trying to find some code on how to create a DSN using C# and SQLConfigDataSource. Can anybody help me please, before I tear my hair out!! *** Sent via Devdex http://www.devdex.com ***...
3
by: Niks | last post by:
Hi, I need to connect to SQL server Database using a System DSN. Can anyone tell me how to connect to SQL Server using DSN in ASP.NET (VB.Net). Using a Try Catch block. Does anyone know how to...
9
by: Mike | last post by:
In my code i'm pointing to a SQL server name and SQL database name on the server, etc. Instead of that how can i point to a DSN connection on the web server that points to the SQL Server and DB?
0
by: Neo | last post by:
Hello All, ODBCAD32.exe launches DSN Setup. But then I have to select DSN and click configure to configure DSN. Is there any way, I could invoke configuration dialog box for particular DSN...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
7
by: Alan.Squires | last post by:
Hi, I need to create a DB2 system DSN programmatically. I need to set the currentschema parameter to be equal to the appropriate database name. I am able to create the DSN ok, but am unable to...
0
by: senthildb2 | last post by:
Hi there, I want to create DSN for DB2 database through my VB application. I have installed DB2 v8.2 with FixPack6.0 ESE. (The actual version shown in Control Center is DB2 V8.1.13.193) The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.