Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Probelm Accessing Sql Instance


Hi , I just put my files up on a web server. I can view my aspx pages..but when I try to login to the website I get the following;
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)

Can you help? I can understand that it cannot find the specified instance of sql server, however I don't remember ever configuring it look to at a specific sql server. When i created the site in web dev express edition and added the login controls and set the asp config tool to use internet security it created the database itself and so I didn't have to put  a connection string in. I also cannot see a connection string in tthe web.config file.

The aspnetdb.mdf file is there on the server. is this something i need to configure with the hosting company or do i set it in my webconfig file.

Thanks




View Complete Forum Thread with Replies

Related Forum Messages:
Accessing A Remote SQL Instance
Post moderated by XIII, please leave out the "irrrggent" in the subject line:
i'm using a SQL Server 2000.now want i want is to make one of the machine on my local networkMachine one: i've installed the SQL Server 2000 with these settings1) Use Local System2) MixMode (Use Windows Authentication and SQL Server Authentication)USER ID = saPassword = saFrom Machine tow which has the program: the connection string is:<<< Me.SQLConnection_Search.ConnectionString = "packet size=4096;integrated security=SSPI; Persist Security Info=true; data source= "the name of the instance on Machine ONE"; user id=sa; password=sa; initial catalog=DBNEW; Server="Machine One Name">>>>>>>when i connect --> "connect faild to MachineOneGuest"when i changed the SERVER to SERVER = "Machine One NameUser Account of the windows"this message appear : "SQL Server does not exist or access is denied"So what can i do.??????

View Replies !
How Can I Prevent My Co-Workers From Accessing My SQL Instance..
Hi all
In our office we have simple Network (LAN) and for some reason in each workgroup Computer in this network we have installed SQL-Server 2000.
So far everything was ok but recently i noticed that my co-workers can easily access my Sql Server Instance through their Enterprise manager installed on their computers and then they can open my tables,view...and manipulate other objects.
for better illustration i have created a Flash Movie from this process , please check the following Link :
 http://www.Parsisoftco.com/movie/Sql/Sql.htm
How can i prevent others from doing so?
Any help greatly Appreciated.
Kind Regards.

View Replies !
Accessing SQL2005 As A Second Instance To SQL2000
I'm having trouble accessing SQL2005 Standard Edition as a secondinstance of SQL Server where the first instance is SQL 2000 EnterpriseEdition. I installed SQL 2005 as a named instance "SQL2005". Theserver is running Windows 2000 SP4 ON A 32-Bit machine. When I look inServices I see the SQL Server (SQL2005), SQL Server Agent (SQL2005)services there. I went into SQL Server Configuration manager anddisabled the named pipes protocol and only have TCP/IP and by defaultShared Memory enabled to rule out that named pipes is causing theproblem. In SQL Server Configuration Manager I created an alias"computername$SQL2005" and was able to connect to database engine"computernameSQL2005" through SQL Server Management Studio WHILE ONTHAT BOX.But when trying to access the 2005 instance from another server(64-bit Windows 2003 SP1) I'm having trouble. On the 64-bit machine Idisabled the named pipes protocol for both "SQL Native ClientConfiguration (32-bit)" and "SQL Native Client Configuration". Under32-bit I created the alias "machinename$SQL2005" to point to the IPaddress of the 32-bit machine. In SQL Server Management Studio whentrying to connect to the database engine "machinename$SQL2005" itdefaults to the SQL 2000 instance. How do I access the SQL2005instance from a remote server?Any help would be appreciated.Mike

View Replies !
2 Instance Accessing Same Physical Db File In A/A Cluster
hi,
 I have 2 nodes, both active in windows 2003 cluster. both nodes have sql 2005 installations (master db & bin in local  drives) with same instance name.
Now my production db physical files are on a shared disk.
I attached these files to my sql 2005 instance from node 1. then i took this node offline & attached same physical files from node 2.
Now when the failback happens, i get an inconsistency error from my client app.
can anyone help me achieve this ?? 2 nodes accessing same mdf file but only one at a time. Is there any architectural issue which wud prevent me from achieveing the ACID properties ?
 its ok if i have to manually run some batch file to trigger instance on/off.

sql clustering/db mirroring/ replication is the last option for me.

thanks in advance

