472,952 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

VB.NET/Crystal - How do I change a report's connection "integrated security" to FALSE?

I am writing a Windows forms VB.Net/MS SQL application via VS 2003 that
utilizes Crystal Reports. I want to be able to dynamically set the
report data source at run time.

I'm trying to change the the reports "integrated security" from TRUE to
FALSE via the "Set Location" dialog in the report designer with no
success. It is not intuitive (at least not to me.)

I get the following error:

"Error in file....Invalid table number."

The error is being generated at this line of my code:

'DatabaseName is changing at runtime, specify the table location.
CrTable.Location = "UpsizeUATSQLBackup.dbo." &
CrTable.Location.Substring(CrTable.Location.LastIn dexOf(".") + 1)

If I change "UpsizeUATSQLBackup.dbo." to the original db location i.e.
"UpsizeUATSQL.dbo" it works fine.

I've seen other posts on the web that state that the "integrated
security" for the report connection has to be FALSE, otherwise the
connection is hard coded into the report.

Article c2011430 on CR support site seems to indicate that you can
change it in Crystal 9, where previously you could not, due to a bug.

My question is how do I change the report's connection "integrated
security" to FALSE?

Tks for any guidance/help you can provide.

....Henry
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
7 11148
Henry <an*******@devdex.com> wrote in news:eXRfCpbdEHA.2384
@TK2MSFTNGP09.phx.gbl:
I am writing a Windows forms VB.Net/MS SQL application via VS 2003 that
utilizes Crystal Reports. I want to be able to dynamically set the
report data source at run time.


Why don't you pass a dataset instead?

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #2
Hi Henry,

Sorry; I was out all evening and just saw your post.

I am changing mine in crystal 10.0, however it should also work in cr 9.

Go to set location; then select 'new connection'; connect via ole db; when
it asks for a pwd and login, enter the appropriate sql server login; check
or uncheck for integrated security, etc. Once finished, you should check
properties and it should show the connection as integrated security false.

HTH,

Bernie Yaeger

"Henry" <an*******@devdex.com> wrote in message
news:eX**************@TK2MSFTNGP09.phx.gbl...
I am writing a Windows forms VB.Net/MS SQL application via VS 2003 that
utilizes Crystal Reports. I want to be able to dynamically set the
report data source at run time.

I'm trying to change the the reports "integrated security" from TRUE to
FALSE via the "Set Location" dialog in the report designer with no
success. It is not intuitive (at least not to me.)

I get the following error:

"Error in file....Invalid table number."

The error is being generated at this line of my code:

'DatabaseName is changing at runtime, specify the table location.
CrTable.Location = "UpsizeUATSQLBackup.dbo." &
CrTable.Location.Substring(CrTable.Location.LastIn dexOf(".") + 1)

If I change "UpsizeUATSQLBackup.dbo." to the original db location i.e.
"UpsizeUATSQL.dbo" it works fine.

I've seen other posts on the web that state that the "integrated
security" for the report connection has to be FALSE, otherwise the
connection is hard coded into the report.

Article c2011430 on CR support site seems to indicate that you can
change it in Crystal 9, where previously you could not, due to a bug.

My question is how do I change the report's connection "integrated
security" to FALSE?

Tks for any guidance/help you can provide.

...Henry
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #3
I was able to change "integrated security" to FALSE by pausing mySQL Server & then, in the report designer, I right click on theFieldExplorer/DatabaseFields and select 'Verify Database' fromthe menu. Since it can't find the database, it prompts for theconnection info. Start-up SQL server again & then fill out theconnection info (with integrated security unchecked). Then saveyour report.

:>kris
I am writing a Windows forms VB.Net/MS SQL application via VS2003 that
utilizes Crystal Reports. I want to be able to dynamically setthe
report data source at run time.

I'm trying to change the the reports "integrated security" fromTRUE to
FALSE via the "Set Location" dialog in the report designer withno
success. It is not intuitive (at least not to me.)

I get the following error:

"Error in file....Invalid table number."

The error is being generated at this line of my code:

'DatabaseName is changing at runtime, specify the tablelocation.
CrTable.Location = "UpsizeUATSQLBackup.dbo." &
CrTable.Location.Substring(CrTable.Location.LastIn dexOf(".") +1)

If I change "UpsizeUATSQLBackup.dbo." to the original dblocation i.e.
"UpsizeUATSQL.dbo" it works fine.

I've seen other posts on the web that state that the"integrated
security" for the report connection has to be FALSE, otherwisethe
connection is hard coded into the report.

Article c2011430 on CR support site seems to indicate that youcan
change it in Crystal 9, where previously you could not, due toa bug.

My question is how do I change the report's connection"integrated
security" to FALSE?

Tks for any guidance/help you can provide.

....Henry
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

