Showing posts with label click. Show all posts
Showing posts with label click. Show all posts

Thursday, March 22, 2012

Cannot open user database error message AFTER I connect and log in.

Ok so I'm using the Management Studio Express and was able to log in and get into the database server, but I had to click the "options>>" button and change database I wanted to connect to from <<default>> to my database on the server or else I get the "cannot open user database, login failed" error message.

Then I right click my database and it gives me the "Cannot open user database. Login failed" error message, even though I already connected to the database to login during the connect screen.

Also I'm able to interact with the database using SQL QUERIES in the Management Studio, like adding new tables with it, but if I right click the database and click "add table" I get that error.

What gives? I know I have permission since I was able to log on, and modify the database using SQL queries but if use the GUI I can't use it. I can't even right-click select "properties" without getting that error.

The reason I want to use the GUI is because I want to right click and use the backup feature of the database.

My guess is that Management Studio continues to point to the default database(which gives me that message) after I already logged in, so I have no idea how to change the default database that management studio points to, to the one I do have permission to use.

Thanks in advance.

What's the account you used to connect to SQL Database Engine in Management Studio Express? The 'Default Database' in SQL is a property of login, that means each login has a Default Database which will be accessed when connecting to SQL Server. You can check this property in the Security->login Properties. Just make sure your login has access on its default database.

cannot open table in sql server management studio express

Hello all.

I have uploaded a table into sql management studio express. However, when I right click on the table and try and open it, I get an error message saying;

"SQL Execution Error.

Executed SQL statement: select columnName1, columnName2 etc....

Error source: Microsoft. VisualStudio.DataTools

Error Message: Exception has been thrown by the target of an invocation"

Because of this error, I cannot manually edit the table. However, when I write a query running select * from Table X, the table does appear that way.

Any help regarding how to open the table would be very much appreciated!!

I have same issue now. What is your solution?|||

Hi,

If you wanna modify data. you'd rather build a T-SQL script (e.g. with insert, update and/or delete
statements).

To prevent problems also consider enclosing the modification in a transaction, e.g.:

begin tran

-- do modifications

-- verify results

commit tran -- if results were ok

rollback tran -- if results were wrong

BTW, the question may be asked better at Sql server express :)

cannot open table in sql server management studio express

Hello all.

I have uploaded a table into sql management studio express. However, when I right click on the table and try and open it, I get an error message saying;

"SQL Execution Error.

Executed SQL statement: select columnName1, columnName2 etc....

Error source: Microsoft. VisualStudio.DataTools

Error Message: Exception has been thrown by the target of an invocation"

Because of this error, I cannot manually edit the table. However, when I write a query running select * from Table X, the table does appear that way.

Any help regarding how to open the table would be very much appreciated!!

I have same issue now. What is your solution?|||

Hi,

If you wanna modify data. you'd rather build a T-SQL script (e.g. with insert, update and/or delete
statements).

To prevent problems also consider enclosing the modification in a transaction, e.g.:

begin tran

-- do modifications

-- verify results

commit tran -- if results were ok

rollback tran -- if results were wrong

BTW, the question may be asked better at Sql server express :)

cannot open table in sql server management studio express

Hello all.

I have uploaded a table into sql management studio express. However, when I right click on the table and try and open it, I get an error message saying;

"SQL Execution Error.

Executed SQL statement: select columnName1, columnName2 etc....

Error source: Microsoft. VisualStudio.DataTools

Error Message: Exception has been thrown by the target of an invocation"

Because of this error, I cannot manually edit the table. However, when I write a query running select * from Table X, the table does appear that way.

Any help regarding how to open the table would be very much appreciated!!

I have same issue now. What is your solution?|||

Hi,

If you wanna modify data. you'd rather build a T-SQL script (e.g. with insert, update and/or delete
statements).

To prevent problems also consider enclosing the modification in a transaction, e.g.:

begin tran

-- do modifications

-- verify results

commit tran -- if results were ok

rollback tran -- if results were wrong

BTW, the question may be asked better at Sql server express :)

sql

Tuesday, March 20, 2012

cannot open property page for sa account

When I do right click and Properies on the sa account I get this:

TITLE: Microsoft SQL Server Management Studio

Cannot show requested dialog.

ADDITIONAL INFORMATION:

Cannot show requested dialog. (SqlMgmt)

Property IsLocked is not available for Login '[sa]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights. (Microsoft.SqlServer.Smo)

BUTTONS:

OK

Also for the other account I created,

TITLE: Microsoft SQL Server Management Studio