View Replies !
Probelm With Transaction
hi,I wrote this sp :CREATE PROCEDURE ins_AddOrder( @CartId NVARCHAR(50), @CustomerId INT, @OrderDate DATETIME, @OrderId INT OUTPUT)AS
DECLARE @ins_error INT, @sel_error INT, @var_rowcount INT
BEGIN TRAN AddOrder
INSERT INTO tbl_orders( customerId, orderDate)VALUES( @CustomerId, @OrderDate)
-- SET THE @@ERROR VALUE TO @ins_errorSELECT @ins_error =@@ERROR
/*IF INS_ERROR != 0BEGIN ROLLBACK TRAN RETURNEND*/
SELECT  @OrderId = @@identity
INSERT INTO tbl_orderDetails( orderId, productId, quantity, productPrice)SELECT  @OrderId, tbl_product.productId, quantity, tbl_product.productPriceFROM tbl_shoppingCartINNER JOIN tbl_product ON tbl_shoppingCart.productId = tbl_product.productIdWHERE  cartId = @CartId
-- SET THE @@ERROR VALUE TO @sel_errorSELECT @sel_error = @@ERROR
-- SET THE @@ROWCOUNT TO @var_rowcountSELECT @var_rowcount = @@ROWCOUNT
IF  @sel_error <>  0  OR  @var_rowcount = 0 BEGIN  ROLLBACK TRAN AddOrder  RETURN ENDELSE BEGIN  EXEC del_EmptyShoppingCart @CartId  COMMIT TRAN AddOrder ENDGOIn the last few lines i try to prevent adding new row to tbl_orders (first statement), while the SELECT (second statement)  does not return any row .It still not work.Can anyone help please?thanks.

View Replies !
Sql Operator(OR) Probelm
strsql = " select * from dic where english='" & SearchBox.Text Or TextBox4.Text & "'"The machine said Input string was not in a correct format. How can i select database with or operator in asp.net .Is it possible to select database in sql from more textbox ?

View Replies !
Logging Probelm
Hi

We have SQL Server 2000 and the database named CP with the User CPAdmin. CPAdmin this user owns all the objects in the database. Yesterday suddenly, we are unable to access the objects directly.
ie, Select * From tbl1 is not working even though we logged in as the user CPAdmin. If we give like Select * From CPAdmin.tbl1 it's working.

May i know if any of u come across the same porblem and how did u solve it?

Help me!

View Replies !
Sql Login Probelm
I have a login in my sql server with windows authentication.When i tried to connet to the sql server with that login its not allowing me to connect even though I was logged on into my system.What should be the reason and what should i do?

View Replies !
SQL Trigger Probelm
I Have create a trigrer for my table transhd to update something in my detail table..

when i updated one record the trigger works fine..

but when i run command to update a batch of record in header
using command [update XXXX where cont] the trigger only fire for the last record in the batch..

is this the ms sql default behavior.. anyway to the around it

thanks in advance

View Replies !
SQL Trigger Probelm
I Have create a trigrer for my table transhd to update something in my detail table..

when i updated one record the trigger works fine..

but when i run command to update a batch of record in header
using command [update XXXX where cont] the trigger only fire for the last record in the batch..

is this the ms sql default behavior.. anyway to the around it

thanks in advance

View Replies !
DTS DBTIMESTAMP PROBELM
I am using DTS wizard to import a table from Access 97. There is one field in this table with a data type of Date/time in Access. I have imported
data from this table several times in the past before applying SP1. Recently, I am having the following error and the import fails. There are a lot of people experiencing the same problem.( I am refering here to another news groups).

There is no Timestamp data type in my SQL Server table.

The error is

error at destination row number 97701, errors encountered so far in this task, 1, insert error, column 3('next_call', DBType_DBTIMESTAMP), status 6,
data overflow. Invalid character cast specification.

I even created another table but gives me the same message.I also droped the column with data type smalldatetime and recreated but with no luck ?

Any ideas ???

View Replies !
A Probelm With SqlConnection Command ....
I have met a problem in the ASP.NET project creation with SQL Server Database Connection.
"Can't Login to My ServerName/ASPNET
How to solve the problem?

