Connecting To An Oracle Databse Server Using SQL Express

Jan 10, 2006

Hello everyone,

 

I am working on a project for a professor. The project entails
designing and creating a database.  We
were given individual space on the schools database server and we were given
SSH secure shell to connect and manage our respective databases.  I took it upon myself to try out SQL Server
Express.  Using the management studio I
am trying to connect to my school database and can€™t seem to figure it
out.  Can someone please give a noob some
simple and quick instructions on how to achieve this?

 

Thank you,

Your Friendly Neighborhood Programmer,

 

This is the SSH product in case any one was interested, ftp://ftp.ssh.com/pub/ssh/SSHSecureShellClient-3.2.9.exe

 

View 1 Replies


ADVERTISEMENT

Error In Connecting To The Databse(sqlserver2000)

Apr 7, 2008

hiam working with VS2005(asp,c#),sql server2000.
i uploaded my application to the webserver.when i try to interact with database in my webpages.it is giving error
error:An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid)
 
actually am using   sqlserver2000,but it is giving error regarding 2005.how can i resolve this.
my web.config settings are like this.. 
<?xml version="1.0"?><!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
WindowsMicrosoft.NetFrameworkv2.xConfig
--><configuration>
<appSettings>
<add key="cn" value="User ID=redot;Password=redot;Data Source=216.185.43.148:8077;Initial Catalog=redot" />
 <!--<add name="redotConnectionString" connectionString="Data Source=REDOT;Initial Catalog=redot;Integrated Security=SSPI" providerName="System.Data.SqlClient"/>-->
 
 <!--<add key="smtpServer" value="smtp.mydomain.com" />-->
</appSettings><connectionStrings>
<!--<remove name="LocalSqlServer"/>--><!--<add name="ConnectionString" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot; Password=redot"providerName="System.Data.SqlClient" />-->
 
<add name="redotConnectionString" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot;Password=redot"providerName="System.Data.SqlClient" />
<add name="redotConnectionString1" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot;Password=redot"providerName="System.Data.SqlClient" />
<add name="redotConnectionString2" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot;Password=redot"providerName="System.Data.SqlClient" />
<add name="redotConnectionString3" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot;Password=redot"providerName="System.Data.SqlClient" />
<add name="redotConnectionString4" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot;Password=redot"providerName="System.Data.SqlClient" />
<add name="redotConnectionString5" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot;Password=redot"providerName="System.Data.SqlClient" />
<add name="redotConnectionString6" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot;Password=redot"providerName="System.Data.SqlClient" />
<add name="redotConnectionString7" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot;Password=redot"providerName="System.Data.SqlClient" />
<add name="redotConnectionString8" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot;Password=redot"providerName="System.Data.SqlClient" />
<add name="redotConnectionString9" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot;Password=redot"providerName="System.Data.SqlClient" />
<add name="redotConnectionString10" connectionString="Data Source=216.185.43.148:8077;Initial Catalog=redot;User ID=redot;Password=redot"providerName="System.Data.SqlClient" />
</connectionStrings><system.web>
 
 
 
 <sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=216.185.43.148:8077;User ID=redot;Password=redot;Trusted_Connection=True"cookieless="false" timeout="60"
/>
<compilation debug="true" />
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user. -->
 
 
 <!--<customErrors mode="Off"></customErrors>-->
<!--<customErrors mode="On" defaultRedirect="error.aspx"/>--><!--<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />-->
 <customErrors defaultRedirect="http://seafarersjobs.com/errorStatus.htm" mode="On">
 <error statusCode="404" redirect="filenotfound.htm" />
</customErrors></system.web>
<system.net><mailSettings>
<smtp><network host="216.185.54.55" port="25" />
<!--password="123456" userName="redot"--></smtp>
</mailSettings></system.net>
</configuration>
 
 
 
 
can anyone help me ASAP ..pls
 
 
Thanks
Shobha

View 4 Replies View Related

Deploy SSIS Package To Production Which Has A Connection To Oracle Databse

Aug 14, 2006

Hi There,

