Re: .net VS 05 HELL!

Tech-Archive recommends: Fix windows errors by optimizing your registry



yeah, i did that as well, and when i try and call the SP it does the same
thing, It executes in query builder but one the form it will not load the
Grid. This is driving me insane


"TJ Nelson" <TJNelson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:10E6A206-D054-4323-8C5D-A03380B56DB6@xxxxxxxxxxxxxxxx
>I don't have an answer on why it would be working in one place and not the
> other, but have you tried putting your SQL into a stored procedure and
> then
> trying to use that? Just something to use for troubleshooting.
>
>
>
> "NuB" wrote:
>
>> OK, here is the story, i have text boxes to allow the user enter
>> information
>> for a search. I have my SQL that has LIKE in the where clause, in the
>> query
>> builder the SQL works correctly, if nothing is entered all the data is
>> returned, if i enter in search criteria that data is returned. NOW, when
>> i
>> try to do the same exact thing on my web form, it does not work. the grid
>> will only populate with data if I enter something in for search critia.
>> AND
>> the grid will not work if I have more then 1 parameter in my where
>> clause:
>> here is my SQL that works in the querybuilder
>>
>> SELECT id, Officename, FirstName + ' ' + LastName AS FullName,
>> Region,
>> FROM dbo.SalesTeam
>> WHERE (@FirstName IS NULL OR
>> FirstName LIKE '%' + @FirstName ) AND (@LastName IS
>> NULL OR
>> LastName LIKE '%' + @LastName ) AND (@Region IS
>> NULL
>> OR Region LIKE '%' + @Region ) )
>>
>> why will this work in query builder but not on the web form?
>>
>>
>>


.



Relevant Pages

  • .net VS 05 HELL!
    ... I have my SQL that has LIKE in the where clause, ... try to do the same exact thing on my web form, ... the grid will not work if I have more then 1 parameter in my where clause: ... why will this work in query builder but not on the web form? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Get data item from datagrid on web form
    ... > I have a web form that builds a datagrid from SQL, ... > the grid itself, but not the actual select row. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Visual Studio Sucks
    ... a complete load of garbage the Query Builder IDE is. ... menu in the same stored procedure design window? ... When working with SQL Server - why the heck did they remove the columns ... I have found this to be true of SQL Server Management Studio also, ...
    (microsoft.public.vsnet.ide)
  • Re: Visual Studio Sucks
    ... This is especially true in VS.NET's "Webforms" designers... ... It sounds to me like you are just extremely used to the way VI works and just perhaps if you acknowledged that this is the basis for most of your gripes, you could embrace what VS does infinately better than VI. ... What a complete load of garbage the Query Builder IDE is. ... I have found this to be true of SQL Server Management Studio also, a huge backwards step in terms of usability for anyone who uses the product on a daily basis. ...
    (microsoft.public.vsnet.ide)
  • Re: Visual Studio Sucks
    ... In order to use outlining, you have to select the entire block you want ... a complete load of garbage the Query Builder IDE is. ... When working with SQL Server - why the heck did they remove the columns ... I have found this to be true of SQL Server Management Studio also, ...
    (microsoft.public.vsnet.ide)