View Replies !
Probelm In Installing Mysql On Win Xp M/c
hello ![color=blue]>>> I am trying to intstall Mysql binary version with installor in Windows> XP machine . But it is not working . i have installed in the default> path ,in windows service componenet its showing server is running,since> it is mysqld-nt so name-piped servr is also running.>> But still client is able to connect to server.>> when i am tring to instal manually it is showing>> " service already exists;> the currect server intstalled is c:mysqlinmysqld-nt.exe>> when trying to connect to server> C:> c:mysqlinmysql test> ERROR 2003 : cannot connect to MYSQL server on localhost <10061>>> C:> telnet localhost 3306> connecting to localhost.......> could not open connection to host,on port 3306No connection shb ne made> because the target machine actibvely refused it.>> plz help me in installing ,pls clarify the problem.> pls reply soon.>>> regards> Smita[/color]

View Replies !
Probelm Using OleDbCommand::ExecuteReader
Hi,

I am trying to use the ExecuteReader() method of the OleDbCommand class to read the schema of a given table. The following works, but results in columns that I don't need:

cmd.CommandText = String.Format("SELECT * FROM [TableName]");

When I change it to the following:

cmd.CommandText = String.Format("SELECT ColumnName, ColumnOrdinal, ColumnSize, DataType FROM [TableName]"

I get an error indicating "No value given for one or more required parameters."

What parameters are required for a SELECT command and how do you write them?

Thanks,
Royce

View Replies !
MS Sql Server 2K Replication Probelm
Hi all

I have 2 sql server and I had configured them for merge replication, I removed replication without unsubscribtion of the subscribers and now when I want to set replication again it responded error 21045 rhat showed database is previusly configured for replication. There are tables for replication in the database such as MSmerge_altsyncpartners , MSdynamicsnapshotviews and MSdynamicsnapshotjobs and I cannot remove them. A program works with his database so it's name is important and I couldnt detach or rename it cause it says this db is set for a replication and cannot be renamed and detached. What can I do.

Please help me. It's very urgent. :confused:

View Replies !
Probelm Using For Each Loop Container
 
We have a config table which has columns like pollingfolder, cop to folder etc.
Data looks like this
 Config id polling folder
1                     d:dataloadacn
2                     d:dataloadship
 under ACN and Ship folders we can have more than 1 source files which had to be loaded into target
the load process has to be repeated for each file in all the folders like ACN and ship
 I have used for each loop container to poll the folder.
Can we set the directory to be polled at runtime taking from config table.
 For doing this I have used the property Directory in expression editor of for each loop. But it is not working.
If I hard code the variable value in variables section , then its working.
 How to change the directory to be polled value at runtime?

View Replies !
Probelm With Export To Excel
I had installed SQL server 2005 4 bit version. I created on SSIS package through export wizard.

the SSIS packages will transfer data from database to Excel file. But it is giving the below error.

Message
Executed as user: XXXXXSYSTEM. ... Utility  Version 9.00.3042.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  07:00:00  Error: 2008-05-14 07:00:00.51     Code: 0xC0202009     Source: Interface Connection manager "DestinationConnectionExcel"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040154.  An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".  End Error  Error: 2008-05-14 07:00:00.51     Code: 0xC00291EC     Source: Preparation SQL Task Execute SQL Task     Description: Failed to acquire connection "DestinationConnectionExcel". Connection may not be configured correctly or you may not have the right permissions on this connection.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  07:00:00  Finished: 07:00:00  Elapsed:  0.344 seconds.  The package execution failed.  The step failed.


please any one guide me to reolve this issue.

View Replies !
Probelm With Report Charts
 

I have two data sets but from the same data source. I created two different tables from these two data sets. Now I want to include a chart too. But When I insert the chart, it gives a erorr message.
 
The dinfinition of the report/my report name is invalid.
More than one data set, data region or grouping in the report has the name'chart1_seriesgroup1'. data set, data region and grouping names must be unique within a report.
 
 
Does any body know why this happen?
 
Thanks

View Replies !
Character Len Probelm With Executesql
I need to create some tables dynamically using sp_executesql. But the problem is the length of sql string is more the 4000 characters. How can I solve this problem?
Thanks

View Replies !
SQLDataSource Stored Procedure Probelm
Someone, please help me understand:
I have the following code:
Dim conString As String = ConfigurationManager.ConnectionStrings("WebAllianceConnectionString").ConnectionStringDim dsrc As New SqlDataSource()dsrc.ConnectionString = conStringdsrc.SelectCommandType = SqlDataSourceCommandType.StoredProceduredsrc.CancelSelectOnNullParameter = Falsedsrc.SelectCommand = "sp_GetCustomerInvoiceList"dsrc.SelectParameters.Clear()dsrc.SelectParameters.Add("@QueryType", "DATE")dsrc.SelectParameters.Add("@CustCode", "BAM7")dsrc.SelectParameters.Add("@OrdNumber", " ")dsrc.SelectParameters.Add("@InvStartDate", "1/1/2005")dsrc.SelectParameters.Add("@InvStopDate", "1/31/2005")dsrc.SelectParameters.Add("@PONumber", " ")Return dsrc.Select(DataSourceSelectArguments.Empty)
When this runs, it throws an exception:Prodecure or Function 'sp_GetCustomerInvoiceList' expects parameter '@QueryType', which was not supplied.
I'm confused... I clearly added that using the .Add method?What am I doing wrong?
 

View Replies !
Probelm With Extended Stored Procedure
Hi

Can i be able to use the DLL which is created in VB for Extended Stored Procedures.
if so how?

View Replies !
Probelm Restoring 2000sp1 To 2000 Not Sp1
has anyone had a problem restoring a SQL 2000 without sp1 to a SQL 2000 sp1 box or vice versa? I have had 2 failures telling me to call MS support in the message?

View Replies !
Probelm With Global Variable DataType....need Help
hi everyone,
    How do i declare a global variable in my package which takes a numeric value like User::VAR1 = 200402 and later on work on it

Later in the properties of the Dataflow i want to have this expression..

"select * from " + "TAB1" + " where Date=" + @[User::VAR1]
 
        Here i want to subtract 190000 from @[User::VAR1] to get it in to myformat i.e the DATE format  in the table


I can only see String datatype and othe datatypes wont allow me to to do any kind of manipulation in the expression:
and to be more specific what are
Int16
Int32
Int64
Double

I tried to use all of the above but the expression doesnt allow me as once i use any of the above it says :

 

TITLE: Microsoft Visual Studio
------------------------------

Nonfatal errors occurred while saving the package:
Error at Extract: The data types "DT_WSTR" and "DT_I8" are incompatible for binary operator "+". The operand types could not be implicitly cast into compatible types for the operation. To perform this operation, one or both operands need to be explicitly cast with a cast operator.


Any help would be appreciated..

thanks,
ravi

View Replies !
Probelm With Connection To Databse Engine
Hi,

 

I have the same problem like Ben. Trying to connect to database engine but failed all the time. I use a SQL 2005 Enterprise Eval version. When I connect to database engine, I put <my computer name>SQLEXPRESS, it gives me this message:

 

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) (.Net SqlClient Data Provider)

 

