Monday, March 26, 2012
Error installing MSDE (Microsoft SQL Server Desktop Engine)
error message :
"A strong SA password is required for security reasons.
Please use SAPWD switch to suply the same. Setup will now exit"
How do i solve this?Use the SAPWD switch when you invoke setup.exe, and give it a strong
password?
--
http://www.aspfaq.com/
(Reverse address to reply.)
"João Portela" <joao.portela@.netvisao.pt> wrote in message
news:newscache$6xa43i$l7e$1@.newsfront4.netvisao.pt...
> As i try to install MSDE (Microsoft SQL Server Desktop Engine), i get this
> error message :
> "A strong SA password is required for security reasons.
> Please use SAPWD switch to suply the same. Setup will now exit"
> How do i solve this?
>|||The problem is that i don't know what SAPWD switch is, as nor how to use
it.
could you please explain me?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!|||All is explained in the readme file?
Open a command prompt, navigate to the folder with setup.exe from MSDE, and
type
setup.exe INSTANCENAME=WhateverYouWantTheInstanceToBeNamed SECURITYMODE=SQL
SAPWD=WhateverYouWantThePasswordToBe DISABLENETWORKPROTOCOLS=0
--
http://www.aspfaq.com/
(Reverse address to reply.)
"João Portela" <joao.portela@.netvisao.pt> wrote in message
news:OMyzMWGjEHA.712@.TK2MSFTNGP09.phx.gbl...
> The problem is that i don't know what SAPWD switch is, as nor how to use
> it.
> could you please explain me?
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
Error installing MSDE (Microsoft SQL Server Desktop Engine)
error message :
"A strong SA password is required for security reasons.
Please use SAPWD switch to suply the same. Setup will now exit"
How do i solve this?
Use the SAPWD switch when you invoke setup.exe, and give it a strong
password?
http://www.aspfaq.com/
(Reverse address to reply.)
"Joo Portela" <joao.portela@.netvisao.pt> wrote in message
news:newscache$6xa43i$l7e$1@.newsfront4.netvisao.pt ...
> As i try to install MSDE (Microsoft SQL Server Desktop Engine), i get this
> error message :
> "A strong SA password is required for security reasons.
> Please use SAPWD switch to suply the same. Setup will now exit"
> How do i solve this?
>
|||The problem is that i don't know what SAPWD switch is, as nor how to use
it.
could you please explain me?
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||All is explained in the readme file?
Open a command prompt, navigate to the folder with setup.exe from MSDE, and
type
setup.exe INSTANCENAME=WhateverYouWantTheInstanceToBeNamed SECURITYMODE=SQL
SAPWD=WhateverYouWantThePasswordToBe DISABLENETWORKPROTOCOLS=0
http://www.aspfaq.com/
(Reverse address to reply.)
"Joo Portela" <joao.portela@.netvisao.pt> wrote in message
news:OMyzMWGjEHA.712@.TK2MSFTNGP09.phx.gbl...
> The problem is that i don't know what SAPWD switch is, as nor how to use
> it.
> could you please explain me?
>
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!
|||I did that, but i still get the same error message
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
|||Are you trying to install a NEW instance or are you trying to install the
name of instance that already exists?
Have you tried NOT using SQL authentication / SA password at all (you can
always change that after installation), e.g.
setup.exe INSTANCENAME=MakeSureThisIsANewInstanceName
DISABLENETWORKPROTOCOLS=0
If you are trying to upgrade an existing instance e.g. with MSDE 2000A you
will need the upgradesp switch (again, see the readme file).
http://www.aspfaq.com/
(Reverse address to reply.)
"Joo Portela" <joao.portela@.netvisao.pt> wrote in message
news:u#k1qAIjEHA.3612@.TK2MSFTNGP12.phx.gbl...
>
> I did that, but i still get the same error message
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!
Error installing MSDE (Microsoft SQL Server Desktop Engine)
error message :
"A strong SA password is required for security reasons.
Please use SAPWD switch to suply the same. Setup will now exit"
How do i solve this?Use the SAPWD switch when you invoke setup.exe, and give it a strong
password?
http://www.aspfaq.com/
(Reverse address to reply.)
"Joo Portela" <joao.portela@.netvisao.pt> wrote in message
news:newscache$6xa43i$l7e$1@.newsfront4.netvisao.pt...
> As i try to install MSDE (Microsoft SQL Server Desktop Engine), i get this
> error message :
> "A strong SA password is required for security reasons.
> Please use SAPWD switch to suply the same. Setup will now exit"
> How do i solve this?
>|||The problem is that i don't know what SAPWD switch is, as nor how to use
it.
could you please explain me?
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!|||All is explained in the readme file?
Open a command prompt, navigate to the folder with setup.exe from MSDE, and
type
setup.exe INSTANCENAME=WhateverYouWantTheInstanceT
oBeNamed SECURITYMODE=SQL
SAPWD=WhateverYouWantThePasswordToBe DISABLENETWORKPROTOCOLS=0
http://www.aspfaq.com/
(Reverse address to reply.)
"Joo Portela" <joao.portela@.netvisao.pt> wrote in message
news:OMyzMWGjEHA.712@.TK2MSFTNGP09.phx.gbl...
> The problem is that i don't know what SAPWD switch is, as nor how to use
> it.
> could you please explain me?
>
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!|||I did that, but i still get the same error message
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!|||Are you trying to install a NEW instance or are you trying to install the
name of instance that already exists?
Have you tried NOT using SQL authentication / SA password at all (you can
always change that after installation), e.g.
setup.exe INSTANCENAME=MakeSureThisIsANewInstanceN
ame
DISABLENETWORKPROTOCOLS=0
If you are trying to upgrade an existing instance e.g. with MSDE 2000A you
will need the upgradesp switch (again, see the readme file).
http://www.aspfaq.com/
(Reverse address to reply.)
"Joo Portela" <joao.portela@.netvisao.pt> wrote in message
news:u#k1qAIjEHA.3612@.TK2MSFTNGP12.phx.gbl...
>
> I did that, but i still get the same error message
> *** Sent via Developersdex http://www.codecomments.com ***
> Don't just participate in USENET...get rewarded for it!
Thursday, March 22, 2012
Error in TransactionOption in SSIS
Hi,
I was trying to maintain transactions between my tasks, so I set the TransactionOption property as Required to the Parent Container (For Each Loop Container). But I am getting the following error while executing my SSIS package.
"Error: The SSIS Runtime has failed to start the distributed transaction due to error 0x8004D01B "The Transaction Manager is not available.". The DTC transaction failed to start. This could occur because the MSDTC Service is not running."
I checked in my Windows Services and did not find MSDTC. Pls let me know if you have any solution for this.
Thanks in advance.
Regards,
Prakash Srinivasan.
Look for "Distributed Transaction Coordinator" and start it.|||
Hi,
Sorry I found this already and started. But I am facing an other issue like If I set the TransactionOption as "Required" to my Parent Conatiner, I am getting the below mentioned error in the Connection Manager.
[Execute SQL Task] Error: Failed to acquire connection "SQLConnectionMgr1". Connection may not be configured correctly or you may not have the right permissions on this connection.
But if I set the TransactionOption as "Supported" then it is working fine. Pls let me know if you have any idea or solution.
Thanks & Regards,
Prakash Srinivasan.
|||You are not getting the error message when you set the TransactionOption to "Supported" because the container does not start a transaction, but joins any transaction started by its parent container. However, if you set it to "Required", the container starts a transaction, unless one is already started by its parent container.Your problem is related to starting a transaction in your connection, I think. This could be attributed to the DTC properties. You may want to read about DTC in detail and set its properties based on your need.
Sunday, March 11, 2012
Error in Registering Instance using Management Studio
Hi,
When I register instance --StockBroker, there is an error in the second step: installing Windows Service. The error message is:
Required information could not be retrieved from the registry. This usually indicates a problem with setup, configuration, or security. (Microsoft.SqlServer.NotificationServices)
My setup testing was successful, and I used a domain account(admin) with the domain name.
What could be the problem? please help me out.
Double check your service account login credentials.
HTH..
Wednesday, March 7, 2012
Error in formula
I get the "A String is required here" error with my formula and it higlights the line in bold.
If {@.ScheduledTasks} = 0 then
"N/S"
Else If {@.TotalTasks} = 0 then
"N/D"
Else
(sum({@.TimelyCOmplete},{@.Group_CrewUnit})/(sum({@.TimelyCOmplete},{@.Group_CrewUnit}) + sum({@.MissedTasks},{@.Group_CrewUnit}) + sum({@.LateComplete},{@.Group_CrewUnit}))) * 100
Thanks in advanceYour third line will return an integer - all statements must return the same type. Wrap the third line in ToText().
Sunday, February 26, 2012
Error in DataList test query - sqlserver
Error in DataList test query - sqlserver
I found some vs 2005 asp.net walkthroughs.
The first I tried required Northwind.
But sqlserver 2005 came with AdventureWorks, so I used that instead.
I followed the walkthrough instructions, dragging a DataList to Design, and clicking the smart tag to configure my datasource.
sqldatasource=SqlDataSource1
connection string - Data Source=YOUR-02910F1DF1;Initial Catalog=AdventureWorks;Integrated Security=True
I tried the test query.
There was an error executing the query....
Invalid name '[Employee}
I tried the query builder, and then the second line is my own sql statement. Both produced the error above.
SELECT [EmployeeID], [Title] FROM [Employee]
SELECT [EmployeeID], [Title] FROM Employee
I tried this with several different tables, all producing the same error.
When I do with with an access database with an access datasource, it works fine. But since I really want to put something on the web, I need sqlserver 2005.
I confirmed that sqlserver.exe was running.
Can somebody help me?
dennist685
I'd really appreciate an answer to this question. I can't go very far in web applications if I can't attach a datasource to a DataList.dennist685|||
I got an answer from of all places, the 2003 newsgroups.
Hi Dennist685,
Welcome to ASPNET newsgroup.
From your description, when you try creating a data-driven page in ASP.NET
2.0/VS.NET 2005, you always get error on test query, yes?
Based on my experience, the VS.NET 2005 will use configuration wizard to
help create Sql query statements for our SqlDataSource control. Are you
following the wizard to configure the datasoruce? We can first confirm that
the SqlDataSource is configured correctly. We can open the aspx after
configured the sqldatasource control and check the sql query statement
embeded (test in SQLServer's query console/analyzer to see whether it
works....).
After the SqlDataSource is configured OK, we can then attach it to the
DataList control so as to displaying data.
BTW, for Northwind and Pubs databases, we can manually copy their mdf file
from the original SQLServer 2000 and manually attach them into SQLServer
2005. Also, VS.NET 2005/ .net 2.0 support sqlserver 7.0 2005 (also
include a SQLExpress edition which replace the original MSDE). So please
feel free to use either of them for your data store.
If there're anything unclear or need any further help, please feel free to
post here.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Thank you Steven,
I never got as far as configuring the datasource correctly.
There was an error executing the (test) query. Please check the syntax of the command and if present, the types and values of the parameters to be sure they are correct.
Invalid name 'Employee'
There is no stack trace. I was in the configuration stage where the wizard asks you to perform a test query.
I went ahead and built default.aspx successfully,
But when I tried to view it in a browser, I got the stack trace you wanted.
Server Error in '/FormatDataList' Application.
--
Invalid object name 'Employee'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'Employee'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): Invalid object name 'Employee'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +177
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +68
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +199
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2300
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
System.Data.SqlClient.SqlDataReader.get_MetaData() +62
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +294
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1021
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +314
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +20
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +107
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +10
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +139
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +140
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1657
System.Web.UI.WebControls.BaseDataList.GetData() +53
System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +267
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +57
System.Web.UI.WebControls.BaseDataList.DataBind() +62
System.Web.UI.WebControls.BaseDataList.EnsureDataBound() +55
System.Web.UI.WebControls.BaseDataList.CreateChildControls() +62
System.Web.UI.Control.EnsureChildControls() +97
System.Web.UI.Control.PreRenderRecursiveInternal() +50
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5729
--
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
dennist685
hank you for the detailed response Dennis,
After tested through your further description, I've reproduce the problem
you encountered. Yes, when using the SqlDataSource's configuration wizard
to generate select statement by "specify columns from a table or view", the
generated SQL statement always cause Error.
And based on my further research, I think this should be a problem of the
SqlDataSource control's configuration wizard. Because for SQL 2005 tables,
they could be grouped by a new unit called "Schema", so when we reference a
table in our SQLStatement , we can not simply use their tablename, but need
to add the schema name together . for example, in our problem, the
Adventureworks database's Employee table are in a schema named
"HumanResources", then, our sql statement should be
"SELECT HumanResources.Employee.* FROM HumanResources.Employee"
or "SELECT * FROM HumanResources.Employee"
rather than "Select * from Employee", "HumanResources" is the schema name.
And seems the SqlDataSource control's
"specify columns from a table or view" wizard dosn't support this
correctly. I'll report this issue to our product team. Curently, I suggest
you try the following means to workaround this problem when dealing with
the SQL2005 database tables:
1. We can manually adjust the sql statement in web page (aspx )'s template
by adding the Schema name before the table name.
2. Instead of using the "specify columns from a table or view" in the
wizard, we can choose another option
"specify a custom SQL statement or stored procedure"
in this wizard, we can use another SQL statement generating tool (Query
Builder ) to auto generate the sql statement (which will correctly add the
Schema name for SQL 2005 data tables based on my tests). Or we can manually
enter sqlstatement also.
Anyway, since this is a problem of our product , I'm sorry for the
inconvenience it brings you. Thanks for your understanding.
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Steven,
thank you every so much for the time you spent tracing down the bug. Frankly, I'm very disappointed in Visual Studio for this and other problems, especially in asp.net 2.0.
Also thank you for solving the problems.
There are also problems I found with other asp.net walkthroughs, but those I found easy ways around.
I find it interesting that the people in Microsoft asp.net forums and Microsoft technical forums couldn't answer the question, and you people, still concentrating of vs 2003, did.
dennist685
I don't understand why the common logic was not used - i.e., as long as the name is unque you don't have to qualify it.
Arie|||There's still a problem. The query builder doesn't support WHERE and other clauses. So I guess we have to use the table name and type in the schema qualifier.
It's really disappointing. I don't see how the visual studio team overlooked something so glaring. I imagine in the advanced areas there are bugs galore.
I'd bet SP1 is coming soon.
dennist685
Error in DataList test query - sqlserver
Error in DataList test query - sqlserver
I found some vs 2005 asp.net walkthroughs.
The first I tried required Northwind.
But sqlserver 2005 came with AdventureWorks, so I used that instead.
I followed the walkthrough instructions, dragging a DataList to Design, and clicking the smart tag to configure my datasource.
sqldatasource=SqlDataSource1
connection string - Data Source=YOUR-02910F1DF1;Initial Catalog=AdventureWorks;Integrated Security=True
I tried the test query.
There was an error executing the query....
Invalid name '[Employee}
I tried the query builder, and then the second line is my own sql statement. Both produced the error above.
SELECT [EmployeeID], [Title] FROM [Employee]
SELECT [EmployeeID], [Title] FROM Employee
I tried this with several different tables, all producing the same error.
When I do with with an access database with an access datasource, it works fine. But since I really want to put something on the web, I need sqlserver 2005.
I confirmed that sqlserver.exe was running.
Can somebody help me?
dennist685
I'd really appreciate an answer to this question. I can't go very far in web applications if I can't attach a datasource to a DataList.dennist685|||
I got an answer from of all places, the 2003 newsgroups.
Hi Dennist685,
Welcome to ASPNET newsgroup.
From your description, when you try creating a data-driven page in ASP.NET
2.0/VS.NET 2005, you always get error on test query, yes?
Based on my experience, the VS.NET 2005 will use configuration wizard to
help create Sql query statements for our SqlDataSource control. Are you
following the wizard to configure the datasoruce? We can first confirm that
the SqlDataSource is configured correctly. We can open the aspx after
configured the sqldatasource control and check the sql query statement
embeded (test in SQLServer's query console/analyzer to see whether it
works....).
After the SqlDataSource is configured OK, we can then attach it to the
DataList control so as to displaying data.
BTW, for Northwind and Pubs databases, we can manually copy their mdf file
from the original SQLServer 2000 and manually attach them into SQLServer
2005. Also, VS.NET 2005/ .net 2.0 support sqlserver 7.0 2005 (also
include a SQLExpress edition which replace the original MSDE). So please
feel free to use either of them for your data store.
If there're anything unclear or need any further help, please feel free to
post here.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Thank you Steven,
I never got as far as configuring the datasource correctly.
There was an error executing the (test) query. Please check the syntax of the command and if present, the types and values of the parameters to be sure they are correct.
Invalid name 'Employee'
There is no stack trace. I was in the configuration stage where the wizard asks you to perform a test query.
I went ahead and built default.aspx successfully,
But when I tried to view it in a browser, I got the stack trace you wanted.
Server Error in '/FormatDataList' Application.
--
Invalid object name 'Employee'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'Employee'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): Invalid object name 'Employee'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +177
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +68
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +199
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2300
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
System.Data.SqlClient.SqlDataReader.get_MetaData() +62
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +294
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1021
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +314
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +20
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +107
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +10
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +139
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +140
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1657
System.Web.UI.WebControls.BaseDataList.GetData() +53
System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +267
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +57
System.Web.UI.WebControls.BaseDataList.DataBind() +62
System.Web.UI.WebControls.BaseDataList.EnsureDataBound() +55
System.Web.UI.WebControls.BaseDataList.CreateChildControls() +62
System.Web.UI.Control.EnsureChildControls() +97
System.Web.UI.Control.PreRenderRecursiveInternal() +50
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5729
--
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
dennist685
hank you for the detailed response Dennis,
After tested through your further description, I've reproduce the problem
you encountered. Yes, when using the SqlDataSource's configuration wizard
to generate select statement by "specify columns from a table or view", the
generated SQL statement always cause Error.
And based on my further research, I think this should be a problem of the
SqlDataSource control's configuration wizard. Because for SQL 2005 tables,
they could be grouped by a new unit called "Schema", so when we reference a
table in our SQLStatement , we can not simply use their tablename, but need
to add the schema name together . for example, in our problem, the
Adventureworks database's Employee table are in a schema named
"HumanResources", then, our sql statement should be
"SELECT HumanResources.Employee.* FROM HumanResources.Employee"
or "SELECT * FROM HumanResources.Employee"
rather than "Select * from Employee", "HumanResources" is the schema name.
And seems the SqlDataSource control's
"specify columns from a table or view" wizard dosn't support this
correctly. I'll report this issue to our product team. Curently, I suggest
you try the following means to workaround this problem when dealing with
the SQL2005 database tables:
1. We can manually adjust the sql statement in web page (aspx )'s template
by adding the Schema name before the table name.
2. Instead of using the "specify columns from a table or view" in the
wizard, we can choose another option
"specify a custom SQL statement or stored procedure"
in this wizard, we can use another SQL statement generating tool (Query
Builder ) to auto generate the sql statement (which will correctly add the
Schema name for SQL 2005 data tables based on my tests). Or we can manually
enter sqlstatement also.
Anyway, since this is a problem of our product , I'm sorry for the
inconvenience it brings you. Thanks for your understanding.
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Steven,
thank you every so much for the time you spent tracing down the bug. Frankly, I'm very disappointed in Visual Studio for this and other problems, especially in asp.net 2.0.
Also thank you for solving the problems.
There are also problems I found with other asp.net walkthroughs, but those I found easy ways around.
I find it interesting that the people in Microsoft asp.net forums and Microsoft technical forums couldn't answer the question, and you people, still concentrating of vs 2003, did.
dennist685
I don't understand why the common logic was not used - i.e., as long as the name is unque you don't have to qualify it.
Arie|||There's still a problem. The query builder doesn't support WHERE and other clauses. So I guess we have to use the table name and type in the schema qualifier.
It's really disappointing. I don't see how the visual studio team overlooked something so glaring. I imagine in the advanced areas there are bugs galore.
I'd bet SP1 is coming soon.
dennist685