Go Back   EQ2Flames Forum > Everything Else > Tech Support

Reply
 
LinkBack Thread Tools
Old 05-16-2008, 01:25 PM  
Didn't he quit?..again?
 
Lamil's Avatar
 
Character: Phukerbut
Server: kel'thuzad

Posts: 2,091
Photos: (48)

Send a message via AIM to Lamil
Default SQL halp plxplx

something here is messed up.

It's not pulling any data so im getting table0 not found ect.

I think its something with the format of the sql but i can't see it =\




Quote:
/// <summary>
/// StreetRangeSearch
/// </summary>
private void StreetRangeSearch()
{

this.SearchSQLString = @" SELECT
[StreetName],
[SRange],
[ERange],
[City],
[State],
[Zip],
[County],
[WardE],
[WardO],
[RowRank] from (
SELECT distinct
[tblStreetRanges].[StreetName],
[tblStreetRanges].[SRange],
[tblStreetRanges].[ERange],
[tblStreetRanges].[City],
[tblStreetRanges].[State],
[tblStreetRanges].[Zip],
[tblStreetRanges].[County],
[tblStreetRanges].[WardE],
[tblStreetRanges].[WardO]
";


this.WhereString = " WHERE tblStreetRanges.DepartmentId = '" + CurrentMemberStore.DepartmentId + "' ";

this.FromString = @" FROM tblStreetRanges with (NoLock) ";



//Add in any columns that need to be changed to public access.
//this.PublicWebPath = new string[] { "DocumentThumbnailLink" };

DataSet dsSQLSearchColumns = new DataSet();

DataTable dtSQLSearchColumns = BuildSearchColumnsTable();
__________________

Lamil is online now   Reply With Quote
Old 05-16-2008, 01:45 PM  
-------------------
 
Johnathon's Avatar
 
Character: Devastatin
Guild: Revelations
Server: Unrest

Posts: 1,795
Photos: (69)

Default Re: SQL halp plxplx

Quote:
Originally Posted by Lamil View Post
something here is messed up.

It's not pulling any data so im getting table0 not found ect.

I think its something with the format of the sql but i can't see it =\
PHP Code:
/// <summary>
/// StreetRangeSearch
/// </summary>
private void StreetRangeSearch()
{

this.SearchSQLString = @" SELECT
[StreetName],
[SRange],
[ERange],
[City],
[State],
[Zip],
[County],
[WardE],
[WardO],
[RowRank] from ( <------- HERE IS THE START ONE
SELECT distinct
[tblStreetRanges].[StreetName],
[tblStreetRanges].[SRange],
[tblStreetRanges].[ERange],
[tblStreetRanges].[City],
[tblStreetRanges].[State],
[tblStreetRanges].[Zip],
[tblStreetRanges].[County],
[tblStreetRanges].[WardE],
[tblStreetRanges].[WardO]
"
;


this.WhereString " WHERE tblStreetRanges.DepartmentId = '" CurrentMemberStore.DepartmentId "' ";

this.FromString = @" FROM tblStreetRanges with (NoLock) ";



//Add in any columns that need to be changed to public access.
//this.PublicWebPath = new string[] { "DocumentThumbnailLink" };

DataSet dsSQLSearchColumns = new DataSet();

DataTable dtSQLSearchColumns BuildSearchColumnsTable(); 
Your missing the ending )

Also, its seems that you screwed up a couple places, or i don't know what the hell your trying to do.
__________________
Sign up and get a free ITOUCH


Last edited by Johnathon; 05-16-2008 at 01:47 PM.
Johnathon is online now   Reply With Quote
Old 05-16-2008, 01:47 PM  
Niber FTL
 
Character: Stryph
Guild: Imperium
Server: Permafrost

Posts: 339
Photos: (0)

Default Re: SQL halp plxplx

Check the DataSet. Doesn't it tell you when you get the error on what line the error is occuring?

i.e. System.Data.DataTableCollection.get_Item(Int32 index) +107
stryph is offline   Reply With Quote
Old 05-16-2008, 03:33 PM  
Didn't he quit?..again?
 
Lamil's Avatar
 
Character: Phukerbut
Server: kel'thuzad

Posts: 2,091
Photos: (48)

Send a message via AIM to Lamil
Default Re: SQL halp plxplx

i figured it out. it wanted a date. and i didnt have one. and i forgot to say somewhere else that im not sorting by a date

changed a " " to a "-1" and its all betterrs

__________________


Last edited by Lamil; 05-16-2008 at 03:34 PM.
Lamil is online now   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Sponsor Ads


All times are GMT -4. The time now is 12:22 AM.


Design By: Miner Skinz.com Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0