I checked the sqlbrowser and it's running. I also enabled port 1434 in Firewall. But it still doesn't work.  However, when I connect to analysis service using just <my computer name>, it lets me connected. I tried many ways to fix this problem but still no luck.  Could anyone help me solve this problem please? Thanks so much.

 

Carl

View Replies !
How Can I Migrate All Objects Alogwith All Constraints,SP,Triggers Etc From Development Instance To Production Instance
Hi fellows,

I have to migrate all objects alogwith all constraints,SP,Triggers, indexes etc from Development instance to Production instance of a DB, all those things are created through wizard ie.  Sql server 2000 Enterprise Manager. if i use DTS it only mirates data along with tables and views but  constraints,SP,Triggers, indexes etc not yet copied.

can any body  help me how can I solve this problem by copying all objects alogwith all constraints,SP,Triggers etc from Development instance to Production instance.

This is Sql server 2000 Cluster environment.

thanks in advance for any help

rahman

View Replies !
Uninstalling SQL Server 2000 Instance On A Mulitple Instance Platform From Command Line
I have a situation where we need to uninstall a SQL Server 2000 instance from the command line using the REMOVE=ALL option along with the INSTANCENAME option in the uninstall process. This must be done from the command line and not through the operating system.  We will then install a SQL Server 2005 instance to replace the old SQL Server 2000 instance.
 
My question is whether or not performing an uninstall using the mentioned options will "break" other SQL Server 2000 instances on this server or will they continue to function normally?  I know under SQL Server 2005 the REMOVE=ALL option will remove all the shared components and certain instances will be "broken"; does the same thing happen in SQL  Server 2000?

