473,772 Members | 2,564 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=password123 4

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.Data base.Tables.Ite m(1).SetLogOnIn fo _
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 4650
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.goo glegroups.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=password123 4

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.Data base.Tables.Ite m(1).SetLogOnIn fo _
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.Data base.Tables.Ite m(1).SetLogOnIn fo _
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.goo glegroups.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.Data base.Tables.Ite m(1).SetLogOnIn fo _
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
2855
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 authentication using a login ID and password entered by the user." and then gave my SQL Server login ID and password. After following the regular instruction after that I successfully created the DSN and even tested that using the "Test Data Source"...
1
2155
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 allow me to add new records to the table anymore. I have to delete the tables and re-link them to get it working again. Does anyone know why this happens and how to stop it??? The ability to add records also gets lost when i change the...
2
6303
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 on 5 tables in one database. I have created an ODBC file DSN using that login/password. I create an Access DB, attempt to link to the five SQL tables using that DSN, using a trusted connection. The ODBC drivers ignore the users permissions, and...
4
11606
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 *** Don't just participate in USENET...get rewarded for it!
3
3492
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 create a "filename.DSN" file. I know how to create a system DSN, but my N/W admin has asked me to create a DSN file to send him. which would be a file name with ".DSN" extension, so that he can place it on the server.
9
1408
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
1291
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 straight without lanuching ODBCAD32.exe? I am trying to write code to create DSN, if it is not present. I was wondering, if DSN required isn't present, I could use the built-in configure DSN box to take information from user. In that way, user will
0
12067
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 '/CinemaBookingSystem' Application. -------------------------------------------------------------------------------- ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN for process
7
5486
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 add the currentschema parameter. I am using visual fox pro 9. My code follows: lc_driver = "IBM DB2 ODBC DRIVER" + CHR(0) lc_dsn = "DESCRIPTION=Connection Description" + CHR(0)+ ;
0
3646
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 problem is that VB application crashes without reporting any error. DSN is not getting created. But I am able to create DSN through Control Panel. Here is the code snippet to create DSN
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9914
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8937
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.