Cannot show requested dialog.

ADDITIONAL INFORMATION:

Cannot show requested dialog. (SqlMgmt)

Property MustChangePassword is not available for Login '[myLogin]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights. (Microsoft.SqlServer.Smo)

BUTTONS:

OK

I am running SQL Server Developer Edition SP2 in Windows Vista Ultimate.

Why is this happening to me?

I added my Vista account to the administrators using the Provisioning tool, and restarted the computer but this did not help.
I allowed SQL to have Mixed Mode (2)
What do I have to do to get SQL working?

Let's eliminate the rights and permissions question first. Log out of everything except the operating system. Then right-click the SQL Server Management Studio and select "Run as Administrator". See if the problem persists.

Second, are you running the Management Studio against the same version of SQL Server? In other words, are you trying to manage a SQL Server 2000 instance from 2K5?

|||

Given that this is a tool question, I'm moving this thread to the tools forum.

Thanks
Laurentiu

|||Its SQL Server 2005 Dev edition. No 2000 in my box.

I have solved the problem, because After updating the SQL server 2005 to SP2, it makes the sql only Windows Authentication. I had to change that to Mixed authentication.

Once I did that, I changed the sa password with ALTER USER sa WITH PASSWORD='mypassword' UNLOCK.

Then things worked out.

But I think MS should tell people about this, so that we dont spend a day figuring out what the problem is.sql

Cannot Open Database. Login Failed.

I am a newbie in sql server and i am creating a web application using VB.NET

I have a button that when i click it will open the database. Heres the code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim sqlConnect As New SqlConnection("integrated security=SSPI;data source=(local)\SQLEXPRESS;persist security info=False;initial catalog = CorporateDB;")

sqlConnect.Open()

End Sub

the problem is when i clicked the button an error will show:

Cannot open database "CorporateDB" requested by the login. The login failed. Login failed for user 'TRANSLTR\ASPNET'.


The CorporateDB is the database. And i don't know where did i got this user 'TRANSLTR/ASPNET' My computer name is Transltr but not 'TRANSLTR/ASPNET'.

I tried using this connection string in creating windows application in VS.NET. It works fine. What did i missed here. Please i need your help.

ASPNET = Windows Authentication. You need to configure a generic SQL Authentication or use your own. Either way you have to change your connection string to the following format:

Data Source=ServerName;Initial Catalog=DataBaseName3;UId=UserLoginName;Password=Password;Trusted_Connection=False"

You can also use impersonation in the your web.config file. It's up to you.

Adamus

|||Can you show me the steps on:

1. How can i configure a generic SQL Authentication

2. using inpersonation web.config

I apologize for all this trouble. I'm still a newbie in ms sql. Thanks for replying.
|||

Just use the connection string I've posted and put the login and password you use to log into SQL. If you use Windows Authentication, add this line to your web.config file:

<system.web>
<identity impersonate="true" userName="WindowsDomain\YourUserName" password="YourPassword" />
</system.web>

Adamus

sql

Saturday, February 25, 2012

Cannot Install SP4 for SQL Server 2000

I am trying to install SP4 for SQL Server 2000.
When I click on the setup.bat, I get the message:
Setup Initialization Error
Access is denied
Source: 'C\SQL2kSP4\x86\setup\saqlsore.ini'
Target: 'C:\Document~1\dave\locals~1\temp\setupsql.ini'
I am installing the standard version of SQL Server on to Windows XP with
latest service packs.
According to the SP instructions, I set Local Security Policy | Local
Policies | Security Options to Silently Succeed for Devices: Unsigned
driver installation behavior.
I even gave "everyone" full control to C:\Documents and Settings\dave\Local
Settings\Temp
Still I get this error.
Does anyone have an ideas what I can do to avoid this error?
Hello Dave,
I understand that you encountered error message "Setup Initialization Error
Access is denied" when installing SQL 2000 SP4. Please let me know if it's
not correct.
Based on my experience, the problem is the setupsql.ini file already exist
in that default folder C:\Document~1\dave\locals~1\temp\. You may want to
remove the file from that folder and try to run setup again.
If above method do not work, please try to log on as a different user with
local admin rights to try to install SP4.
If the issue persists, you may want to remove the folder C:\SQL2kSP4\, and
extract the setup file from the compressed exe file again.
Please let's know if this resolve the issue. I look forward to your update.
Thanks.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
<http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
<http://msdn.microsoft.com/subscriptions/support/default.aspx>.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
|||That worked.
Thanks for your help!
"Peter Yang [MSFT]" <petery@.online.microsoft.com> wrote in message
news:%23$hToamSHHA.3604@.TK2MSFTNGHUB02.phx.gbl...
> Hello Dave,
> I understand that you encountered error message "Setup Initialization
> Error
> Access is denied" when installing SQL 2000 SP4. Please let me know if it's
> not correct.
> Based on my experience, the problem is the setupsql.ini file already exist
> in that default folder C:\Document~1\dave\locals~1\temp\. You may want to
> remove the file from that folder and try to run setup again.
> If above method do not work, please try to log on as a different user with
> local admin rights to try to install SP4.
> If the issue persists, you may want to remove the folder C:\SQL2kSP4\, and
> extract the setup file from the compressed exe file again.
> Please let's know if this resolve the issue. I look forward to your
> update.
> Thanks.
> Best Regards,
> Peter Yang
> MCSE2000/2003, MCSA, MCDBA
> Microsoft Online Community Support
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications
> <http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> <http://msdn.microsoft.com/subscriptions/support/default.aspx>.
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>