View Replies !
Default Instance Files And Named Instance File Paths
Hello FacultiesWhen SQL2000 is installed as a default instance, all its supportingfiles as installed in MSSQL directory. And after installation as anamed instance, the files are added to the MSSQL$InstanceNamedirectory. If i keep the default instance files on the primarypartition and those of the named instance on another partition, willit cause any trouble? Please help.Thanks in advanceDebashish

View Replies !
Migrating From SQL2K Named Instance To SQL2K5 Default Instance
Hi, I have a task in hand to migrate (upgrade) from SQL2K named instance to SQL2K5 default instance.  There are many intranet applications touching current SQL2K.  I would like to perform this upgrade such that I don't have to touch any application code - meaning I don't have to change the connectionstring to point to new Default instance.    How can I achieve this?

So, in otherwords, here is what I want to achieve:

Current Server: SQL2K: SERVER_AINSTANCE_A (named instance)

Upgraded Server: SQL2K5:  SERVERB (default instance)

If I have both default, I could achive this by setting up DNS alias after migration done so that any call for SERVER_A would point to SERVER_B.   But in my case, I don't have SERVER_A, I have named instance.    Is there any solution?

Regards,

Vipul

View Replies !
How To Move A Single Database From SQL Server Instance To New SQL Instance
Hi,

I want to move one database from the source SQL Server 2000 instance to a new SQL 2000 instance in another machine. I have five user databases in this source SQL instance. How should be my approach to move this single database out of this ? My understanding is restoring this database in the new instance, copying all logins to the new instance and then copying the jobs, DTS packages, alerts, operators only specific to this database will do it. Please let me know if this is exactly what I should do ..

Thanks in advance..

Regards,
Himansu

View Replies !
Named Instance Problems (Default Of 7.0/2000 Instance)
I am trying to set up a Named Instance of SQL 2000 on the same machine that has a default instance of SQL 7.0. The setup always completes and I am able to register the Named Instance of the SQL Server with which it was installed on. However, when I try to connect the users to the database, with both windows and SQL authentication, I receive a SQL server not found error. I have tried an alias setup as well as physically specifying the port number in settup up an ODBC connection.
Has anyone ran into similar problems?
Also, has anyone been able to successfully complete the process as mentioned above?

View Replies !
How To Move A Single Database From SQL Server Instance To New SQL Instance
Hi,

I want to move one database from the source SQL Server 2000 instance to a new SQL 2000 instance in another machine. I have five user databases in this source SQL instance. How should be my approach to move this single database out of this ? My understanding is restoring this database in the new instance, copying all logins to the new instance and then copying the jobs, DTS packages, alerts, operators only specific to this database will do it. Please let me know if this is exactly what I should do ..

Thanks in advance..

Regards,
Himansu

View Replies !
How SQL Server2000 Client Instance And Server Instance Works?
Hi all,

i have installed SQL client instance on my Desktop "Machine-A", and i used to connect to SQLServer2000 running on another "Machine-B" by using valid username and password.

i created a DTS package and i used to run it. im very confused how the communication happens between the two machines and which process run where and which initiates which and which machine allocates waht resources. im really interested to know all these things. if any one know plz help me out.

Thanks in advance.

View Replies !
Move SQL2005 From Default Instance To Named Instance
I have a server with sql server 2005 installed as the default instance -- I have a piece of software that needs SQL2000 to be the default instance. Is there a way other than install new sql2005 named instance and move databases to rename my SQL2005 instance from <machinename> to <machinename>sql05 for example?

Bryan 

View Replies !
Installing A Default Instance AFTER A Named Instance???
I have SQL Server 2000 Standard Edition (sp3a) running on a windows 2003 (sp4) Server.

It is a Production Server with 3 NAMED Instances and NO Default Instance.

Does anyone know if I can rerun the SQL Server Install and add a DEFAULT Instance to this box without disrupting the other Named Instances???

View Replies !
Migrating From Named Instance To Default Instance
I installed SQL Server 2005 recently on a cluster.   I didn't go for the default instance and instead I named the instance option.  Now I would like to migrate everything from the named instance to the default instance, which I haven't yet installed.
 
Is this an easy process?  What about the logins and the maintenance plans and jobs?  Is there anything else I need to be aware of?

View Replies !
Create A Named Instance On Top Of A Default Instance
Hi

I've never had to do this, but when I downloaded the Web Workflow Approvals Starter Kit, it requested that I install the database into a User Instance of .SQLEXPRESS.

