Connecting to SQL
Solved/Closed
Related:
- Connecting to SQL
- Oracle sql datediff - Guide
- Agptek mp3 player not connecting to computer - Guide
- Sql dbx - Download - IDE
- How to recover instagram account connected to facebook - Guide
- Ps4 controller not connecting - Guide
5 responses
Here is the solution :
those who use combination of Windows XP and SQLExpress and have not installed sql-server engine on system should add the /sqlexpress to end of server name string
those who use combination of Windows XP and SQLExpress and have not installed sql-server engine on system should add the /sqlexpress to end of server name string
pls u go to property n see the server name then u find there the server name like
your pc name\SQLEXPRESS
u copy this name and paste it in the web config file of your asp.net framework as
<connectionStrings>
<add name="this name is as your wish" connectionString="server=your pc name\\SQLEXPRESS; catalog= your database name;SSPI=true; providerName="System.Data.SqlClient" "/>
</connectionString>
this section comes under <appSettings/>
then u call this string connection in ur aspx.cs code file as
// Create the Connection object.
string connectionString =
WebConfigurationManager.ConnectionStrings["this name is as your wish"].ConnectionString;
SqlConnection con = new SqlConnection(connectionString);
then u open the connection and use for your purpose and make sure that u close the connection after use
your pc name\SQLEXPRESS
u copy this name and paste it in the web config file of your asp.net framework as
<connectionStrings>
<add name="this name is as your wish" connectionString="server=your pc name\\SQLEXPRESS; catalog= your database name;SSPI=true; providerName="System.Data.SqlClient" "/>
</connectionString>
this section comes under <appSettings/>
then u call this string connection in ur aspx.cs code file as
// Create the Connection object.
string connectionString =
WebConfigurationManager.ConnectionStrings["this name is as your wish"].ConnectionString;
SqlConnection con = new SqlConnection(connectionString);
then u open the connection and use for your purpose and make sure that u close the connection after use
if we work in sql server , the server name will be the same as the
name if the host computer . that u can see in properties windows
like
name if the host computer . that u can see in properties windows
like
I had the same prob. - All blogs had the same deadend solutions. I finally got it fixed with the following.
I am using SQL2008...
I added the sql server port to the connection string:
Server=YourSQLSRVR,10000;Database=YourDatabase;User ID=User;Password=?????????
I am using SQL2008...
I added the sql server port to the connection string:
Server=YourSQLSRVR,10000;Database=YourDatabase;User ID=User;Password=?????????
Didn't find the answer you are looking for?
Ask a question
Hi All,
There following possibilities.
1. Your SQl Browser is off
2. Protocols under SQLServer Configuration Manager > SQL Server 2005 Network Configuration > Protocols for SQL Express like TCP/IP, Named Pipes are disabled.
Resolution.
Just Start SQL Browser.
Enable the Protocols.
Restart SQL Express service.
This might resolve the problem
Thanks,
A Bright Worker
There following possibilities.
1. Your SQl Browser is off
2. Protocols under SQLServer Configuration Manager > SQL Server 2005 Network Configuration > Protocols for SQL Express like TCP/IP, Named Pipes are disabled.
Resolution.
Just Start SQL Browser.
Enable the Protocols.
Restart SQL Express service.
This might resolve the problem
Thanks,
A Bright Worker
Jun 25, 2010 at 05:20 AM
Jul 22, 2010 at 01:04 PM
Dec 25, 2012 at 07:22 AM
so enjoy using whatsapp.................