Cannot Install SP4 for SQL Server 2000

I am trying to install SP4 for SQL Server 2000.
When I click on the setup.bat, I get the message:
Setup Initialization Error
Access is denied
Source: 'C\SQL2kSP4\x86\setup\saqlsore.ini'
Target: 'C:\Document~1\dave\locals~1\temp\setups
ql.ini'
I am installing the standard version of SQL Server on to Windows XP with
latest service packs.
According to the SP instructions, I set Local Security Policy | Local
Policies | Security Options to Silently Succeed for Devices: Unsigned
driver installation behavior.
I even gave "everyone" full control to C:\Documents and Settings\dave\Local
Settings\Temp
Still I get this error.
Does anyone have an ideas what I can do to avoid this error?Hello Dave,
I understand that you encountered error message "Setup Initialization Error
Access is denied" when installing SQL 2000 SP4. Please let me know if it's
not correct.
Based on my experience, the problem is the setupsql.ini file already exist
in that default folder C:\Document~1\dave\locals~1\temp\. You may want to
remove the file from that folder and try to run setup again.
If above method do not work, please try to log on as a different user with
local admin rights to try to install SP4.
If the issue persists, you may want to remove the folder C:\SQL2kSP4\, and
extract the setup file from the compressed exe file again.
Please let's know if this resolve the issue. I look forward to your update.
Thanks.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Community Support
========================================
==========
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications
<http://msdn.microsoft.com/subscript...ps/default.aspx>.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
<http://msdn.microsoft.com/subscript...rt/default.aspx>.
========================================
==========
This posting is provided "AS IS" with no warranties, and confers no rights.|||That worked.
Thanks for your help!
"Peter Yang [MSFT]" <petery@.online.microsoft.com> wrote in message
news:%23$hToamSHHA.3604@.TK2MSFTNGHUB02.phx.gbl...
> Hello Dave,
> I understand that you encountered error message "Setup Initialization
> Error
> Access is denied" when installing SQL 2000 SP4. Please let me know if it's
> not correct.
> Based on my experience, the problem is the setupsql.ini file already exist
> in that default folder C:\Document~1\dave\locals~1\temp\. You may want to
> remove the file from that folder and try to run setup again.
> If above method do not work, please try to log on as a different user with
> local admin rights to try to install SP4.
> If the issue persists, you may want to remove the folder C:\SQL2kSP4\, and
> extract the setup file from the compressed exe file again.
> Please let's know if this resolve the issue. I look forward to your
> update.
> Thanks.
> Best Regards,
> Peter Yang
> MCSE2000/2003, MCSA, MCDBA
> Microsoft Online Community Support
> ========================================
==========
> Get notification to my posts through email? Please refer to
> l]
> ications
> <[url]http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx" target="_blank">http://msdn.microsoft.com/subscript...ps/default.aspx>.
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> <http://msdn.microsoft.com/subscript...rt/default.aspx>.
> ========================================
==========
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>

Cannot Install SP4 for SQL Server 2000