Now the problem is, I've installed it onto a default instance, so I was wondering whether you can create a named instance on top of a default instance... and if so, how would you do that?

Cheers

Chris

View Replies !
Single Instance/Multiple Instance/Virtualization Q
I work for a mid size company with the usual collection of enterprise applications. We are trying to consolidate our SQL environment consisting of around 100 databases none of which are over 100GB with the average database size around 5GB. Recently a large server was purchased as the "Big Daddy" SQL box. Obviously not all the databases will be moved to this one box but within reason a number can.

My question: What is the best way to configure the box?

1 OS & 1 Default Instance - How do we isolate loops memory leaks etc...
1 OS & Multiple instances, ie:Dedicated instance for each application. - How do you allocate CPU & memory, allow for optimum performance without putting others at risk from a rouge process?
Virtualized OS for each application with a default instance - Too much overhead impacts performance?

Future plans include offsite replication, perhaps mirroring with failover.

I'd appreciate anyone else's thoughts ideas? How have you tackled this problem in your environment?

Thanks
Scott

View Replies !
Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance - Vista Business
Got windows Vista Business edition, installed Visual Web Developer Express, SQL Server 2005 Express SP2, SQL Server Management Studio SP1 in that order.  I was developing in VWD express without problems using WinXP but now on Vista Business, the local connection to SQL server appears to be a problem.
I know there's nothing wrong with my web.config or anything like that as it was working perfectly prior to running under Vista.  If i specify the database on the live website, it works fine.  If I specify the test database in app_data folder, I get the following exception:-

Server Error in '/UKSD' Application.


Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
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: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.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): Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +736211
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1959
System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +237
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +374
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +192
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +130
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +84
System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +197
System.Web.Security.SqlRoleProvider.GetRolesForUser(String username) +771
System.Web.Security.RolePrincipal.IsInRole(String role) +272
System.Web.Configuration.AuthorizationRule.IsTheUserInAnyRole(StringCollection roles, IPrincipal principal) +120
System.Web.Configuration.AuthorizationRule.IsUserAllowed(IPrincipal user, String verb) +300
System.Web.Configuration.AuthorizationRuleCollection.IsUserAllowed(IPrincipal user, String verb) +191
System.Web.Security.UrlAuthorizationModule.OnEnter(Object source, EventArgs eventArgs) +3509206
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64



Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.312
 
I am taking a guess it's somerthing to do with access issues, but can't find anything out on searching the forums etc..
I am setup as an administrator, running VWD as an administrator and for the record, SQL Server Management Studio express works fine.
Another small issue, when I run the application from VWD, I always have to minimise the application and restore it as the graphics get corrupt.
Please help!! I cannot debug when running of the live website.

View Replies !
Connection String For Default Instance Of SQL Server 2005, On A Box Also Running A Named Instance Of SQL Server 2000
The box I am trying to connect to is running two instances of SQL Server.
There is a SQL Server 2005 instance which is the default. There is a SQL Server 2000 instance which is named 'SQLSERVER'.
 I can connect to the SQL Server 2000 instance no problem:<add key="ConnectionString" value="server=MYPCSQLSERVER;database=mydatabase;user id=****;password=****" />
However,  I am having trouble connecting to the Default SQL Server 2005 instance. I have tried:
<add key="ConnectionString" value="server=MYPC;database=mydatabase;user id=****;password=****" />
 but it doesn't work. I have tried explicitly setting SQL Server 2005 to use port 1434 (as SQL Server 2000 is running on port 1433), and then used:
<add key="ConnectionString" value="server=MYPC,1434;database=mydatabase;user id=****;password=****" />
but this doesn't work either.
 
Am I mssing something here? Any help much appreciated
Thanks...
 

View Replies !
Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance. The Connection
 

my web app was working fine but as soon as i added in a page and few store procedures and 2 tables it just pop up with that error message.
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
 
i did go into the folder C:Documents and SettingsdnguyenLocal SettingsApplication DataMicrosoftMicrosoft SQL Server Datasqlexpress and delete the directory but this didnt help much. I still get the same error message. please help

View Replies !
Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance. The Connection
Hello,
 
I have just reinstalled windows xp pro with service pack 2 and framework 2.0.
I am using SQL Express and visual studion 2005.
I am trying to run my website and i keep getting this error message, i followed few instructions but i still failed to make it work. could someone who faced similar issues guide me,
 
thanks
 
