Click here to Skip to main content
15,890,882 members
Home / Discussions / Database
   

Database

 
GeneralRe: how to write a query change the datatype for primary key coulm in atable using sqlserver 2008. Pin
Ch.Gayatri Subudhi9-Aug-10 21:19
Ch.Gayatri Subudhi9-Aug-10 21:19 
GeneralRe: how to write a query change the datatype for primary key coulm in atable using sqlserver 2008. Pin
Mycroft Holmes9-Aug-10 21:26
professionalMycroft Holmes9-Aug-10 21:26 
GeneralRe: how to write a query change the datatype for primary key coulm in atable using sqlserver 2008. Pin
5fingers10-Aug-10 22:29
5fingers10-Aug-10 22:29 
QuestionSQL Server Indexing Errors with message that should not apply Pin
JHizzle9-Aug-10 2:41
JHizzle9-Aug-10 2:41 
AnswerRe: SQL Server Indexing Errors with message that should not apply Pin
Mycroft Holmes9-Aug-10 21:16
professionalMycroft Holmes9-Aug-10 21:16 
GeneralRe: SQL Server Indexing Errors with message that should not apply Pin
JHizzle10-Aug-10 23:28
JHizzle10-Aug-10 23:28 
QuestionTransaction scope and MSDTC enable on which server Pin
devvvy9-Aug-10 2:31
devvvy9-Aug-10 2:31 
Questionwriting a scalar-function Pin
mrkeivan9-Aug-10 1:19
mrkeivan9-Aug-10 1:19 
Hey, I have the following code but I dunno why I get and error!!??

<pre><pre>
CREATE FUNCTION [dbo].[GetSubTeacher] (@ID Int)

RETURNS VARCHAR(100)

AS

BEGIN

DECLARE @TeacherName NVARCHAR(100)
IF (@ID = 0)

SET @TeacherName = 'NO SUB'

IF (@ID <> 0)
SET @TeacherName = SELECT FName + ' ' + LName AS [Name] from Teachers WHERE ID = @ID

RETURN @TeacherName

END

Incorrect syntax near the keyword 'SELECT'.

Regards,
K
AnswerRe: writing a scalar-function [modified] Pin
Goutam Patra9-Aug-10 1:38
professionalGoutam Patra9-Aug-10 1:38 
AnswerRe: writing a scalar-function Pin
J4amieC9-Aug-10 1:52
J4amieC9-Aug-10 1:52 
AnswerRe: writing a scalar-function Pin
PIEBALDconsult9-Aug-10 15:27
mvePIEBALDconsult9-Aug-10 15:27 
JokeRe: writing a scalar-function Pin
Mycroft Holmes9-Aug-10 16:28
professionalMycroft Holmes9-Aug-10 16:28 
GeneralRe: writing a scalar-function Pin
PIEBALDconsult9-Aug-10 16:48
mvePIEBALDconsult9-Aug-10 16:48 
GeneralRe: writing a scalar-function Pin
Mycroft Holmes9-Aug-10 17:01
professionalMycroft Holmes9-Aug-10 17:01 
GeneralRe: writing a scalar-function Pin
PIEBALDconsult9-Aug-10 17:25
mvePIEBALDconsult9-Aug-10 17:25 
Questionhow to execute stored procedure in a function using sql server 2000 Pin
developerit8-Aug-10 1:15
developerit8-Aug-10 1:15 
AnswerRe: how to execute stored procedure in a function using sql server 2000 Pin
The Digital Worm11-Aug-10 2:17
The Digital Worm11-Aug-10 2:17 
Questionquery optimization Pin
pstsp9117-Aug-10 13:07
pstsp9117-Aug-10 13:07 
AnswerRe: query optimization Pin
Mycroft Holmes8-Aug-10 2:04
professionalMycroft Holmes8-Aug-10 2:04 
AnswerRe: query optimization Pin
PIEBALDconsult9-Aug-10 17:21
mvePIEBALDconsult9-Aug-10 17:21 
Question0x00 byte problem while storing binary data to MySQL BLOB via ODBC (C API) Pin
whitesail7-Aug-10 2:24
whitesail7-Aug-10 2:24 
AnswerRe: 0x00 byte problem while storing binary data to MySQL BLOB via ODBC (C API) Pin
Blue_Boy7-Aug-10 5:07
Blue_Boy7-Aug-10 5:07 
GeneralRe: 0x00 byte problem while storing binary data to MySQL BLOB via ODBC (C API) Pin
whitesail7-Aug-10 11:00
whitesail7-Aug-10 11:00 
QuestionCommon Data validation best practice SQL & .Net? Pin
billyjoesunday6-Aug-10 4:54
billyjoesunday6-Aug-10 4:54 
AnswerRe: Common Data validation best practice SQL & .Net? Pin
Mycroft Holmes7-Aug-10 0:39
professionalMycroft Holmes7-Aug-10 0:39 

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.