In SSIS package development environment, I was able to connect to an oracle database and pull data into my sql server database. I installed the client tools for oracle and I put an entry into the tnsnames.ora and I was able to connect.

But in production environment, if I deploy the package on sql server, I was wondering if I had to do the same job of downloading the oracle client tools onto my production machine --which creates a tnsnames.ora file to it default location and then edit it with tthe tns entry-- or is there a better way to do this--avoiding the download?

Can somebody plzz help me ?

Thanks.

View 10 Replies View Related

Issues Using Parameterised Reports Connecting To Oracle Using ODBC And Microsoft OLE DB Provider For Oracle

Sep 12, 2007

I have an issue using parameterised reports connecting to Oracle using "ODBC" and "Microsoft OLE DB Provider for Oracle" using parameteried reports. The following error is generated "ORA-01008 not all variables bound (Microsoft OLE DB Provider for Oracle)" and a similiar one for ODBC. It works fine for simple reports. Do these 2 drivers have issues passing parameters for a remote Oracle query?
Thanks.

View 4 Replies View Related

Connecting SQL Server With Oracle Forms 9i/10g

Dec 7, 2007

Could anyone please guide me in detail to connect Oracle Forms 9i/10g with MS SQL Server database?

To connect with Oracle Database, we need to copy and paste the tnsnames.ora file from the Oracle Database folder to the Oracle Forms folder.

But how do i connect with other databases like SQL Server, MS Access, and so on?

Thanks in advance.

View 6 Replies View Related

Connecting SQL Server With Oracle Forms 9i/10g

Dec 7, 2007

Could anyone please guide me in detail to connect Oracle Forms 9i/10g with MS SQL Server database?
To connect with Oracle Database, we need to copy and paste the tnsnames.ora file from the Oracle Database folder to the Oracle Forms folder.
But how do i connect with other databases like SQL Server, MS Access, and so on?
Thanks in advance.

View 3 Replies View Related

Connecting To Oracle From Windows 64bit IA Server

Jan 23, 2007

I am trying to pull data from an Oracle 9i database to my SQL Server 2005 sp1 database on Windows 2003 64bit Itanium server. Each time I try to use the import wizard, select the Microsoft OLE DB driver for Oracle, I get an error message telling me that the Oracle client tools are not installed. This happened after I had already installed the 9i tools, tested the connection using TNSPING and confirmed the tnsnames file was correct. So, I uninstalled the 9i tools and then installed the 10g client tools. Tested everything after the install and then tried the import again selecting the MS OLE DB driver for Oracle. I again got the error message that the Oracle tools were not installed.

has anyone ran into this problem and if so, were you able to fix it?

 

View 2 Replies View Related

Connecting To Oracle 9i Server Using ODBC From An SSIS Package

Sep 7, 2006

I am trying to connect to a Oracle 9i Server to execute a sql task, but the connection when tested seems to fail with the following error from the Integration Services Project:

Test connection failed because of an error in initializing provider. ERROR [NA000][Microsoft][ODBC driver for Oracle][Oracle]ORA-12541: TNS:no listener

ERROR[IM006][Microsoft ODBC Driver Manager] Driver's SQLSetConnectAttr failed

ERROR[0100][Microsoft ODBC Driver Manager] The driver does not support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).

The connection was configured and tested from Oracle's SQLPlus session. Please note that the port that the TNS Server is listening is not the default. Is there somewhere I can specify the port in the SSIS connection manager to resolve the issue.

I have tried OLEDB connection and that does not work either.

Any inputs will be appreciated.

Thanks,

Monisha

View 6 Replies View Related

Connecting VB Express Files To SQL Server Management Studio Express

Aug 23, 2006

Really confused ... I created 2 tables in a VB Express program (which went well). Problem is that I can't see/find those tables with MSME. I don't really understand how to connect the MSME to where the tables are. I created the tables under My DocumentsData and they are DBapp.mdf + DBapp_log.LDF and the tables are Items and Preferences. The VB application can "see" the tables OK.