MM

 
 
 
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed
 
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: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

Source Error:





Line 112: Public Overridable Property Theme() As String
Line 113: Get
Line 114: Return CType(Me.GetPropertyValue("Theme"),String)
Line 115: End Get
Line 116: Set
Source File: C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Fileswroxunitedeecd65d2e1a6a798App_Code.ws-dzmjl.6.vb    Line: 114

Stack Trace:





[SqlException (0x80131904): Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.]
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +437
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +84
System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +197
System.Web.Profile.SqlProfileProvider.GetPropertyValuesFromDatabase(String userName, SettingsPropertyValueCollection svc) +766
System.Web.Profile.SqlProfileProvider.GetPropertyValues(SettingsContext sc, SettingsPropertyCollection properties) +428
System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider) +410
System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName) +117
System.Configuration.SettingsBase.get_Item(String propertyName) +89
System.Web.Profile.ProfileBase.GetInternal(String propertyName) +36
System.Web.Profile.ProfileBase.get_Item(String propertyName) +68
System.Web.Profile.ProfileBase.GetPropertyValue(String propertyName) +4
ProfileCommon.get_Theme() in C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Fileswroxunitedeecd65d2e1a6a798App_Code.ws-dzmjl.6.vb:114
Wrox.Web.GlobalEvents.ThemeModule.app_PreRequestHandlerExecute(Object Sender, EventArgs E) in C:WebsiteWroxUnitedApp_CodeThemeModule.vb:30
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64




Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

View Replies !
RDP &&amp; Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance. The Conne
As a starter i tried to modify and translate the Personal Website Starters kit from the VS2005Team SDK.

When i'm working on the machine were it's installed , under debugging, all works great.

But when i try to develop from my laptop, via RDP on the develop machine,  i've got this message and can not debug (connect to the SQLxpres Server)

Does anybody now a solution ?? 
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

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: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

Source Error:







Line 5: Sub Application_Start(ByVal sender As [Object], ByVal e As EventArgs)
Line 6: AddHandler SiteMap.SiteMapResolve, AddressOf Me.AppendQueryString
Line 7: If (Roles.RoleExists("Administrators") = False) Then
Line 8: Roles.CreateRole("Administrators")
Line 9: End If


 

This is the connecting string

 

<add name="Personal" connectionString="Data Source=.SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Personal.mdf" providerName="System.Data.SqlClient" />

<remove name="LocalSqlServer"/>

<add name="LocalSqlServer" connectionString="Data Source=.SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf" />

View Replies !
Is Using A Named Instance Better Over Using A Default Instance??
If you were asked to install SQL 2005 on a machine, would u install a default instance or a named one? And why would u choose one over the other?? Also, r there any issues with using a default instance?

Thank you for all your help.

View Replies !
Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance
No wonder Microsoft is giving it away for free. It€™s not worth anything. I am very disappointed in this version of SQL server. I decided to start learning VB so I downloaded and installed VB 2005 express edition and SQL 2005 express. I tried to build a personal website using the starter kit. I kept getting the following error message, for which I have seen numerous postings on this forum.
€œFailed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.€?
I went out and bought the Standard version of VS 2005 thinking there may be a feature that the free express version is lacking. I uninstalled the express version, cleaned the registry, deleted all the folders it created and installed the Standard edition. Then I tried to create a personal web using the starter kit and it does the same thing again.
I can not create a database file, connect to a database file. I can not create or attach a database on the SQL 2005 express from VS 2005. The SQL server Express seems to be working OK since I can attach to it using Microsoft SQL Server Management Studio Express. There is something about the way VS tries to connect to the database server that is not working. VB does recognize the local computer as a SQL server but can not connect to it.
SQL server is set to accept Shared memory, TCP/IP and named pipes for local clients.
What is causing this?
This is some information on the system I am using:
 
MS XP (SP2)
 
