473,386 Members | 1,785 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,386 software developers and data experts.

stored procedures run against aspnet_* tables return no data rows

I used the ASP.NET SQL Server Setup Wizard (aspnet_regsql.exe) to configure
my application's SQL Server database for ASP.NET services such as membership
and role management. Everything works fine when using the Web Site
Administration Tool and the login controls, or when using SQL Server
Management Studio to open the tables. However, my own stored procedures
against the aspnet_* tables do not return any rows.

For example:

ALTER PROCEDURE [dbo].[GetUsers]
AS
SELECT * From aspnet_Users

Returns only column headings and no data, even though the table contains 2
rows of data. What could be causing this?

Thanks,

Keith

Jul 3 '06 #1
2 1311
Did you create a provider entry in web.config for your database?
Sounds like the app is using the default database in App_Data and maybe
you're accessing a custom database?

Keith wrote:
I used the ASP.NET SQL Server Setup Wizard (aspnet_regsql.exe) to configure
my application's SQL Server database for ASP.NET services such as membership
and role management. Everything works fine when using the Web Site
Administration Tool and the login controls, or when using SQL Server
Management Studio to open the tables. However, my own stored procedures
against the aspnet_* tables do not return any rows.

For example:

ALTER PROCEDURE [dbo].[GetUsers]
AS
SELECT * From aspnet_Users

Returns only column headings and no data, even though the table contains 2
rows of data. What could be causing this?

Thanks,

Keith
Jul 4 '06 #2
Is there an apostrophe or some other unescaped character in the data?

"Keith" <kb******@dslextreme.comwrote in message
news:12*************@corp.supernews.com...
>I used the ASP.NET SQL Server Setup Wizard (aspnet_regsql.exe) to configure
my application's SQL Server database for ASP.NET services such as
membership and role management. Everything works fine when using the Web
Site Administration Tool and the login controls, or when using SQL Server
Management Studio to open the tables. However, my own stored procedures
against the aspnet_* tables do not return any rows.

For example:

ALTER PROCEDURE [dbo].[GetUsers]
AS
SELECT * From aspnet_Users

Returns only column headings and no data, even though the table contains 2
rows of data. What could be causing this?

Thanks,

Keith



Jul 4 '06 #3

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

Similar topics

2
by: xAvailx | last post by:
I have a requirement that requires detection of rows deleted/updated by other processes. My business objects call stored procedures to create, read, update, delete data in a SQL Server 2000 data...
2
by: Keith Watson | last post by:
Hi, we are currently implementing an application running on DB2 V7 on Z/OS using largely COBOL stored procedures, managed using WLM. Some of these stored procedures declared global temporary...
8
by: Thomasb | last post by:
With a background in MS SQL Server programming I'm used to temporary tables. Have just started to work with DB2 ver 7 on z/OS and stumbled into the concept of GLOBAL TEMPORARY TABLE. I have...
1
by: rdshultz | last post by:
Good morning everyone. Could someone tell me if there is a book out there which gives examples of both VB.net code and creating SQL Server 2000 stored procedures and how you get them to work...
2
by: Dino L. | last post by:
How can I run stored procedure (MSSQL) ?
0
by: Amber | last post by:
Stored procedures are faster and more efficient than in-line SQL statements. In this article we will look at two SQL Server stored procedures; one using an input parameter and one not, and see how...
45
by: John | last post by:
Hi When developing vb.bet winform apps bound to sql server datasource, is it preferable to use SELECTs or stored procedure to read and write data from/to SQL Server? Why? Thanks Regards
4
by: nishi57 | last post by:
I hope I can get some help regarding this issue, which has been going on for a while. I have a desktop user who is having problem running "Stored Procedures". The DB2 Connect application works fine...
5
by: Pedro Vera | last post by:
I am helping somebody setup one of the asp.net starter kits. I converted it from sql express to sql server with no real issues, and I got it running local perfectly. On my first attempt to run...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.