Do I need to move the tables to C:Program FilesMicrosoft SQL ServerMSQL.1MSQLDATA (like the Adventureworks installation which I haven't done) or what?

Please help a newbie

Thanks

George

View 3 Replies View Related

Problem Connecting To Oracle Using Sql Server 2005 Reporting Services

Sep 3, 2007



Hi,
I'm new to SSRS but have a problem connecting to Oracle. I have placed my reports upon a reporting server but the shared data connection isn't working and I'm confused as to why. I have specified the name, connection type as "Oracle", set the correct user id and password for the credentials and the connection string as for example 'Data Source=oracleExample;Unicode="True"'. I also have set the correct entry in the tnsnames.ora file for this datasource, example:
"oracleExample =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 12.23.45.23)(PORT = 3425))
)
(CONNECT_DATA =
(SID = oracle)
)
)"
Unfortunately I receive the following error when trying to connect.
"

An error has occurred during report processing.

Cannot create a connection to data source 'oracleDataSource'.


For more information about this error navigate to the report server on the local server machine, or enable remote errors


"

I'm mystified as to what the issue is. Any ideas? Would restarting the report server pick up the tnsnames.ora file? I have this working locally using report designer.
Any help, much appreciated.

View 4 Replies View Related

ISSUE WHILE CONNECTING TO ORACLE SOURCE WITH 64 BIT Processor SQL SERVER SSIS

Nov 1, 2006

Hello All,

I have a unique problem while connecting to oracle source with a 64 bit processor. I can connect to the oracle from the command prompt in the 64 bit processor but not from SSIS.

The acutal problem is, when check the properties of the connection manager and provide a provider for oracle, and then provide username and password and click on test connection. I get the following error:

"Test Connection failed because of an error in initializing provider.ORA-06413: Connection not open"

Regards,

Raju



View 3 Replies View Related

Connecting To SQL Server 2005 Express In LAN Using C# Express

Jan 14, 2006

I tried to connect to SQL server 2005 express in LAN Using C# express

I got this msg
the file \blablabla\blablabla.mdf is on a network path is not supported for database file.An Attempt to attach an auto-named database for file \blablablalablabla.mdf failed. a database with same name is exist, or specified file can not be opened, or its located on UNC share.
 
Is that mean :
I can not connect to SQL server remotly using express edition of C#
SQL server dosen't support connection in LAN
 
I tried to set all options like enable TCP IP connection and networks
 
by the way
 
The data has unquie name and it is located in shared folder and I can easly to connect to database like access with no problem
 
I will be thankful if you can help me

View 11 Replies View Related

Exceeding SQL 2005 Express' 4GB Databse Size Limit...

Sep 5, 2006

Okay, I know the maximum size limit on a database in SQL 2005 Express is 4GB, but what happens when you exceed that limit? I can't seem to find much info on that topic. What kind of error return would you get from a stored procedure attempting to do an insert that will exceed the 4GB limitation? Also what factors go into that maximum size, factors that might not be completely obvious of course?

View 1 Replies View Related

Connecting To SQL Server Express

Feb 20, 2006

Dear all,

I have SQL Express 2005 - installed in Windows XP and I want to connect SQL Express using VB .NET. Kindly explain me the methods & steps to connect.

Note : While connecting using Ms-Access database - No error shown.
But while connect to SQL Server (SQL Express) I am getting the following error message.

"It is only possible to connect to SQL Server Desktop Engine databases and mirosoft databases with this version."

I am using VB .NET standard Version- But while running samples - I am referring SQL Server - It is connecting perfectly without any error.

KINDLY HELP ME to solve this problem.

thanks.
venki Rao

venki

View 1 Replies View Related

Connecting To Sql Server Express From A AMD 64

Jan 21, 2008

I have a small networked application, using sql server 2005 express. I am using datalinks and I have configured the TCP/IP to 'Enabled' on the server and I have configured the firewall. I have one computer connecting to the database through sql authentication (using a specific name and password). However I have another machine, using the same configurations, but it has a AMD 64 processor. I get the "Sql Server does not exist or access denied" message.

I would greatly appreciate assistance.

View 3 Replies View Related

SQL Server Express And Oracle

Nov 21, 2006

Can sql server express and Oracle be installed on the same machine.What possible problems can I expect ?

View 2 Replies View Related

Problem Connecting To Sql Server Express

Sep 6, 2006

Hi Guysi have a problem with my asp.net 2.0 application, I'm trying to connect to sql server database but it gives the following error: System.Data.SqlClient.SqlException: Cannot open database &quot;MyDatabase&quot; requested by the login. The login failed.Login failed for user 'MyserverASPNET'.Before i had my application on File System and it was connecting fine, now I moved it to IIS and it doesn't work anymore.Connection at Web.Config file :configuration><appSettings><add key="ConnectionString" value="server=(local)SQLEXPRESS; Trusted_Connection=true; database=MyDatabase"></add></appSettings><connectionStrings/>How do i create login for that user?Thanks

View 2 Replies View Related

Error In Connecting To SQL Server Express

Feb 27, 2007

Hello,
I'm a newbie who is trying to create a connection to the server in my website application and I keep getting the following error:  An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server).  I enabled TCP/IP and Pipe in the configuration and restarted the engine and server but I still get this error and it's stressing me out.  Below is the code for the app.  Any help would be greatly appreciated. Thanks
 
Imports System.Data
Imports System.Data.SqlClient
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
' Create the database Connection
Dim conn As New System.Data.SqlClient.SqlConnection( _
"Server=Main;" + _
"Integrated Security=True;" + _
"Database=ShoppingCartData;" + _
"AttachDBFilename=" + _
"C:DOCUMENTS AND SETTINGSTONYAMY DOCUMENTSVISUAL STUDIO 2005WEBSITESADOAPP_DATAADO.MDF")
 
' Create the Data Adapter with the required SELECT statement
Dim Adapt As New System.Data.SqlClient.SqlDataAdapter("SELECT * FROM Products", conn)
' Create the dataset with the required information
Dim dsADO As New System.Data.DataSet()
Adapt.Fill(dsADO)
Dim DR As DataRow()
' Define the Table
Dim ProdTbl As New Table()
' Create content for the Web Page
For Each DR In dsADO.Tables(0).Rows
'Create a new table row.
Dim ProdRow As New TableRow()
'Create a cell within the row.
Dim ProdCell As New TableCell()
'Define content for the Cell
Dim ThisLink As New HyperLink()
ThisLink.NavigateUrl = "Products.aspx?ProdID=" + _
DR("ProductID").ToString()
ThisLink.Text = DR("ProductNme").ToString()
ThisLink.ID = DR("ProductID").ToString()
'Add the content to the cell and the cell to the row. Place the row in the table
ProdCell.Controls.Add(ThisLink)
ProdRow.Controls.Add(ProdCell)
ProdTbl.Controls.Add(ProdRow)
Next
'Add the table to the Place holder.
phProducts.Controls.Add(ProdTbl)
End Sub
End Class

View 3 Replies View Related

Connecting To SQL Server Express In VS2003

May 23, 2006

Hi,
Please assist with the following.
 