Microsoft Visual Studio 2005
Version 8.0.50727.42  (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Standard
 
Microsoft SQL Server Management Studio Express                                                                  9.00.1399.00
Microsoft Data Access Components (MDAC)                                                              2000.085.1117.00 (xpsp_sp2_rtm.040803-2158)
Microsoft MSXML                                                                  2.6 3.0 4.0 5.0 6.0
Microsoft Internet Explorer                                                                   6.0.2900.2180
Microsoft .NET Framework                                                                 2.0.50727.42
Operating System                                                                     5.1.2600
 
I am now to programming but nor computer illiterate. I have been working with MS SQL servers since version 6.5 and have MCSE, Network+, A+ and Security plus certifications. Installing and using VS should not be this problematic. What is wrong with Microsoft?

View Replies !
How To Fix Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance
when I try to connect to an mdf as a power user,
---------------------------
Microsoft Visual Basic 2005 Express Edition
---------------------------
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
---------------------------
OK  
---------------------------
 
I was able to do do this before until Saturady when I had to re-install sql server, and express etc due to some system problem on my xp Pro PC.  What have I misconfigured?
 
 
I do see the service SQL Serer(SQLEXPRESS) started under Network Service and SQL Serfver(MSSQLSERVER) started under local system.
 
My power user ID does have modify access to the sql 90 database folders. and to the mdf.
 

View Replies !
Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance
Hello everyone,

I am new in .NET development and currently trying to learn VWB through Microsoft online tutorials.

Here is the problem that prevents me from getting further:

in VWB, when you right click App_Data and chose "Add New Item" and then select SQL database, the following error message is displayed:

"Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."

If I cancel out of it, it does generate mdf file under App_Data folder in Solution Explorer, but when I try to open it, it says:

"The item does not exist in the Web directory. t may have been moved, renamed or deleted." and that is where the whole sharade deadends.

I can connect via mycomputersqlexpress under Data Connections in Database Explorer (it then adds "master.dbo" to the path) and then create custom tables, but that is not the same, isn't it? I mean, this will not integrate my database tables through default configuration that I am trying to follow?

All this happens on local machine.

Thanks to everybody who can help!

Jeff

View Replies !
Error Message: Failed To Generate A User Instance Of SQL Server. Only An Integrated Connection Can Generate A User Instance
 Hello everybody,I was configuring a SqlDataSource control using SQL Authentication mode.I first added a database file (testdb.mdf) through Solution Explorer-Add New Items. Then through Database Explorer I created a table named "info"Then while configuring  the SqlDataSource control I used the SQL Authentication mode and attached the "testdb.mdf" database file.Test Connection showed success. But when I hit the Ok button of the wizard it displayed the following error message:Failed to generate a user instance of SQL Server. Only an integrated connection can generate a user instance.While configuring the  SqlDataSource control I clicked "New Connection". Under Data Source section I tried both Microsoft SQL Server and Microsoft SQL Server Database File. And in both the cases I attached a databese file(testdb.mdf).          Plz enlighten me on this.Thanks and Regards,Sankar. 

View Replies !
Named And Default Instance In SQL Server 2kNamed And Default Instance In SQL Server 2
Hi,

I am trying to create a DB in a instance of sql server 2k. But the problem is
i have two instances, one default and the other named instance.
So when i create a db in default instance, the same is getting
created automatically in named instance.
Same happens when i try to do this in named instance. I mean both are acting
like mirror instances. Can anyone try to sort this out.

thanks in advance,
sekhar

View Replies !
Connect From Databases In 1st Instance To Databases In 2nd Instance
This is the scenario. Is it possible to create views or something (like Oracle DB Links) in a database in Instance 1 which can show data from another database in 2nd Instance ?


I want to do this to create reports.

View Replies !
ASP.NET/C# Accessing A SQL DB
Good Morning,

I am wondering if anyone can help me/ Currently I have created an ASP.NET webform. Usingt the VS.NET C# IDE I have put a SQL connection and DataAdapter on the webform. I have then created a dataset which should hold the contents of a table on a SQL server db.

However when i run the page which just tries to fill the dataset i get the error below. I am running the page via IIS on WinXP Pro SP1 system and SQL Server is located on a Win2003 Svr.

Can anyone help?

Thanks & Regards,

Alan

Server Error in '/Quiz' Application.
--------------------------------------------------------------------------------

SQL Server does not exist or access denied.
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: SQL Server does not exist or access denied.

Source Error:

Line 38: // Put user code to initialize the page here
Line 39:
Line 40: sqlConsumerDataAdapter.Fill(consumerDS11);
Line 41:

Source File: c:inetpubwwwrootquizwebform1.aspx.cs Line: 40

Stack Trace:

[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +484
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +44
System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
Quiz.WebForm1.Page_Load(Object sender, EventArgs e) in c:inetpubwwwrootquizwebform1.aspx.cs:40
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved