Click here to Skip to main content
15,881,248 members
Home / Discussions / Database
   

Database

 
QuestionDatabase Design to store revisions of creating an assessment Pin
civic0602-Aug-13 8:57
civic0602-Aug-13 8:57 
AnswerRe: Database Design to store revisions of creating an assessment Pin
Mycroft Holmes2-Aug-13 14:26
professionalMycroft Holmes2-Aug-13 14:26 
QuestionGetting Foreign Key Constraint Error Unusually Pin
indian1432-Aug-13 8:32
indian1432-Aug-13 8:32 
AnswerRe: Getting Foreign Key Constraint Error Unusually Pin
Mycroft Holmes2-Aug-13 14:20
professionalMycroft Holmes2-Aug-13 14:20 
GeneralRe: Getting Foreign Key Constraint Error Unusually Pin
indian1432-Aug-13 17:04
indian1432-Aug-13 17:04 
AnswerRe: Getting Foreign Key Constraint Error Unusually Pin
jschell2-Aug-13 14:33
jschell2-Aug-13 14:33 
GeneralRe: Getting Foreign Key Constraint Error Unusually Pin
indian1432-Aug-13 17:01
indian1432-Aug-13 17:01 
Questionwhats diffrence between in two query in performance respect Pin
mhd.sbt2-Aug-13 5:48
mhd.sbt2-Aug-13 5:48 
hi to all
whats diffrence between two below query in performance respect:
query 1:
SQL
SELECT  n, dbo.AddOne(n) AS r
FROM dbo.T1
ORDER BY r;


function addOne is this:
SQL
CREATE FUNCTION dbo.AddOneInline(@n AS BIGINT) RETURNS TABLE
AS
RETURN SELECT @n + 1 AS val;
GO


and query2:
SQL
SELECT  n, (SELECT val FROM dbo.AddOneInline(n)) AS r
FROM dbo.T1
ORDER BY r;

and defination of function is:

SQL
GO
CREATE FUNCTION dbo.AddOneInline(@n AS BIGINT) RETURNS TABLE
AS
RETURN SELECT @n + 1 AS val;
GO


query 2 is very good in performance and i want to know whats difference between in this two query
AnswerRe: whats diffrence between in two query in performance respect Pin
Eddy Vluggen2-Aug-13 8:32
professionalEddy Vluggen2-Aug-13 8:32 
QuestionDatabase for Bridge Asset Management Pin
Nebilo1-Aug-13 22:25
Nebilo1-Aug-13 22:25 
AnswerRe: Database for Bridge Asset Management Pin
Bernhard Hiller2-Aug-13 0:10
Bernhard Hiller2-Aug-13 0:10 
JokeRe: Database for Bridge Asset Management Pin
Mycroft Holmes2-Aug-13 1:07
professionalMycroft Holmes2-Aug-13 1:07 
GeneralRe: Database for Bridge Asset Management Pin
Nebilo2-Aug-13 1:47
Nebilo2-Aug-13 1:47 
AnswerRe: Database for Bridge Asset Management Pin
Eddy Vluggen2-Aug-13 0:29
professionalEddy Vluggen2-Aug-13 0:29 
Questionface time out when run query with nested select Pin
mhd.sbt1-Aug-13 21:54
mhd.sbt1-Aug-13 21:54 
AnswerRe: face time out when run query with nested select Pin
Bernhard Hiller2-Aug-13 0:09
Bernhard Hiller2-Aug-13 0:09 
GeneralRe: face time out when run query with nested select Pin
mhd.sbt2-Aug-13 2:45
mhd.sbt2-Aug-13 2:45 
AnswerRe: face time out when run query with nested select Pin
Eddy Vluggen2-Aug-13 0:10
professionalEddy Vluggen2-Aug-13 0:10 
GeneralRe: face time out when run query with nested select Pin
mhd.sbt2-Aug-13 2:42
mhd.sbt2-Aug-13 2:42 
GeneralRe: face time out when run query with nested select Pin
Eddy Vluggen2-Aug-13 8:27
professionalEddy Vluggen2-Aug-13 8:27 
GeneralRe: face time out when run query with nested select Pin
mhd.sbt4-Aug-13 8:59
mhd.sbt4-Aug-13 8:59 
AnswerRe: face time out when run query with nested select Pin
PIEBALDconsult2-Aug-13 7:40
mvePIEBALDconsult2-Aug-13 7:40 
QuestionProblem at Sql Server Configuration manager Pin
bikah chanda mohanta30-Jul-13 23:42
bikah chanda mohanta30-Jul-13 23:42 
AnswerRe: Problem at Sql Server Configuration manager Pin
Simon_Whale30-Jul-13 23:46
Simon_Whale30-Jul-13 23:46 
Questiondatabase mirroring / database replication. Pin
Code-Hunt29-Jul-13 23:34
Code-Hunt29-Jul-13 23:34 

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.