Empty Warning Box Appears With Only OK Button (2 Processes Started) When I Open Microsoft SQL Server Management Studio
Hello,
I'm new to SQL server 2005. I installed SQL server 2005 and had some problems with the original install. I therefore uninstalled SQL server 2005. Rebooted and than installed SQL server 2005 again. Everything appears to have installed correctly except for the fact that when I start SQL Server Management Suite I get 2 copies running in the foreground. The last copy of the SQL Server Management Suite shows a dialogue box that contain a warning sign (yellow triangle) with no text but an OK button is in the dialogue box. When I press the OK button, this instance of SQL Server Management Suite kills itself. The first instance is now given window focus and it brings up the "Connect to Server" dialogue box. I can connect to my local server and run a script to add columns to the database. But everytime I bring up SQL Server Management Suite, I always end up with 2 copies running and I have to hit the OK button to get rid of the second copy. Can anyone help me get ride of this annoying problem?
View Complete Forum Thread with Replies
Related Forum Messages:
How To Get Started On Microsoft SQL Server Management Studio Express
Hi, Was trying to open AdventureWorks when i got this error: "There is no editor available "C: Program Flies.....AdventureWorksDW_Log.LDF' Make sure the application for the file type(.LDF) is installed. How can this error be corrected? I also have some error on mdf not installed.May i know how should be the initally steps to be done inorder for me to view this database. And if i do have a database from microsoft access, what are the steps that i need to do inorder to get it export to Microsoft SQL Server Management Studio Express. Please advise as i really new to it. Thanks!
View Replies !
How To Empty A Stored Procedure In Ms Sql Server Management Studio Express
hi everyone, I have a db based on the Tracking_Schema.sql / Tracking_Logic.sql (find in &windir%/Microsoft.NET/Framework/v3.0/Windows Workflow Foundation/SQL/EN), so after executing both of them I get several stored procedures, especially dbo.GetWorkflows. And I have a solution in VS05 which when executed is filling this stored procedure with Instance-Id´s. My question is: how is the working command (like exec, truncate,..) to empty my st.procedure, not to drop/delete it? Thanks in advance, best regards bg
View Replies !
Microsoft SQL Server Management Studio
I was looking for Microsoft SQL Server Management Studio but downladed Microsoft SQL Server Management Studio EXPRESS. the express version doesn't have the SQL server agent. I read that the express doesnt support SQL server agent. Is there any add-on or service pack available for this. I am trying to find "SQL server Management studio". Any idea where I can download it?
View Replies !
Microsoft SQL Server Management Studio
i try to open database table using Microsoft SQL Server Management Studio i got the follwing error msg i don't know what the problem =================================== Object reference not set to an instance of an object. (SQLEditors) ------------------------------Program Location: at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.OpenTableNode.CreateDesigner(IDTDocToolFactoryProvider factoryProvider, IVsDataConnection dataConnection) at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.CreateDesigner() at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.Open() at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con) at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con) at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.CreateDesignerWindow(IManagedConnection mc, DocumentOptions options)
View Replies !
SQL Server Management Studio Express CTP Won't Open - Why?
I can't seem to open my SQL Server Management Studio Express CTP anymore. I need help figuring this out. I was able to open it before. I went to the Control Panel>Add/Remove Programs and tried to "repair" the program but nothing changes. Anytime I double-click on ssmsee.exe, the hour-glass flashes, but the program never starts. Any ideas why? The last thing I loaded was the AdventureWorksBI.msi. I already downloaded and installed AdventureWorksDB.msi. I have Windows 2000 Pro, I have SQL Server 2005 Express loaded, among other 2005 Express programs. No other problems. Any clues? I am sure that whatever the correct is to newbievsprogrammer's post at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=295166&SiteID=1 will also relate to mine as I can't seem to connect to any database either.
View Replies !
Query Abt Microsoft SQL Server Management Studio
Hi all, I am Vaibhav.I am using Microsoft SQL Server Management Studio 9.00.1399.00 on my machine , which have Windows 2000 Professional OS installed. Now I am upgrading My ystem to Windows Vista OS. And I am not getting whether Microsoft SQL Server Management Studio 9.00.1399.00 will support Windows Vista? or I have to go for Higher version available for Microsoft SQL Server Management studio ? Please asist me on same. Thanks, Vaibhav Tare
View Replies !
Microsoft SQL Server Management Studio Express
Is Microsoft SQL Server Management Studio Express (sql 2005) compatible with Sql Server 2000 databases? I'm using Windows Vista and the sql 2000 Enterprise Manager is not fully compatible with Vista...long not responding messages. Can i use the client version of Slq 2005? Regards
View Replies !
Cannot Open Table In Sql Server Management Studio Express
Hello all. I have uploaded a table into sql management studio express. However, when I right click on the table and try and open it, I get an error message saying; "SQL Execution Error. Executed SQL statement: select columnName1, columnName2 etc.... Error source: Microsoft. VisualStudio.DataTools Error Message: Exception has been thrown by the target of an invocation" Because of this error, I cannot manually edit the table. However, when I write a query running select * from Table X, the table does appear that way. Any help regarding how to open the table would be very much appreciated!!
View Replies !
Open A New Project Using SQL Server Management Studio Express
Dear Friends I am unable to open e new project using SQL Server management Studio Express. On the File menu it displays only "Query with current connection" and "Data base Engine Query". Please help me on thi Do I have to Install SQL Server management Studio instead of using express version. Cant I use SQL Server and SQL server management studio for deploy to make a small database for my a wharehouse. Please help me Amila
View Replies !
Microsoft SQL Server Management Studio Express Problem
Microsoft SQL Server Management Studio ExpressI have restored the database into it with 100tables and stored procedures.I have also created the new database in it.But,i don't know how to add the existing database in to Visual Studio.Net 2005 .I m using ASP.Net.Where are the database stored ?? I don't want to create the new database,.Can anyone pls tell me ....
View Replies !
Reinstalling Microsoft Server Management Studio Express
I was having some trouble with the DTS Wizard and so I thought I'd just reinstall the whole MSSM. I used remove programs, rebooted my Vista computer and am trying to reinstall the Server Express Toolkit. It tells me that MSSM already exists on my computer (which it doesn't). The actual screen reads: Existing components The following components that you chose to install are already installed on the machine. Grayed out -- Workstation components and development tools 9.2.3042.00 How do I reinstall MSSM now? It's gone from my computer. Thanks!
View Replies !
Cannot Open Connection Dialog When Starting SQL Server Management Studio
I start SQL Server Management Studio on my workstation and get the following message. TITLE: Microsoft SQL Server Management Studio ------------------------------ Failed to open connection dialog. ------------------------------ ADDITIONAL INFORMATION: Could not load file or assembly 'SqlMgmt, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (mscorlib) ------------------------------ BUTTONS: OK ------------------------------ I had SQl Express version installed previously and everything worked. I could connect to one server running SQL Express and a different server running full up SQL 2005 enterprise version. I uninstalled All SQL express programs and installed tools from SQL 2005 developer. I have rebooted, started the program directly (not using a link of any kind) and all attempts fail. After dismissing the error msg the tool opens and I can run queries agains the DB but the database engines and related tables do not show. My work station is Windows XP with SP2 installed. I have googled the problem extensively and tried solutions found but none have solved the problem. Any help greatly appreciated.
View Replies !
Can't Connect To Reporting Services Using Microsoft SQL Server Management Studio
When I try to connect to the Reporting Services using Microsoft SQL Server Management Studio, the following error message propmpts up: _____________________________________________________________ ADDITIONAL INFORMATION: The request failed with HTTP status 401: Unauthorized. (Microsoft.SqlServer.Management.UI.RSClient) _____________________________________________________________ Is there any settings that I need to do in the "Reporting Services Configuration Manager" ? Thanks. Best regards, Michael Wu
View Replies !
Microsoft SQL Server Management Studio Express Version To Use For SQL Compact
Hello, i don't know if it was mentioned before, but i solved the issue that Microsoft SQL Server Management Studio Express won't show the option to create/modify a sql compact database by installing not this Version: Microsoft SQL Server Management Studio Express Date: 19.04.2006 http://www.microsoft.com/downloads/details.aspx?FamilyID=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&DisplayLang=en but this one: SQL Server Management Studio Express Service Pack 2 €“ CTP-Version Date: 19.12.2006 http://www.microsoft.com/downloads/details.aspx?FamilyID=ccbda432-8ecf-4c82-bdef-b575eaf07f55&DisplayLang=en hope this helps. Nihat P.S. i'm curious if anybody else had the same issue, caused of using the wrong Version of SSMSe?
View Replies !
Microsoft SQL Server Management Studio Express (SSMSE) Upgrade
Hi Apologies for this question I have just found out i/we need to upgrade to the full version of this management tool to make use of SSRS for a new CRM we are putting in place, The CRM company tells me we can just install the tool from our SQL 2005 disk. Im wondering what the best way to go about this is? i would guess we just un-install the express version install the full version of the management tool and reconnect to the database. unless im missing anything? thanks
View Replies !
Problem Copying Database With Microsoft SQl Server Management Studio
I am trying to copy a database from the server on my web host(crystaltech) to my new local install of MS SQL Server 2005 Enterprise (trial version). I go to Tasks>Copy Database which opens the wizard. When I get to the select database screen I get this error: Server user 'username' is not a valid user in database '123foo' (123foo is the first database of all those on the server) I need have it look only at my database which I have permissions for to copy it. How do I do this? I tried copying the tables the other way(import data) but it dropped all my identities and primary keys which is a pain to recreate. Is there a way to copy tables from one server to another without losing primary keys and identity fields? Thanks for any help!
View Replies !
Problems Downloading Microsoft SQL Server Management Studio Express
I everybody, I'm trying to download Microsoft SQL Server Management Studio Express from http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796 However, the download never finishs. If I try to download using a download manager it stops after 98% (the segment that stops is the first segment). If I try to download without a download manager it stops after 1% (456Kb). What can I do? Is there an alternate place where I can download the file? Thanks, Nadav
View Replies !
Error In Microsoft Sql Server Management Studio Trying To Modify Tables Or Columns
I get the error below when trying to modify a table or colum with MSSMS. I can expad out the tree and look at the columns, but I can't change them, view the data in them, or create new ones. __________________________________________________________________________________________________________________________________ TITLE: Microsoft SQL Server Management Studio ------------------------------ Class does not support aggregation (or class object is remote) (Exception from HRESULT: 0x80040110 (CLASS_E_NOAGGREGATION)) (Microsoft.SqlServer.SqlTools.VSIntegration) I resintallelled .NET Framework, recommended from another post. I am using .NET 3.5 BETA Frame work, ans SQL Server 2005 V 9.00.139.00
View Replies !
Using Microsoft SQL Server Management Studio Express To Export/copy Database?
How does one export/copy a database using Microsoft SQL Server Management Studio Express? At this time, I have an existing database that I can access and run queries against. However, I cannot connect to it via Visual Wed Developer 2005 Express. At this time, I'm getting the following error message with the existing database: Login failed for user 'bigide2_gims2'. The user is not associated with a trusted SQL Server Connection. Next, I'm running everything locally. If anyone can assist, it would be greatly appreciated and thanks in advance. -Conrad
View Replies !
How Can I Create A New Login In Microsoft SQL Server Management Studio Express 9.00.1399.00?
How can I create a new login in Microsoft SQL Server Management Studio Express 9.00.1399.00? I hope to create a new login in Microsoft SQL Server Management Studio Express for SQL 2005 database,I select SQL Server authentication item in New Login window, then I click Ok button, but I get the error information: An exception occurred while executing a Transact-SQL statement or batch.The Must_CHANGE option is not supported by this version of microsoft Window, Error: 15195 Does it mean that I can not create new login in Microsoft SQL Server Management Studio Express 9.00.1399.00?
View Replies !
How Can I Remove Expiration Date From Microsoft SQL Server Management Studio (Standard Ed)
Recently we upgrade the SQL Server 2005 from Evaluation Ed to Standard Ed. It was like a full installation since we already had installe the SP1, we had to uninstall it completely. If we enter the following query: SELECT SERVERPROPERTY('productversion') as ProductVersion, SERVERPROPERTY ('productlevel') as ProductLevel, SERVERPROPERTY ('edition') as ProductEdition it shows that we have the Std Ed (not the Evaliation Ed.): 9.00.2047.00 SP1 Standard Edition However, since a few days ago the Management Studio showed the following message: Microsoft SQL Server Management Studio (expires in 4 days). Any help would be appreciated
View Replies !
Installing Microsoft SQL Server Management Studio Express Broke My Asp.net Databases
Morning, I installed the managerment stuid on my machine and now none of my database connections seem to work any more. I keep getting the attached error. Before I installed the studio the system worked fine, I could connect to the database and everything was fine. Does the studio change any permission stuff? I cannot seem to get it to work again at all now, I added in aspnet as a login inside the studio and it still won't let me connect to the database. I cannot find *any* logs anywhere that might be helpful in what it is doing or see any way to debug the connection to find out what the problem is. When I look at the permissions inside of the studio it shows me that the connections should all be fine. I checked and remote and local connections are setup, although it is only doing local connections anyway since this is a asp.net web server page. Any idea what the problem is here? This is very frustrating and annoying :( Since I didn't change anything and now nothing I will do gets it to work. I even tried to uninstall the management tool and it still doesn't work. Cannot open user default database. Login failed. Login failed for user 'GREENANDFLUFFYASPNET'. 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: Cannot open user default database. Login failed. Login failed for user 'GREENANDFLUFFYASPNET'.
View Replies !
Error Connecting To Remote Server Using Microsoft SQL Server Management Studio Express
Dear All, I am trying to connect to a remote sql server 2005. So I have install the Microsoft SQL Server Management Studio Express. When I try to connect I get the error below. 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) (Microsoft SQL Server, Error: 53). Can some one please help. I have even port no 1533 on my pc. Thanks.
View Replies !
Microsoft SQL Server 2005 Management Studio - Opening SQL-File From Explorer Does Not Connect Automaticly To Server/database
hello, I have a question about opening files in the Microsoft SQL Server 2005 Management Studio. In the old Query Analyzer from SQL 2000 I can open SQL Files via drag & drop (from explorer to QA) or open it with a double click in the explorer. Then the Files opened, if I had actual a connection to a server / database (QA is stared with one file and has a connection to Server/Datebase), with this connection. Now in Microsoft SQL Server 2005 Management Studio I'll be asked everytime for Server and have to get the database from the database list - it does not connect automaticly to server/database, that is actual connected (I have opened a file with the connection and a connected database in the object explorer). Someone do not have this problem - but we found no option to set it up. Any ideas? thanks & best regards, Christian Kiedels
View Replies !
SQL Compact Edition 3.5 Vs. SQL Server Management Studio 2008, FileNotFoundException Microsoft.SqlServerCe.ManagementUI
Hi,I'm having an exception below when i tried to connect to SQL Server Compact Edition from SQL Server Management Studio (10.0.1075.23 ((SQL_PreRelease).071108-1357 )).I downloaded and installed the SQL Server Compact Edition 3.5 from this link below :http://www.microsoft.com/downloads/details.aspx?FamilyID=38ed2670-a70a-43b3-87f3-7ab67b56cbf2&displaylang=enAnd I downloaded and installed the SQL Server 2008 Development edition from this link below :http://go.microsoft.com/fwlink/?LinkId=104963It seems that the SQL Server 2008 Development edition comes with the these 2 SQL CE below :- Microsoft SQL Server Compact 3.5 SP1 Beta ENU. Product Version: 3.5.5608.0.- Microsoft SQL Server Compact 3.5 SP1 Beta Management Tools ENU. Product Version: 3.5.5608.0I tried to uninstalled these 2 and re-install the SQL Server Compact Edition 3.5 Files, but it didn't help.Currently I'm uninstalling SQL Server 2008 because the command prompt installation instruction page could not be found in the books online, so i'm trying my luck to uninstall SQL Server Compact Edition 3.5 and reinstall the whole SQL Server 2008. The main reason why I was trying to install SQL Server 2008 Developer Edition is only to manage SQL Server Compact 3.5 database file. Since i upgraded the database into 3.5, i was not able to open it anymore using SQL Express 2005 Query Designer in the VS 2008 is just like the sql view query designer which is not as good as sql management studio. I'm reminiscing the good old days with query analyzer Any advice to resolve this issue? Thanks in advance Steps :1. Choose Database : SQL Server Compact Edition2. Choose Any of the Database file options (New Database or Browse for more)3. Below exception will pop up.See the end of this message for details on invokingjust-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SqlServerCe.ManagementUI, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.File name: 'Microsoft.SqlServerCe.ManagementUI, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) at Microsoft.SqlServer.Management.UI.ConnectionDlg.Utils.LoadAssembly(String assemblyFileName) at Microsoft.SqlServer.Management.UI.ConnectionDlg.SqlServerCeType.Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType2.CustomNewDatabaseAction() at Microsoft.SqlServer.Management.UI.ConnectionDlg.LoginControl.CheckForNewDatabase() at Microsoft.SqlServer.Management.UI.ConnectionDlg.LoginControl.OnSIIndexChange(Object sender, EventArgs e) at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m) at System.Windows.Forms.ComboBox.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
View Replies !
Data Columns Empty In Management Studio But Not Query Analyzer
we have a database hosted online on sql server 05. at work, we have a sql 2000 query analyzer on a machine, and sql 2005 management studio on a machine. both machines can connect to the database, both can pull up the data from a certain table. but there are two columns that display info in query analyzer that show up as empty on management studio. not null, just empty. any ideas why?
View Replies !
SQL Management Studio - Unable To Open 3.5 CE DBs
Hi there I have a VS2008 project with a CE3.5 database. I am unable to open this database within SQL 2005 Management Studio only VS2008. Any way of updating the CE engine for Management Studio? "You are trying to access an older version of a SQL Server Compact Edition database (this is lying I know the db is 3.5+)" [Db version 3505053, Requested version=3004180] Thanks
View Replies !
How To Open Aspnetdb.mdf In SQL Management Studio Express
I have a database which was automatically created in VWD (final release version). I want to design this database using the Management Studio software. How can I access the database from this tool? I am able to connect to the sql server running on my machine however the database created for the website is not listed there.
View Replies !
Slow Performance With Management Studio Open
Hi everyone! I'm currently working on my first project which is using SQL express. The performance of the queries is really quick with management studio closed. But when I have it open to test queries, my program seems to take longer to connect to the server. Is there something I haven't set up right or is this to be expected when using the express edition? Any help or ideas would be greatly appreciated Thanks in advance.
View Replies !
SSIS Error Message When Trying To Open MSDB In Management Studio
Hi all, I get this error when trying to open folder MSDB in management studio. I'm running Win 2003, SQL server 2005 64 bit on AMD with two instances of SQL. Any one that have a solution ? I havent found any thing that works. If I enable VIA in SQL Server I can't start SQL Service TITLE: Microsoft SQL Server Management Studio ------------------------------ Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: Login timeout expired 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. VIA Provider: The specified module could not be found. (Microsoft SQL Native Client) ------------------------------ Login timeout expired 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. VIA Provider: The specified module could not be found. (Microsoft SQL Native Client)
View Replies !
Management Studio Express && SQLcmd: Syntax Errors In Executing A MS-DOS Batch File && A Microsoft SQL Server Query File?
Hi all, I have the "Northwind" database in my Sql Server Management Studio Express. In my C:ProSSEAppsSamplesForChapter02Chapter02 folder, I have the following 2 files: (1) ListColumnValues (MS-DOS Batch File) sqlcmd -S .sqlexpress -v DBName = "Northwind" CName = "CompanyName" TName = "Shippers" -i c:prosseappschapter02ListListColumnVales.sql -o c:prosseappschapter02ColumnValuesOut.rpt (2) ListColumnValues (Microsoft SQL Server Query File) USE $(Northwind) GO SELECT $(CompanyName) FROM $(Shippers) GO When I ran the following SQLcmd: C:ProSSEAppsSamplesForChapter02Chapter02>ListColumnValues.bat I got the following "ColumnValuesOut.rpt" with error messages: 'Northwind' scripting variable not defined. Msg 102, Level 15, State 1, Server L1P2P3SQLEXPRESS, Line 1 Incorrect syntax near '$'. 'CompanyName' scripting variable not defined. 'Shippers' scripting variable not defined. Msg 102, Level 15, State 1, Server L1P2P3SQLEXPRESS, Line 1 Incorrect syntax near 'CompanyName'. I copied these T-SQL statements from a book and I do not know how to correct them. Please help and tell me how to correct these errors. Thanks in advance, Scott Chang
View Replies !
Help: Why Excute A Stored Procedure Need To More 30 Seconds, But Direct Excute The Query Of This Procedure In Microsoft SQL Server Management Studio Under 1 Second
Hello to all, I have a stored procedure. If i give this command exce ShortestPath 3418, '4125', 5 in a script and excute it. It takes more 30 seconds time to be excuted. but i excute it with the same parameters direct in Microsoft SQL Server Management Studio , It takes only under 1 second time I don't know why? Maybe can somebody help me? thanks in million best Regards Pinsha My Procedure Codes are here:set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= ALTER PROCEDURE [dbo].[ShortestPath] (@IDMember int, @IDOther varchar(1000),@Level int, @Path varchar(100) = null output ) AS BEGIN if ( @Level = 1) begin select @Path = convert(varchar(100),IDMember) from wtcomValidRelationships where wtcomValidRelationships.[IDMember]= @IDMember and PATINDEX('%'+@IDOther+'%',(select RelationshipIDs from wtcomValidRelationships where IDMember = @IDMember) ) > 0 end if (@Level = 2) begin select top 1 @Path = convert(varchar(100),A.IDMember)+'-'+convert(varchar(100),B.IDMember) from wtcomValidRelationships as A, wtcomValidRelationships as B where A.IDMember = @IDMember and charindex(convert(varchar(100),B.IDMember),A.RelationshipIDS) > 0 and PATINDEX('%'+@IDOther+'%',B.RelationshipIDs) > 0 end if (@Level = 3) begin select top 1 @Path = convert(varchar(100),A.IDMember)+ '-'+convert(varchar(100),B.IDMember)+'-'+convert(varchar(100),C.IDMember) from wtcomValidRelationships as A, wtcomValidRelationships as B, wtcomValidRelationships as C where A.IDMember = @IDMember and charindex(convert(varchar(100),B.IDMember),A.RelationshipIDS) > 0 and charindex(convert(varchar(100),C.IDMember),B.RelationshipIDs) > 0 and PATINDEX('%'+@IDOther+'%',C.RelationshipIDs) > 0 end if ( @Level = 4) begin select top 1 @Path = convert(varchar(100),A.IDMember)+ '-'+convert(varchar(100),B.IDMember)+'-'+convert(varchar(100),C.IDMember)+'-'+convert(varchar(100),D.IDMember) from wtcomValidRelationships as A, wtcomValidRelationships as B, wtcomValidRelationships as C, wtcomValidRelationships as D where A.IDMember = @IDMember and charindex(convert(varchar(100),B.IDMember),A.RelationshipIDS) > 0 and charindex(convert(varchar(100),C.IDMember),B.RelationshipIDs) > 0 and charindex(convert(varchar(100),D.IDMember), C.RelationshipIDs) > 0 and PATINDEX('%'+@IDOther+'%',D.RelationshipIDs) > 0 end if (@Level = 5) begin select top 1 @Path = convert(varchar(100),A.IDMember)+ '-'+convert(varchar(100),B.IDMember)+'-'+convert(varchar(100),C.IDMember)+'-'+convert(varchar(100),D.IDMember)+'-'+convert(varchar(100),E.IDMember) from wtcomValidRelationships as A, wtcomValidRelationships as B, wtcomValidRelationships as C, wtcomValidRelationships as D, wtcomValidRelationships as E where A.IDMember = @IDMember and charindex(convert(varchar(100),B.IDMember),A.RelationshipIDS) > 0 and charindex(convert(varchar(100),C.IDMember),B.RelationshipIDs) > 0 and charindex(convert(varchar(100),D.IDMember), C.RelationshipIDs) > 0 and charindex(convert(varchar(100),E.IDMember),D.RelationshipIDs) > 0 and PATINDEX('%'+@IDOther+'%',E.RelationshipIDs) > 0 end if (@Level = 6) begin select top 1 @Path = '' from wtcomValidRelationships end END
View Replies !
Microsoft SQL Server Express And Microsoft Visual Studio...
I have a query that executes just fine except that it won't recognize varchar(255) ( or any other value within the () ) and if I leave it off like this: varchar, then it executes but it leaves that value as 1 and that is just not very useful for my purposes. This also happens with anything else that requires () to add length such as char(), or nvarchar(), etc... Any ideas?
View Replies !
WARNING:LRU List Is Empty
Can some one please help. Lately I am getting an error: LAZY WRITER WARNING: LRU List is Empty Than the system locks! can anyone help. This is driving us crazy. There is no reference in the KB. We are trying to insert records into a table by a SP. Thanks, John
View Replies !
Visual Studio Database File And SQL Server Management Studio Express Question
I have a database in my "App_Data" folder of my visual studio project. I can view it fine in Visual Studio's built-in tools for managing a database attached to a solution. However i recently started playing around with the SQL Server Management Studio Express program. When i attach my database to Management Studio, and try to run my program it crashes. I think it might be a permissions error?!? When i detatch it and reattach it in visual studio it runs fine again. Any suggestions? ThanksJason
View Replies !
SQL Server Management Express Studio Management Tools
I have recently installed the SQL Server Management Studio Express but I do not find Management Tools in order to create scheduled backups and shrinking of the databases. I was under the impression that this should be included in the Management Studio. I use the SQL 2005 Express for smaller customers who run the SQL on a desktop unit. I need a way to backup the data to a server machine for backup purposes. I have uninstalled and reinstalled to no avail.
View Replies !
Visual Studio 2005 Standard And SQL Server Management Studio?
I am new to visual studio and I am still not sure of all its components and features. I installed visual studio 2005 standard edition but cannot find SQL Server Management Studio? I guess this must be because it is not included with Visual studio 2005 standard. Is it included with VS 2005 professional? I want to add pictures of products to my shopping site using an SQL database and I’ve been told that SQL Server Management studio is required as it is a graphical tool. How would I go about obtaining the SQL server management studio. There seems to be different versions of SQL server that it is confusing to know which one to purchase. Will the SQL server 2005 version that comes with Visual studio standard be sufficient for me now right? I want to create a shopping site with hundreds, perhaps even thousands of products. I want to use an SQL server 2005 database. The database will include ‘dynamically generated’ product images if that is the correct terminology. My goodness, it seems I still have so much to learn. Thanks
View Replies !
Open 3 RS When Click On Asp.net Button
I have a asp.net web app an for reports I m using RS in server mode. I have a webform when the user can see all the orders a client made,by clicking an order the system shows a webform where the user can see all the details for that order and have a "Generate Invoice" button to generate the invoice or invoices for that order (1 order can generate more than 1 envoice). My problem is how to open 2 Reporting Services showing 2 envoices (in case this order generates 2 invoices),obiusly the button first make a transaction with database to save the data for that invoices. Hope I m clear and get some good solutions. Best Regard Joseph
View Replies !
Open File - Security Warning
I have a SQL job that calls a command file that executes a vbscript. I am getting "Open File - Security Warning" whenever the command file calls the vbs as it goes through a loop. Is there a way to suppress the warning dialog box? Thanks!!
View Replies !
Open File - Security Warning
The publisher could not be verified. Are you sure you want to run this software?This is my first SSIS package and the first for my employer. Under DTS we run some overnight tasks that bin with a .Net console application that downloads data. Several of these run in parallel. Looked to me that the Execute Process Task was a good fit for the requirements. When I executed the step, the program did begin to execute in that a DOS window opened. But when, I clicked the run button on the warning dialog, the task step ended. Questions: 1.- How to tell the Execute Process Task not to open the Security Warning dialog? 2.- Have you any suggestions about my approach? Thanks, IanO
View Replies !
|