Solved

two connection strings for sqldatasource

Posted on 2010-09-21
1
227 Views
Last Modified: 2012-05-10
Hello:

Is it possible to have two connection strings for sqldatasource?

I have a Select statement that Inner Joins two databases. When I run the page I get an invalid column error, however; when I run the statement in sql management studio it runs fine. So I am thinking that the error is caused by not connecting to the second database.

Dan
0
Comment
Question by:RecipeDan
1 Comment
 
LVL 65

Accepted Solution

by:
rockiroads earned 500 total points
ID: 33728952
Didn't think it was possible. If you don't find any joy see if you can use this workaround.

are you able to create a stored procedure which runs this query joining two databases?
if so then could you not set one up and use that? Of course they can be parameterised as well


Stored Procedues http://support.microsoft.com/kb/306574
More info http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/data/sqldatasource.aspx

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now