Creating a stored procedure that gets the current price when adding order...
Trying to learn more about stored procedures.I would like to make a stored procedure in Northwind that adds a new order detail record without passing the price. It's only parameters should be the...
View ArticleStored Procedure not working
hi,I have written the following stored procedure:set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ALTER procedure [dbo].[spUpdateIndividualUser] ( @Username varchar (50), @Password varchar (50), @Email...
View ArticleSql 2008 - Index was outside of bounds of the array
I have found related posts to this issue, but none have helped to remedy my issue. - Installed SQLManagementStudio_x64ENU- Connect to hosted database- I can create and alter tables and do everything...
View ArticleLS Alert Logshipping Monitor jobs fails in Node1 cluster
HI All,We have two nodes in a cluster:Recently we have failover groups and its resources from node1 to node2 thereafter LS alert job is failing due to msdb tables are not being updated even afterbackup...
View Articledelete row from stored Procedure
Hi,In the below query have insert and update commnds .If i want delete existing row i dont know how to update the table..[SP_AEmpTimeSheet] -- Add the parameters for the stored procedure here...
View ArticleCan not install SQL 2008 r2 on windows 2012 r2, Attempted to perform an...
I configure all se SQL, and star the installation, but, when the installation runs "SqlBrowserConfingAction_install_ConfigNonRC_Cpu32"display a message with the error "Attempted to perform an...
View ArticleSQL Server 2008 Installation Error
I found this error when i am try to Install SQL Server 2008 on Windows 8TITLE: Microsoft SQL Server 2008 Setup ------------------------------ The following error has occurred: Error getting file...
View ArticleIs it possible to connect remote SQL2005DB using SQL2012 management studio...
1Is it possible to connect remote SQL2005DB using SQL2012 management studio express and windows integrated authentication ?2Is it possible to add login by sqlcmd command because SQL2005 management...
View ArticleInsert records even if value is NULL in sql 2008
Hi all,I want to insert a values into a table, it should select even if the value is NULL and insert all the records. Below is my code, it should accept NUll values even with the other values. Please...
View ArticleJoin rows from 2 tables with non-matching numeric intervals
Hi,Could you please help me with the following: I have 2 tables - [Coal_Samples] and [Coal Type] Which I have pasted below. I want to create a single result set that matches as closley as possible...
View ArticleJoining 3 tables
Hi Guys,I trying to join 3 tables to one main table but the result is always multiplying the number of record between each tables.Heres the scenario:Table 1idName1n1Table 2idName1t2 name11t2 name 21t2...
View Articlequery error
i am login ,i want create table with use username , but i see this error.using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using...
View ArticleSelect distinct top 3 from table
in my sql table named staff there is a field named PL. sampl data is as underPLKMKTKMHGTGHGi tried select distinct top 1 PL from staffi got top 1 i want top 1then top 2 onethen top 3 one then top 4 one...
View Articlequery error
hi i want create many table with one sqlcommand------------------------------------------------------using System; using System.Collections.Generic; using System.Linq; using System.Web; using...
View ArticleBackups Failed
Hi,I have configured a fairy basic backup job on our SQL server, and this completes OK. But the notification is failing, so I am still having to manually check the backups to see if the backup files...
View ArticleA foreign key accepting null values
Hello All,A foreign key should not accept null values right ( since it references the values of primary key column which cannot have nulls )?But we experienced this situation.Can anyone tell what might...
View ArticleHow TOP query will work in SQL Server?
Hi Experts, While running TOP command, what internally happen in SQL Server Engine ? How its fetching TOP 10 rows from Table.ThanksSelva
View ArticleHow to update table with correct information
Hello all, How can I update this table A with the cm_other_id of table B?Table A: Table B:Thanks
View Article