How do I connect to SQL Server Express in VS2003?  "Do I still use using System.Data.SqlClient;"?
What would the connection string be in the code? The following does not work.
 try   {    string connectionString = "server=localhost;uid=webserver;pwd=wordpass;database=dbMV;";    // create a new SqlConnection object with the appropriate connection string         SqlConnection sqlConn = new SqlConnection(connectionString);       // open the connection      sqlConn.Open();    // do some operations ...    // close the connection    sqlConn.Close();   }   catch(Exception err)   {    Response.Write(err);   }

View 1 Replies View Related

Connecting Remotely Using SQL Server Express?

Dec 9, 2006

I'm new to MSSQL. At my work place, I'm using MSSQL and using SQL Query Analyzer to run queries and view all my database tables and structures.

Now, I can work remotely at home for the time being. So, how do I get SQL Query Analyzer and be able to connect remotely to my database at work?

I've downloaded SQL Server 2005 Express and it comes with SQL Server Management Studio, which looks similar to SQL Query Analyzer. The problem is though, how would I remotely connect to my database server at work? Is it possible to do this using SQL Server 2005 express?

One thing I was advised to do was configure the TCP/IP Port number from 1433 to 1435. However, I do not see an option to configure that nor do not know how to connect remotely (I do have the IP, User, and Pass).

View 1 Replies View Related

Connecting To SQL Server Express Via ASP (classic)

Aug 31, 2007

Hi All,

I'm having trouble getting at SQL Server 2005 Express via ASP code.

I'm using the following connection string in my ASP code:

Set objConn = Server.CreateObject("ADODB.Connection")
objConn = "Provider = SQLNCLI;" & _
"Data Source = .SQLEXPRESS;" & _
"Initial Catalog = myDB;" & _
"User ID = DB_reader;" & _
"Password = a#koddkobn5;"

I keep getting the error:

Microsoft SQL Native Client (0x80004005)
Login failed for user 'DB_reader'. The user is not associated with a trusted SQL Server connection

I have made sure that the user exists in SQLEXPRESS and that server Security is set to SQL Server and Windows Authentication mode.

Can anyone think of anything I'm missing or that I should try?

We've lost our SQL Server admin and I'm trying to develop locally using Express while we hunt for a new admin.

Thanks so much for any assistance you have time to offer.

Very best,

Thom Cox

View 9 Replies View Related

Connecting To SQL Server 2005 Express

Feb 15, 2007

I am having major issues connecting to SQL Server 2005 Express from Visual Basic 2005 Express, which I have tried on multiple PCs but to no avail. Can somebody please explain to me what I'm doing wrong?

1) I install SQL Server 2005 Express and Visual Basic 2005 Express (With .NET framework and SQL native client of course)
2) I open SQL Server using Management Studio and going in with windows authentication. It automatically sets the log on name to computernameSQLEXPRESS.
3) I create a new database called Test and add one table to it
4) I go into Visual Basic 2005 and create a new project.
5) I go to the projects application settings (Properties - Settings).
6) I set up a new connection string, choosing SQL server as the conection type and then on the Connection Properties window it asks me to select the mdf file for the database. I choose the file Test.mdf from the directory C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLData
7) I click on Test Connection.

When I do this on two out of the three home PCs I get the error:
Unable to open the physical file "C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDataTest.mdf".Operating system error 32: "32 (error not found)".
An attempt to attach an auto-named database for file C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDataTest.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

The third PC gives me a different error:

Cannot open user default database. Login failed. Login failed for user 'DAVEDavid'.

I get the same errors when I try to use a connection string inside the code directly. Does anyone have a clue as to why these errors are occuring? Do I need to set up security or something else on the database first, or is there another reason? If anyone can please help me get to the bottom of this or provide a web address where I can get the answer (step by step instructions on how to connect) then I would be most grateful.

View 5 Replies View Related

Connecting To SQL Server 2005 Express Using IIS 6.0

Oct 12, 2006

Hello,

I can connect to amachine using SQL server 2000 using IIS 6.0. However, I am having trouble connecting to my server that has SQL server express using IIS 6.0. I'm using similar setting for both servers. Is there something else i have to do for SQL server express?

I'm not sure why this is the case. Any information that could help resolve this failed connection would be greatly appreciated.

Thank you.

Burhan

View 2 Replies View Related

Problem In Connecting To Sql Server Express

Dec 28, 2006

Hi to all,

i'm installing sql server in my pc as netwrok service.

when i try to connect it, it showing me a error
sql server does not allow remote connections error 26 error locating server/instance (MS Sql server )

how can i resolve this
plz help me out.

it not able to connect the server locally.
when i try to connect it with .SQLEXPRESS or localhostSQLEXPRESS it will connect to the DB
But when i use ServerNameSQLEXPRESS it wont connect to DB what the problem plz help me

with Regards
Amjath

View 13 Replies View Related

Connecting To SQL Server Express From An ASP Application

Aug 31, 2006

I have an ASP application which is currently using a SQL 2000 Database, attaching via SQLOLEDB. I am getting ready to migrate my ASP application to .NET using SQL Server 2005 Express. The only problem, is that I am unable to connect successfully from my ASP applcation to my DB under SQL Express.

