Showing posts with label local. Show all posts
Showing posts with label local. Show all posts

Friday, March 23, 2012

I can't open my dtsx

Hi everyone,

After a while I'm come back to SSIS but a drawback appears.

I’ve copied from our server a folder which contains a few dtsx on my local folder and when I’m going to open dtproj and then choose any of them:

Error1Error loading 'M_Hac_Modelo187.dtsx' : Error al recuperar un generador de clases COM para el componente con CLSID {E80FE1DB-D1AA-4D6B-BA7E-040D424A925C} debido al siguiente error: 8000401a..c:\ssis\hacienda_anual\M_Hac_Modelo187.dtsx11

..

..

..

(I think that is not necessary to translate into english due to simpleness of the message.)

What the hell is happening? I perfectly remember have been doing the same a month ago and I was able to open them without problems.

TIA

It's strange. How odd.

Now, I can't be able to create any SSIS project from my BIDS. SSAS no problem at all.

In the last month I've installed Visual Studio Professional Edition 2005 and Enterprise Library January Edition 2006 for Framework in my own workstation.

What happened?

I don't want that workaround for it have to be install again SSIS component from my installation CD.

Let me know any comment or link related.

Thanks again,

|||

Hi again,

Does anyone ever faced any problem like that?

Following actions has been commited:

-Desinstalling assemblies related (Microsoft.SqlServer namespace) and installing them again - UNSUCCESSFUL

-Reinstall SSIS component - UNSUCCESSFUL

-Repair Visual Studio 2005 Professional Edition installation - UNSUCCESSFUL

-A full desinstallation of Visual Studio 2005 Professional Edition - UNSUCCESSFUL

-A full installation of Visual Studio 2005 - UNSUCCESSFUL

-A full desinstallation of Sql Server 2005 Developer Edition - UNSUCCESSFUL

I've searched that CLSID in my registry and it belong to C:\Archivos de programa\Microsoft SQL Server\90\DTS\Binn\DTS.dll

So that, Package Neutral and Package Neutral Classes involved...

CLSID: E80FE1DB-D1AA-4D6B-BA7E-040D424A925C
TypeLib: {D1D9A51E-B4FE-420B-97B1-28A383EF9168}

So that, I've unregistered that COM component by means regsvr32 and registered again...

Unsuccessful.

I'm stuck with that. I don't get the point at all.


Any idea?

Wednesday, March 21, 2012

I cant connect to my local sql server express db. Please help

Hello,

I need help to connect to my local sql express db in visual studio 2003 in vb.
It currently works with the production db information and I need to test a few things, So i'd like to point it to the local db.


It works this way:
Const CONN_STRING = "server=johndoe;user id=john;password=doe;database=johnd"
Dim conn As SqlConnection = New SqlConnection(Me.CONN_STRING)
conn.Open()

I want to point it to my local db and it doesn't connect.

Dim connectionString As String = "Data Source={myusername\SQLEXPRESS};Initial Catalog=johnd;Trusted_Connection=yes"
Dim conn As SqlConnection = New SqlConnection(connectionString)

Try
conn.Open()
Catch ex As Exception
Response.Write(ex.ToString())
End Try

and even that doesn't work.

When i go to my sql server 2005, it says
MYUSERNAME\SQLEXPRESS (SQL SERVER 9.0.3042 - theworknetwork\myusername

what am i doing wrong ?

Thanks.

You can try two things:

1) If you are an administrator on your local computer, then make sure that your user ID is in the Administrators group and then make that the Administrators group has access to the SQLEXPRESS instance. Change the user ID used by the SQL Server Management Tool with your local machine login, not your network login. If this doesn't work, replace it with the local machine Administrator account.

2) Instead of using Windows authorizations, use SQL Server authorizations. Create a new user in SQL Server specifically for your database. Make this user the dbo. Then use this user name with password in your ConnectionString.

At times, I have issues with Windows users because the passwords are different across the various computers. This has not been the case with SQL Server credentials, which I usually prefer.

Also, try using Integrated_Security in place of Trusted_Connection in the ConnectionString.

|||

Heres what I've tried. I went to that db (johnd), went to the security>users> and there is already a user called dbo

I tried doing Integrated_Security like you said and i got an error saying that is an invalid key. So here is what I have and it still doesn't work.

"Data Source={myusername\SQLEXPRESS};Initial Catalog=intranet;Trusted_Connection=yes;user id=dbo; password=dbo"

Any ideas?


|||

Can you please try with the following connection string if you are using NT Authentication:

Data Source={localmachine\SQLEXPRESS};Initial Catalog=intranet;Trusted_Connection=yes;

If you are using SQL Server User please try with the following connection string:

Data Source={localmachine\SQLEXPRESS};Initial Catalog=intranet;user id=<local sql server user>; password=<password>

Please make sure that you are changing the bold string with appropriate values.

Following URL provides you the steps to create the user:

http://www.microsoft.com/technet/prodtechnol/sql/2005/mgsqlexpwssmse.mspx

|||

I am in microsoft sql server managemen studio Object explorer (on left)
The very first item shows SDAVID\SQLEXPRESS

underneath that i have my database intranet

I then went to security > users [right click] > New User
Under Database User - New,
User Name: SDAVID
Login name
a new window came for Select Login and i found SDAVID [hit okay.]
* so now it shows User name: SDAVID
and login name shows SDAVID

under schemas owned by this user, I choose db_owner and db_securityadmin
under database membership i choose db_owner and db_securityadmin

Now under the code, here is what i have...

Const dbstring = "Data Source={SDAVID\SQLEXPRESS};Initial Catalog=intranet;user id=<sdavid>; password=<sdavid>"


Public Function testConnection()
Dim connectionString As String = "Data Source={SDAVID\SQLEXPRESS};Initial Catalog=intranet;user id=<sdavid>; password=<sdavid>"
Dim conn As SqlConnection = New SqlConnection(ConnectionString)
Dim cmd As SqlCommand = New SqlCommand("selec * from tblUsers", conn)
cmd.CommandType = CommandType.Text
Try
conn.Open()
Catch ex As Exception
Response.Write(ex.ToString())
Finally
conn.Close()
End Try

this generates the following error:
sqlException: Sql server does not exists or access denied.

thanks.

|||

Can you please use the following modified connection string:

Const dbstring = "Data Source=SDAVID\SQLEXPRESS;Initial Catalog=intranet;user id=sdavid; password=sdavid"

|||

Thank you. that did it! ..
Data Source=SDAVID\SQLEXPRESS;Initial Catalog=intranet;Trusted_Connection=yes;

|||

Hey Sri,

I tried it your way with specifying username and password and that did not work. Do you know why this could be ?

in Micrososft Sql Server Mangement Studio, i went to the db, Security > USers and created a user called sdavid with sdavid. I gave the user db_datareader and db_owner an under database roles membership gave it db_owner... i'd like to get the app working sql sever authhentication.

thanks.

I cant connect to my Local DataBase please help...

DBconn.cs

private DBConn()
{
//
// TODO: 在這裡加入建構函式的程式碼
//
this.Server=Property.getProperty("DBServer");
this.port=int.Parse(Property.getProperty("DBPort"));
this.User=Property.getProperty("DBUser");
this.Pwd=Property.getProperty("DBPwd");
this.db=Property.getProperty("DBDatabase");
this.ConnectionString="server=" + this.Server+","+this.port+";database="+this.db+";uid="+this.User+";pwd="+this.Pwd+";Connect Timeout=60";

}

--------------------------------

propetry.config

<property name="DBServer" value="127.0.0.1" />
<property name="DBPort" value="1433" />
<property name="DBDatabase" value="CSLC" />
<property name="DBUser" value="CSLCUser" />
<property name="DBPwd" value="resslc" />

I use this way to call my connecting string , but I can't connect to my local DataBase , I trid to modify the propetry.config to coneect to other DataBase on other Server it works

only when Connecting with my Local DataBase , it not work...

this problem have been troble me more than 3 weeks... ask many people no one can resolve this problem...

when I am at home . I can't work... because I can't connect to the Server when I'm in office..

pleaes help... thank you very much

Change your DBServer property to(local).

|||

I have tried this way before

the property.config was looks like below

propetry.config

<property name="DBServer" value="local" />
<property name="DBPort" value="1433" />
<property name="DBDatabase" value="CSLC" />
<property name="DBUser" value="CSLCUser" />
<property name="DBPwd" value="resslc" />

it doesn't work as well... please help..

|||

It should be

 <property name="DBServer" value="(local)" /> <property name="DBPort" value="1433" /> <property name="DBDatabase" value="CSLC" /> <property name="DBUser" value="CSLCUser" /> <property name="DBPwd" value="resslc" />
|||

yes, I did

now it looks like

<property name="DBServer" value="(local)" />
<property name="DBPort" value="1433" />
<property name="DBDatabase" value="CSLC" />
<property name="DBUser" value="CSLCUser" />
<property name="DBPwd" value="resslc" />

it still fail when Coneecting with DB... is it possible wrong SQL Server Setting? like security problem?

can you teach me how to check if problem is from SQL Server Setting please? thank you very much

|||

Start off with going to http://www.connectionstrings.com to get a "good" connection string for your application. Verify that you can connect to the SQL Server. Try using Visual Studio to connect. Upon successful connection copy that string to your configuration. My guess is the TCP ip connections are disabled on your SQL Server or someone changed the port.