User submitted from AEWNET (http://www.aewnet.com/)
Nov 21 '05 #4
Hi,

ON Crystal 10 (perhaps 9 as well):
1. go to 'set database location'
2. in the top, open the name of the server and properties until you see the
tables
3. on the bottom, click 'history'
4. select the server name in the bottom
5. you will now see a connection info request
6. fill out the request and enter user id and pwd; uncheck 'use integrated
security'
7. click next
8. click finish
9. now select the table to replace the table above - same name
10. click the 'update' button

You're done. I had to do this to over 150 reports some time ago. It's a
bit buggy, so after you save, reopen the report to verify that the change
'took'.

HTH,

Bernie Yaeger
"Guest" <Guest@aew_nospam.com> wrote in message
news:Op**************@TK2MSFTNGP14.phx.gbl...
I was able to change "integrated security" to FALSE by pausing my SQL Server
& then, in the report designer, I right click on the
FieldExplorer/DatabaseFields and select 'Verify Database' from the menu.
Since it can't find the database, it prompts for the connection info.
Start-up SQL server again & then fill out the connection info (with
integrated security unchecked). Then save your report.

:>kris
I am writing a Windows forms VB.Net/MS SQL application via VS 2003 that
utilizes Crystal Reports. I want to be able to dynamically set the
report data source at run time.

I'm trying to change the the reports "integrated security" from TRUE to
FALSE via the "Set Location" dialog in the report designer with no
success. It is not intuitive (at least not to me.)

I get the following error:

"Error in file....Invalid table number."

The error is being generated at this line of my code:

'DatabaseName is changing at runtime, specify the table location.
CrTable.Location = "UpsizeUATSQLBackup.dbo." &
CrTable.Location.Substring(CrTable.Location.LastIn dexOf(".") + 1)

If I change "UpsizeUATSQLBackup.dbo." to the original db location i.e.
"UpsizeUATSQL.dbo" it works fine.

I've seen other posts on the web that state that the "integrated
security" for the report connection has to be FALSE, otherwise the
connection is hard coded into the report.

Article c2011430 on CR support site seems to indicate that you can
change it in Crystal 9, where previously you could not, due to a bug.

My question is how do I change the report's connection "integrated
security" to FALSE?

Tks for any guidance/help you can provide.

....Henry
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

User submitted from AEWNET (http://www.aewnet.com/)
Nov 21 '05 #5
Bernie,

At least I succeeded in finding a solution for a progressbar with the fill
of the datatable.

Interested or did you found it yourself already

I used an access database to get it slow, however it is terrible slow.

Cor
Nov 21 '05 #6
Hi Cor,

Thanks, but yes, I already got it working - thanks, as always.

Bernie

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eB**************@TK2MSFTNGP15.phx.gbl...
Bernie,

At least I succeeded in finding a solution for a progressbar with the fill
of the datatable.

Interested or did you found it yourself already

I used an access database to get it slow, however it is terrible slow.

Cor

Nov 21 '05 #7
Did you post how you did it and if so what was the thread name?

If not, will you please? :)

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:be*****@cherwellinc.com:
Hi Cor,

Thanks, but yes, I already got it working - thanks, as always.

Bernie

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eB**************@TK2MSFTNGP15.phx.gbl...
Bernie,

At least I succeeded in finding a solution for a progressbar with the
fill
of the datatable.

Interested or did you found it yourself already

I used an access database to get it slow, however it is terrible slow.

Cor


Nov 21 '05 #8

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

Similar topics

1
by: McKirahan | last post by:
What is "active content"? My ASP page just returns HTML.... I have a page with an .htm extension that has a form whose action is an ASP page which generates a report after updating a database...
5
by: RWC | last post by:
Hello, I have a database that I need to connect with that resides on my personal intranet server. I'm on a different subnet than this server (running through two different gateways). When I...
1
by: Tom | last post by:
Hi, I am currently on a project where one site needs to send the user credentials to another site, through web services. Scenario: * "User 1" will authenticate to "Site A" using NTLM ("Site...
4
by: Dean Slindee | last post by:
I would like to provide a menu item that the users can click that launches the same "Windows Security" window that doing a Ctrl+Alt+Delete launches, but thru a Process.Start. Is this possible, and...
1
by: Tom Purdom | last post by:
Hi All, I am developing a Outlook interop plugin which performs task time allocation. However when i attempt to fire my custom event to notify that an allocation has been generated the security...
14
by: BillCo | last post by:
Hi folks, I have an a2k ap which is called from a batch file via task scheduler on at night - it runs a bunch of updates, imports stuff from other databases and generally preps the main backend...
2
by: jvvhie | last post by:
Hello, I am writing a pure-Python game engine that interprets the code of game objects within the same process with the exec statement. My main goal is to make as much power available as possible...
19
by: hansBKK | last post by:
Upfront disclaimer - I am a relative newbie, just starting out learning about PHP, mostly by researching, installing and playing with different scripts. I am looking for a host that will provide...
2
by: Mike McGuire | last post by:
I currently have a .NET 2.0 Application that uses "Security.SecureString" to securly pass a password to the process that I am starting within the app. I want to create something similar for a few of...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.