myLittleTools Community Forum

Welcome Guest Search | Active Topics | Members | Log In | Register

Cannot select a column with datatype uniqueidentifier Options · View
jpurfeer
Posted: Thursday, April 02, 2009 8:41:47 PM
Rank: Newbie
Groups: Member

Joined: 4/2/2009
Posts: 1
Points: 3
I have a table with the following definition.

CREATE TABLE [dbo].[table1](
[ID] [uniqueidentifier] NOT NULL CONSTRAINT [DF_con1_ID] DEFAULT (newid()),
[col1] [varchar](255) NOT NULL,
[col2] [int] NOT NULL,
[col3] [varchar](255) NOT NULL,
CONSTRAINT [PK_table1] PRIMARY KEY CLUSTERED
(
[ID] ASC
)

When querying the table in the new query window with the follinging query the ID column is not displayed. All other columns are displayed.

select * from table1


When I specifiy the specific column I receive an error.

select id from table1

Offending URL: http://xxxxxxxxx/swa2005/tools/query.aspx

Source: System.Web

Message: DataGrid with id '' could not automatically generate any columns from the selected data source.

Stack trace: at System.Web.UI.WebControls.DataGrid.CreateAutoGeneratedColumns(PagedDataSource dataSource)
at System.Web.UI.WebControls.DataGrid.CreateColumnSet(PagedDataSource dataSource, Boolean useDataSource)
at System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource)
at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)
at System.Web.UI.WebControls.BaseDataList.DataBind()
at mla_gui.NewQuery.btnSubmit_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Target site: System.Collections.ArrayList CreateAutoGeneratedColumns(System.Web.UI.WebControls.PagedDataSource)



Am I correct in coming to the conclusion that MyLittleAdmin query tool cannot select data from a column with a uniqueidentifier datatype?
Or do I have something configured incorrectly.

Thanks.
elian
Posted: Friday, April 03, 2009 6:21:42 AM

Rank: Administration
Groups: Administration

Joined: 9/11/2006
Posts: 605
Points: 649
Location: Enghien Les Bains, France
This has been fixed in version v3.5 r0058

Sincerely
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Theme created by myLittleTools
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.