|||

thank you

can you teach me how to start check if the problem is from "The TCP ip connections are disabled on your SQL Server or someone changed the port. "

because I use some small program to enable to connect to MSN messenger when I'm in office , it always change my proxy into 127.0.0.1

maybe there is something been changed but I don't know..

thank you very much

|||

anyone? please help.. please...

|||

Hi jcjcjc,

can you teach me how to start check if the problem is from "The TCP ip connections are disabled on your SQL Server or someone changed the port. "

which version of sql server are you using? if you are using sql 2005, open sql server configuration manager (there are corresponding tools for sql express and sql 2000) and click sql server 2005 network configurateion-->Protocols for YOURSERVERNAME-->TCP/IP make sure tcp/ip connection is enabled.

Actually, i would suggest you first open your windows service list (control panel->administrational tools--> services) and see if your sql server service is started up.

Hope my suggestion helps

|||

I use SQL 2000, and the weird thing is.. only this project can't connect with local DataBase
but others does...


Monday, March 19, 2012

I cannot log in with sa user (error 18452)

Hi to all.

I'm trying to log in on local machine to my SQL Server 2005 (in Windows Server 2003) using a user not trused, like as 'sa' user, but I receive the error Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452).

No problem to connect with trusted user (my logon user to operating system).

I set the auth mode to SQL Server & Windows but doesn't work.

What can I do?

Ciao.

Hi,

you did either not set Mixed Authentication for the instance you are connecting, or you are connecting to the wrong instance or you did not restart the service after changing the authentication mode. The is no other explanation for this error message.

Jens K. Suessmeyer.

http://www.sqlserver2005.de

|||I've seen people get this error when trying to work out what authentication mode they want. They switch from one to the other, but don't restart the service - only to find that the mode hasn't actually changed yet.

Rob

I can't connect to my local database.mdf file

I have just upgraded to Microsoft SQL Server 2005 Express Edition with Advanced Services SP2.

Now I can't connect to my local database.mdf file.

When trying to open or doubleclick or expand my .mdf file the following message pops up:

Generating user instances in SQL Server is disabled. Use sp_configure 'user instance enabled' to generate user instances.

What is the solution for this problem?

hi,

by default, User Instances feature is disabled when you install a SQLExpress instance.. the Install Wizard provides an option to enable it at install time, but you can enable it via sp_configure execution as

EXEC sp_configure 'show advanced option', '1'; GO EXEC sp_configure 'user instances enabled','1'; GO RECONFIGURE GO EXEC sp_configure 'show advanced option', '0'; GO

(restart the SQLExpress service)

that can be executed both in SqlCmd.exe (command line tool) or in a SQL Server Management Studio Express query window (or even via an ADO/Ado.Net connection)..

you can have a look at all "configurable" options at http://msdn2.microsoft.com/en-us/library/ms189631.aspx

regards

|||

Hi Andrea.

I have entered your code in the query editor and saved it as SQLQuery5.sql.
SQL server is restarted.

I right clicked in the query editor and hit Execute and get the folloving error:

Msg 233, Level 20, State 0, Line 0
A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

The problem is still there?...

|||

Hi again :)

I right clicked in the query editor and hit Execute again after a while. It works now.

Thanks :)

I can't connect to my local database.mdf file

I have just upgraded to Microsoft SQL Server 2005 Express Edition with Advanced Services SP2.

Now I can't connect to my local database.mdf file.

When trying to open or doubleclick or expand my .mdf file the following message pops up:

Generating user instances in SQL Server is disabled. Use sp_configure 'user instance enabled' to generate user instances.

What is the solution for this problem?

hi,

by default, User Instances feature is disabled when you install a SQLExpress instance.. the Install Wizard provides an option to enable it at install time, but you can enable it via sp_configure execution as

EXEC sp_configure 'show advanced option', '1'; GO EXEC sp_configure 'user instances enabled','1'; GO RECONFIGURE GO EXEC sp_configure 'show advanced option', '0'; GO

(restart the SQLExpress service)

that can be executed both in SqlCmd.exe (command line tool) or in a SQL Server Management Studio Express query window (or even via an ADO/Ado.Net connection)..

you can have a look at all "configurable" options at http://msdn2.microsoft.com/en-us/library/ms189631.aspx

regards

|||

Hi Andrea.

I have entered your code in the query editor and saved it as SQLQuery5.sql.
SQL server is restarted.

I right clicked in the query editor and hit Execute and get the folloving error:

Msg 233, Level 20, State 0, Line 0
A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

The problem is still there?...

|||

Hi again :)

I right clicked in the query editor and hit Execute again after a while. It works now.

Thanks :)