I am trying to install SP4 for SQL Server 2000.
When I click on the setup.bat, I get the message:
Setup Initialization Error
Access is denied
Source: 'C\SQL2kSP4\x86\setup\saqlsore.ini'
Target: 'C:\Document~1\dave\locals~1\temp\setupsql.ini'
I am installing the standard version of SQL Server on to Windows XP with
latest service packs.
According to the SP instructions, I set Local Security Policy | Local
Policies | Security Options to Silently Succeed for Devices: Unsigned
driver installation behavior.
I even gave "everyone" full control to C:\Documents and Settings\dave\Local
Settings\Temp
Still I get this error.
Does anyone have an ideas what I can do to avoid this error?Hello Dave,
I understand that you encountered error message "Setup Initialization Error
Access is denied" when installing SQL 2000 SP4. Please let me know if it's
not correct.
Based on my experience, the problem is the setupsql.ini file already exist
in that default folder C:\Document~1\dave\locals~1\temp\. You may want to
remove the file from that folder and try to run setup again.
If above method do not work, please try to log on as a different user with
local admin rights to try to install SP4.
If the issue persists, you may want to remove the folder C:\SQL2kSP4\, and
extract the setup file from the compressed exe file again.
Please let's know if this resolve the issue. I look forward to your update.
Thanks.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Community Support
==================================================Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
<http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
<http://msdn.microsoft.com/subscriptions/support/default.aspx>.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||That worked.
Thanks for your help!
"Peter Yang [MSFT]" <petery@.online.microsoft.com> wrote in message
news:%23$hToamSHHA.3604@.TK2MSFTNGHUB02.phx.gbl...
> Hello Dave,
> I understand that you encountered error message "Setup Initialization
> Error
> Access is denied" when installing SQL 2000 SP4. Please let me know if it's
> not correct.
> Based on my experience, the problem is the setupsql.ini file already exist
> in that default folder C:\Document~1\dave\locals~1\temp\. You may want to
> remove the file from that folder and try to run setup again.
> If above method do not work, please try to log on as a different user with
> local admin rights to try to install SP4.
> If the issue persists, you may want to remove the folder C:\SQL2kSP4\, and
> extract the setup file from the compressed exe file again.
> Please let's know if this resolve the issue. I look forward to your
> update.
> Thanks.
> Best Regards,
> Peter Yang
> MCSE2000/2003, MCSA, MCDBA
> Microsoft Online Community Support
> ==================================================> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications
> <http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> <http://msdn.microsoft.com/subscriptions/support/default.aspx>.
> ==================================================> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>

Cannot install MS SQL 2000 Developer Edition to my computer

When come to Create Instances screen and click next it prompt error message

although i had restart my computer.

A previous program Installation created pending file operations on the installation machine. You must restart the computer before running setup.

That message is normally because there is a 'runonce' flag set (and some files to be replaced).

However, if you have re-booted your computer (not just logged off and on), then the flag 'should' be cleared.

|||

yes i had restart even shutdown but still prompt the same errors.

Friday, February 10, 2012

cannot find page when generating the report

I click a button to preview the report. The link is

http://localhost/rpt/report_order_summary_cust&rs:Command=Render&rc:Parameters=False&cust_code=cctest&supp_code=%&from_date=2005/01/01&to_date=2007/01/01

I got two file in the rpt folder. they are named as report_order_summary_cust.rdl.data and report_order_summary_cust.rdl.

I wrote a function to generate the report which is

1const string RS_NAME ="report_order_summary_cust";2const string RS_CMD ="&rs:Command=Render&rc:Parameters=False";3string rs_para;4string rs_url;56//parameters7string para_cust_code = lblSelectedCustCode.Text;8string para_supp_code = ddl_supplier.SelectedValue;9string para_from_date = txtFromDate.Text;10string para_to_date = txtToDate.Text;111213RSPath = rtn_http_dir(RSPath);14para_from_date = Convert_date(para_from_date);15para_to_date = Convert_date(para_to_date);161718string[] arr_cust_code = para_cust_code.Split(';');1920for (int index=0; index < arr_cust_code.Length; index++)21{22string cust_code = arr_cust_code[index].ToString().Trim();23rs_para ="&cust_code="+ cust_code +24"&supp_code="+ para_supp_code +25"&from_date="+ para_from_date +26"&to_date=" + para_to_date ;27rs_url = RSPath + RS_NAME + RS_CMD + rs_para;282930string script ="<SCRIPT LANGUAGE='JAVASCRIPT'> window.open('" + rs_url +"','_blank','height=700, width=1050, top=0,left=0,toolbar=no,menubar=no, scrollbars=yes, location=no, status=no');</SCRIPT>";31Page.RegisterStartupScript("Script_" + index.ToString(), script);3233}

When i click the button the above code will be run. However, the pop up windows show that the page cannot be found. I would like to know what problem it is? (I am now to reporting service)

I am using vs2003 + server 2000 reporting service

Thank you.

have you tried url encoding the link. Those dates could cause you problems.