Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why doesn't this work in code??
Message
De
13/11/2007 22:24:38
 
 
À
13/11/2007 18:26:15
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
01268744
Message ID:
01268839
Vues:
15
Bob,

I tried it and it worked as expected (several rows exist). The only thing that I can think of that might be causing your problem is that perhaps you are inadvertanly connecting to a different database in code than the one you tested with in Sql Server Management Studio (it happened to me <g>).

~~Bonnie



>Well, not exactly. Username = "FRED" so both conditions have not been met, and when tracing the code, it goes back to the top of the While loop and then exits...so only one row is being returned.
>
>Any ideas?
>
>bob
>
>
>>>But when I try to run the following code I only get one row (the first above). Any ideas?
>>
>>Becuase you return from within the while loop if Role matches (and the first row matches).
>>
>>Einar
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform