Click here to Skip to main content
15,891,372 members
Home / Discussions / Database
   

Database

 
Questionrun SQL server scripts from inside a C# code Pin
Sabry190515-Sep-08 1:17
Sabry190515-Sep-08 1:17 
AnswerRe: run SQL server scripts from inside a C# code Pin
Ashfield15-Sep-08 1:21
Ashfield15-Sep-08 1:21 
GeneralCombining Like and In Pin
Brady Kelly15-Sep-08 0:49
Brady Kelly15-Sep-08 0:49 
GeneralRe: Combining Like and In Pin
Blue_Boy15-Sep-08 0:54
Blue_Boy15-Sep-08 0:54 
Questionmax date without repeat in query Pin
mahmoudinirat15-Sep-08 0:26
mahmoudinirat15-Sep-08 0:26 
AnswerRe: max date without repeat in query Pin
Blue_Boy15-Sep-08 0:41
Blue_Boy15-Sep-08 0:41 
AnswerRe: max date without repeat in query Pin
Ashfield15-Sep-08 1:15
Ashfield15-Sep-08 1:15 
Questioninline table function Pin
bdl15-Sep-08 0:22
bdl15-Sep-08 0:22 
I have an inline table function and it takes tow parameters of type VARCHAR.
I functions when I hard code to string within of call like this:
SELECT * FROM dbo.TestTable('a', 'b')

Here is definition of inline table function:

FUNCTION GetIPTimeRangeTable (@StartDate VARCHAR(10) = '', @EndDate VARCHAR(10) = '')
RETURNS TABLE
AS
RETURN
(
SELECT
* FROM UserDataSetsAccess
WHERE 1 = 1
AND CreatedAT between @StartDate AND @EndDate
)

If call function like this:
SELECT * FROM GetIPTimeRangeViewTable('2008-7-1', '2008-7-11')
Every ting is OK but if I call function like this
SELECT * FROM GetIPTimeRangeViewTable('2008-7-1', CONVERT(CHAR(10), GETDATE(),121))
I get error:
Incorrect syntax near the keyword 'CONVERT'.
Do you have any explanation for that!
Tanks
AnswerRe: inline table function Pin
nelsonpaixao21-Sep-08 15:21
nelsonpaixao21-Sep-08 15:21 
Questioncopy data from three different tables to one table Pin
justintimberlake15-Sep-08 0:14
justintimberlake15-Sep-08 0:14 
AnswerRe: copy data from three different tables to one table Pin
Ashfield15-Sep-08 1:24
Ashfield15-Sep-08 1:24 
GeneralRe: copy data from three different tables to one table Pin
justintimberlake15-Sep-08 1:58
justintimberlake15-Sep-08 1:58 
GeneralRe: copy data from three different tables to one table Pin
Ashfield15-Sep-08 2:02
Ashfield15-Sep-08 2:02 
GeneralRe: copy data from three different tables to one table Pin
justintimberlake15-Sep-08 2:10
justintimberlake15-Sep-08 2:10 
GeneralRe: copy data from three different tables to one table Pin
justintimberlake15-Sep-08 2:26
justintimberlake15-Sep-08 2:26 
QuestionSql Update Trigger Pin
Jesu Prabhu.J14-Sep-08 21:18
Jesu Prabhu.J14-Sep-08 21:18 
AnswerRe: Sql Update Trigger Pin
Ashfield14-Sep-08 22:19
Ashfield14-Sep-08 22:19 
GeneralRe: Sql Update Trigger Pin
Jesu Prabhu.J14-Sep-08 22:34
Jesu Prabhu.J14-Sep-08 22:34 
GeneralRe: Sql Update Trigger Pin
Ashfield14-Sep-08 23:10
Ashfield14-Sep-08 23:10 
QuestionHow to store symbols like sigma, integral etc in sql server 2000 Pin
Jesu Prabhu.J14-Sep-08 20:49
Jesu Prabhu.J14-Sep-08 20:49 
AnswerRe: How to store symbols like sigma, integral etc in sql server 2000 Pin
razov15-Sep-08 0:32
razov15-Sep-08 0:32 
GeneralRe: How to store symbols like sigma, integral etc in sql server 2000 Pin
Jesu Prabhu.J15-Sep-08 0:38
Jesu Prabhu.J15-Sep-08 0:38 
GeneralRe: How to store symbols like sigma, integral etc in sql server 2000 Pin
razov15-Sep-08 17:47
razov15-Sep-08 17:47 
GeneralRe: How to store symbols like sigma, integral etc in sql server 2000 Pin
Jesu Prabhu.J15-Sep-08 18:11
Jesu Prabhu.J15-Sep-08 18:11 
GeneralRe: How to store symbols like sigma, integral etc in sql server 2000 Pin
razov15-Sep-08 19:00
razov15-Sep-08 19:00 

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.