I have taken all of the steps that I have read, including the blog by Ming Lu. I still cannot be through.

I have included both the messages that are thrown and comments about the drivers and connection strings.

I have enabled TCP/IP and Named Pipes for SQL 2005 EE. I have also included the executable, port 1433, port 135, etc. in the firewall exceptions.

I have defined the DB in ODBC using both the Native Sql driver and the SQL Driver. Connection authentication is via SQL Server Authentication.

If anyone has any input, I would be grateful.

Error Messages:

Named Pipes Provider: Could not open a connection to SQL Server [53]. - using SQLNCLI - SQL Native Driver

::[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. - using SQLOLEDB - SQL Native Driver

::[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. - using SQLOLEDB - SQL Server Driver

Named Pipes Provider: Could not open a connection to SQL Server [53]. - using SQLNCLI - SQL Server Driver

connection string for SQLOLEDB: "PROVIDER='SQLOLDEB';DATA SOURCE='.SQLEXPRESS';User ID='Abilities2005';Password='abilities';Initial Catalog='nbdc2005';"

connectdion string for SQLNCLI: "PROVIDER='SQLNCLI';DATA SOURCE='.SQLEXPRESS';User ID='Abilities2005';Password='abilities';Initial Catalog='nbdc2005';


source name varied from .SQLEXPRESS, localhostSQLEXPRESS and machinenameSQLEXPRESS



Thanks, Tom

View 8 Replies View Related

Connecting To A Remote Server, Sql Express 2005

Jan 7, 2008

Hi. Im trying to get a asp.net web aplication to write data to an sql express server located on another server. However when i try to connect with VS 2008 it says: "Named pipes provider, error 40: - Could not open a connection to SQL server".
What do i need to do to get this to work. Do i have to set something in the sql server, and i assume i have to open some ports in my firewall aswell?
Any help sugestions would be aprichiated

View 1 Replies View Related

Connecting Sql Server 2005 Express Beta

Sep 26, 2004

How do you connect to sql server 2005 express beta when using asp.net

View 1 Replies View Related

Error Connecting To Sql Server 2005 Express

Feb 15, 2006

Just manged to install sql server 2005 express after two days.  I have a problem now!  When i try to connect to it via my browser (local database), i get the following error:
An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I have opened the surface area configuration manager and set the connections to remote and local but it still doesnt work
 
Any ideas would be great
Paul

View 2 Replies View Related

Connecting To Sql Server 2005 Express From Three Projects

Jun 7, 2006

    HiI have set up a solution in Visual web developer 2005 express which is made up of three projects:Website(this is the solution)Admin (Sub directory of website)members (Sub Directory of Website)All three projects need to share the same database. However for devlopment purposes I only have Sql Server 2005 Express. Is this possible?Any pointer would be great.Thanks in advance

View 8 Replies View Related

SQL Server Express And Vista Connecting Issues...

Jul 13, 2007

Alright I glanced over the forums to see if there was an answer for this and I didn't see one. I saw a few similar issues however nothing that fixes my issue. Here is my problem.



I installed SQL Server 2005 Express on my Vista partition along with Visual C# Express. For some reason I cannot get the SQL Server 2005 Express to function correctly. Back when installed this on XP it worked flawlessly, and I don't even recall doing anything special...I installed it and it worked. I do know that you have to manually add the user account to the admin list for the SQL server on Vista, and I did that. I chose the option to have it do it during installation as well as through the SQL Server Surface Area Configuration just to be sure.

I am just trying to get the basics of it working right, and that is connecting to the server using C# and filling a dataset...it shouldn't be this hard. This morning when I started with this I could connect and fill my DataSet programmatically however it wouldn't pass the test through the Data Source Configuration Wizard. When I did it manually, as I said it worked and filled the DataSet with the info I asked for below in the code sample. After getting annoyed by it not working through the wizard I decided that maybe I had my permissions wrong and I may have messed up when installing it. So I uninstalled everything to do with SQL Server 2005 and reinstalled it fresh.

This time when I installed it I made sure to set it up to use Windows Authentication. Now it will pass the Test in the Data Source Configuration Wizard and everything is working by doing it that way. However now it doesn't work when I do it manually with the code below(same code as before when it worked...lol). When I use the code below it crashes with the error: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)". When I go through it with the debugger it throws that error at the call dataAdapter.Fill(...). The code is the following:




Code Snippet

string connStr = "server=localhost;Trusted_Connection=yes;database=northwind";

string commandStr = "Select CompanyName, ContactName from Customers";



SqlDataAdapter dataAdapter = new SqlDataAdapter(commandStr, connStr);

DataSet dataSet = new DataSet();

dataAdapter.Fill(dataSet, "Customers");

DataTable dataTable = dataSet.Tables[0];



foreach(DataRow dataRow in dataTable.Rows)

lbCustomers.Items.Add(dataRow["CompanyName"]+

" ("+dataRow["ContactName"]+")");

Why doesn't that work yet I can basically ask for the same information and it will work if I do it through the wizard? If it works 1 way I wouldn't think there could be any issues with the server being accessed remotely, right?



Thanks

Danny B

View 1 Replies View Related

Error Remotely Connecting To SQL Server Express

Sep 8, 2007

I've been trying to configure remote connections to my sql server express to no avail.


First here are some constants to clear some things up:
- OS: Windows XP Pro
- SQL Express version: April CTP release
- Windows Firewall: disabled (to avoid any problems there)
- Network type: two computers connected a router.
- Router firewall: Enabled (I may be wrong but the router firewall only blocks external traffic, so I left it on.)


First, I configured my SQL server to allow remote connections in the SQL Surface Area Configuration. (Set it to both TCP/IP and named pipes)


Second, I enabled and configured sql server browser.


Third, I enabled TCP/IP and named pipes in the 'Protocols for SQL Express' option of the SQL Server Configuration Manager.


According to http://blogs.msdn.com/sqlexpress/archive/2005/05/05/415084.aspx
I have done everything I need to (including edit the registry to enable the SQL Server Browser service) and the error I continue to get is:


"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)"


So I tinkered and had no success in messing with anything that would fix it. Although, ***when I browsed for network servers on different machine, the server instance DID show up in the list***. So I find it odd that it can find the instance when browsing, but fails to 'find' it when making a connection.


So I didn't stop there, I decided to try the non-sql server browser method of remotely connecting: specifying the IP.

I went back to the blog of instructions referenced above and re-did the steps, this time specifying a TCP Port for the server instance and then after specifying the port on the remote computer connection string, and attempting to connect, I get this error:

"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) (Microsoft SQL Server, Error: 10060)"


I've done all I know how, read all the possible blogs I can, and nothing's come up. If anyone can shed some light on me, I'd pay you 1 billion pretend dollars. Any help would be appreciated. Thank you!

View 2 Replies View Related

Problem Connecting To SQL Server 2006 Express

Mar 18, 2007

I have been trying literally for months to get SQL Server 2005 Express to work on my Dell Dimension WinXPPro machine. I have installed and reinstalled both the server and the 'Management System'. I have shut down and restarted all of the related Local Component Services on my machine (with the exception of the SQL Server Active Directory Helper which will not start ??).

I have reviewed much of what is in this Forum related to SQL Server 2005 Express and I find that many have had similar problems. When a connection is attempted, the following message or some minor variation appears:


An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)


In desparation, and at the suggestion of one of this forum's moderators, I went to try to download the SQL Server 2005 Express, Service Pack 2. I threaded my way through what I felt was an unecessarily complex set of links and finally reached a download site - but it was unclear whether or not the service pack was for SQL Server 2005 or the Express version. Giving up in dispair, it turn to you (once again BTW, I received no real help with this same question about a month ago).

Even though I seriously doubt if anyone will help me, I am willing to give it another try - mainly because I am home sick with the flu and having nothing better to do on a Sunday afternoon.

Thanks

View 6 Replies View Related

Problem Connecting Ti Sql Server Express 2005

Mar 29, 2006

When trying to connect to sql server express edition remotely, I get the error:

[DBNNETLIB][connection open (connect())]SERVER sql not found.



Thanks.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved