Click here to Skip to main content
15,894,343 members
Home / Discussions / Database
   

Database

 
Questiondeleting data from datagrid Pin
minkinin13-Feb-07 3:21
minkinin13-Feb-07 3:21 
AnswerRe: deleting data from datagrid Pin
Pete O'Hanlon13-Feb-07 10:16
mvePete O'Hanlon13-Feb-07 10:16 
Questiondeleting data from datagrid Pin
minkinin13-Feb-07 3:19
minkinin13-Feb-07 3:19 
AnswerRe: Query error Pin
Krish - KP13-Feb-07 2:53
Krish - KP13-Feb-07 2:53 
GeneralRe: Query error Pin
Saira Tanwir13-Feb-07 2:55
Saira Tanwir13-Feb-07 2:55 
GeneralRe: Query error Pin
Krish - KP13-Feb-07 3:04
Krish - KP13-Feb-07 3:04 
GeneralRe: Query error Pin
Saira Tanwir13-Feb-07 3:10
Saira Tanwir13-Feb-07 3:10 
QuestionProblem Code Pin
Sam Heller13-Feb-07 1:55
Sam Heller13-Feb-07 1:55 
I have written the following code but it doesn't seem to be working. I think it's pretty clear what it is supopposed to achieve. I believe the error to be purely syntax. Any ideas?

ALTER PROCEDURE [dbo].[SP_PermutationsUnconfiguredSelect] <br />
 -- Add the parameters for the stored procedure here<br />
	 @UserID nvarchar(5),<br />
	 @Type nvarchar(15),<br />
	 @Credit nvarchar(15)<br />
AS<br />
	DECLARE @Query varchar(500)<br />
	DECLARE @Where varchar(500)<br />
<br />
	SET @Where = ''<br />
	SET @Query = 'SELECT PermID, ([Type] + " with "+ Credit + " credit for " + Purpose)As Permutation<br />
	  FROM Permutations<br />
	  WHERE PermID NOT IN (SELECT PermutationID FROM Products WHERE UserID = ' + @UserID + ')'<br />
<br />
	BEGIN<br />
	 IF @Credit = 'Both'<br />
		SET @Where = 'AND [Type] = ' + @Type<br />
	 ELSE<br />
		SET @Where = 'AND [Type] = ' + @Type + ' AND Credit =' + @Credit<br />
<br />
	 EXEC(@Query + @Where )

AnswerRe: Problem Code Pin
Colin Angus Mackay13-Feb-07 2:14
Colin Angus Mackay13-Feb-07 2:14 
AnswerRe: Problem Code Pin
Pete O'Hanlon13-Feb-07 2:15
mvePete O'Hanlon13-Feb-07 2:15 
QuestionProblematic connection string to SQL Express 2005 Pin
Joe Smith IX13-Feb-07 1:20
Joe Smith IX13-Feb-07 1:20 
AnswerRe: Problematic connection string to SQL Express 2005 Pin
Joe Smith IX15-Feb-07 2:02
Joe Smith IX15-Feb-07 2:02 
Questionunicode problem Pin
.NetRams13-Feb-07 1:12
.NetRams13-Feb-07 1:12 
AnswerRe: unicode problem Pin
Mike Dimmick13-Feb-07 1:34
Mike Dimmick13-Feb-07 1:34 
GeneralRe: unicode problem Pin
.NetRams13-Feb-07 1:53
.NetRams13-Feb-07 1:53 
QuestionExpensive Update Pin
Brady Kelly12-Feb-07 22:15
Brady Kelly12-Feb-07 22:15 
QuestionRe: Expensive Update Pin
andyharman12-Feb-07 22:27
professionalandyharman12-Feb-07 22:27 
AnswerRe: Expensive Update Pin
Colin Angus Mackay12-Feb-07 22:35
Colin Angus Mackay12-Feb-07 22:35 
AnswerRe: Expensive Update Pin
Pete O'Hanlon12-Feb-07 22:43
mvePete O'Hanlon12-Feb-07 22:43 
GeneralRe: Expensive Update Pin
Brady Kelly12-Feb-07 22:49
Brady Kelly12-Feb-07 22:49 
Questioncreating view for Month filter facility Pin
rrrriiizz12-Feb-07 21:43
rrrriiizz12-Feb-07 21:43 
AnswerRe: creating view for Month filter facility [modified] Pin
Krish - KP13-Feb-07 2:59
Krish - KP13-Feb-07 2:59 
GeneralRe: creating view for Month filter facility Pin
rrrriiizz13-Feb-07 19:36
rrrriiizz13-Feb-07 19:36 
GeneralRe: creating view for Month filter facility Pin
Krish - KP15-Feb-07 3:14
Krish - KP15-Feb-07 3:14 
Questionexplicit way of triming string parameter Pin
firestoper12-Feb-07 20:16
firestoper12-Feb-07 20:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.